Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
740f443
chore: added new wallet connected hooks
ThomasRalee May 26, 2026
6ffd96b
Merge branch 'master' into feat/tc-layer
bangjelkoski May 26, 2026
e52e9ea
chore: package bump
ThomasRalee May 26, 2026
6fa26e8
refactor: minor
bangjelkoski May 26, 2026
c196d71
chore: pnpm version
bangjelkoski May 26, 2026
df7bcf6
chore: package bump
bangjelkoski May 26, 2026
e01f6da
chore: package bump
ThomasRalee May 27, 2026
6f342d0
chore: removed bugsnag
bangjelkoski May 27, 2026
5c290d8
refactor: minor
bangjelkoski May 27, 2026
3b77b9e
chore: minor main wallet validation
ivan-angjelkoski May 27, 2026
ba053e9
refactor: minor
bangjelkoski May 27, 2026
805dc51
fix: testnet tc turnkey ui api endpoint
ThomasRalee May 27, 2026
a4f0ddf
refactor: minor
bangjelkoski May 28, 2026
b90cab8
fix: devnet incorrrect evm chainId
ThomasRalee May 28, 2026
12c3f39
chore: package bump
ThomasRalee May 28, 2026
90eb5b8
feat/tc-layer+turnkey-deterministic-autosign (#156)
Frederick-88 May 29, 2026
d8c6d4b
chore: update bff schema types
ThomasRalee May 29, 2026
b8e79c4
chore: package bump
ThomasRalee May 29, 2026
c85e413
chore: minor
ThomasRalee May 29, 2026
cac7878
chore: package bump
bangjelkoski May 29, 2026
7007882
refactor: minor
bangjelkoski May 28, 2026
358079a
chore: package bump
bangjelkoski May 29, 2026
920ef47
chore: package bump
bangjelkoski May 29, 2026
0df18c7
fix: wallet validation
ivan-angjelkoski May 29, 2026
e7b4e19
chore: package bump
bangjelkoski Jun 1, 2026
73c0c98
chore: package bump
bangjelkoski Jun 1, 2026
7d122f0
chore: package bump
bangjelkoski Jun 1, 2026
3c24610
chore: update bff schema types
ThomasRalee Jun 3, 2026
372eb1b
chore: update bff typings
ThomasRalee Jun 4, 2026
cac31b9
fix: connectDeterministicAutoSign not using eip712 for evmWallets
ThomasRalee Jun 4, 2026
3c0163e
chore: package bump
ThomasRalee Jun 4, 2026
2e7d220
chore: package bump
ThomasRalee Jun 4, 2026
e696c48
chore: package bump
bangjelkoski Jun 8, 2026
3993536
chore: package bump
bangjelkoski Jun 8, 2026
dfe73ef
chore: add fetchTokensUsdPriceMapLean asset for better performance
ThomasRalee Jun 8, 2026
08e657b
chore: hardcode initial usdc usd value to 1
ThomasRalee Jun 8, 2026
ee019bd
chore: remove unused console log
ThomasRalee Jun 8, 2026
8871d05
chore: update bff generation cli commands to include API key
ThomasRalee Jun 9, 2026
ba16850
chore: bff include credentials: include as default header to every bf…
ThomasRalee Jun 9, 2026
0b74213
chore: bffApi remove default credentials: include config
ThomasRalee Jun 9, 2026
9ef2813
chore: package bump
ThomasRalee Jun 9, 2026
e921202
chore: package bump
ThomasRalee Jun 9, 2026
a121dd3
chore: package bump
ThomasRalee Jun 10, 2026
2131992
chore: align to latest evm wallet detection optimisation on injective-ts
ThomasRalee Jun 10, 2026
79a79aa
chore: package bump
bangjelkoski Jun 10, 2026
f4c99ad
chore: package bump
bangjelkoski Jun 12, 2026
6ce1fbb
chore: package bump
bangjelkoski Jun 12, 2026
0b543f6
chore: error handles from notification
bangjelkoski Jun 12, 2026
24ae8b6
chore: update bff typings
ThomasRalee Jun 13, 2026
ea6748c
refactor: isolate shared wallet state from wallet runtime
bangjelkoski Jun 13, 2026
205efb6
fix: align usd amount rounding test
bangjelkoski Jun 13, 2026
c441466
refactor: defer gtag after shell idle
bangjelkoski Jun 13, 2026
9dc68f0
fix: revert isolated shared wallet state
bangjelkoski Jun 13, 2026
06c7ef8
chore: package bump
bangjelkoski Jun 14, 2026
195d07c
refactor: minor imports
bangjelkoski Jun 14, 2026
5740111
chore: package bump
bangjelkoski Jun 15, 2026
49fa63e
chore: minor
bangjelkoski Jun 16, 2026
4037444
chore: package bump
bangjelkoski Jun 16, 2026
cb50a06
fix: minor
bangjelkoski Jun 16, 2026
f700b8f
fix: add autoSignWithDirectSign
bangjelkoski Jun 16, 2026
d24674c
feat: tc layer service barrel import optimisation (#161)
ThomasRalee Jun 16, 2026
c2aaa48
chore: package bump
ThomasRalee Jun 16, 2026
455a2ab
feat/tc-layer+fix-cosmos-wallet-broadcast (#162)
Frederick-88 Jun 16, 2026
ddab7e7
chore: package bump
bangjelkoski Jun 17, 2026
14072b9
chore: package bump
bangjelkoski Jun 17, 2026
30204d4
chore: package bump
bangjelkoski Jun 18, 2026
21ce1db
chore: package bump
ThomasRalee Jun 18, 2026
42263b7
chore: package bump
ThomasRalee Jun 19, 2026
7df4d68
feat: tc bundle size optimisation (#163)
ThomasRalee Jun 22, 2026
6e2dcaa
chore: package bump
ThomasRalee Jun 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: 'en-US'
early_access: false
reviews:
profile: 'chill'
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: false
collapse_walkthrough: true
changed_files_summary: false
sequence_diagrams: false
estimate_code_review_effort: false
assess_linked_issues: false
related_issues: false
related_prs: false
suggested_labels: false
suggested_reviewers: false
path_filters:
- '!pnpm-lock.yaml'
- '!**/*.lock'
- '!**/dist/**'
- '!**/.nuxt/**'
- '!**/.output/**'
- '!**/node_modules/**'
- '!**/*.generated.*'
- '!**/*.tsbuildinfo'
- '!stats.html'
auto_review:
enabled: true
auto_incremental_review: true
auto_pause_after_reviewed_commits: 0
drafts: true
base_branches:
- '.*'
ignore_title_keywords:
- 'WIP'
- 'DO NOT REVIEW'
- '[skip-coderabbit]'
- '[skip ci]'
tools:
eslint:
enabled: false
biome:
enabled: false
gitleaks:
enabled: true
yamllint:
enabled: false
shellcheck:
enabled: true
github-checks:
enabled: false
timeout_ms: 90000
languagetool:
enabled: false
actionlint:
enabled: false
markdownlint:
enabled: false
chat:
auto_reply: true
4 changes: 2 additions & 2 deletions app/classes/TokenFactoryStatic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isCw20ContractAddress } from '@injectivelabs/sdk-ts/utils'
import { TokenType, TokenVerification } from '@injectivelabs/sdk-ts/types'
import { isCw20ContractAddress } from '@injectivelabs/sdk-ts/utils/address'
import { TokenType, TokenVerification } from '@injectivelabs/sdk-ts/types/light'
import type { TokenSource, TokenStatic } from '@injectivelabs/sdk-ts'

export class TokenStaticFactory {
Expand Down
5 changes: 3 additions & 2 deletions app/classes/Tokens.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { unknownToken } from '../data/token'
import { TokenVerification } from '@injectivelabs/sdk-ts/types'
import { tokenCacheApi } from '../service/cache'
import { sharedTokenClient } from '../service/token'
/**
* @deprecated Use subpath imports from '@injectivelabs/sdk-ts/service' instead.
* TokenFactoryStatic is temporarily imported from the barrel until all apps migrate.
*/
import { TokenFactoryStatic } from '@injectivelabs/sdk-ts/service'
import { tokenCacheApi, sharedTokenClient } from '../service'
import { TokenVerification } from '@injectivelabs/sdk-ts/types/light'
import type { Coin, TokenStatic } from '@injectivelabs/sdk-ts'
import type { SharedBalanceWithToken } from '../types'

Expand Down
2 changes: 1 addition & 1 deletion app/components/Amount/Base.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import { abbreviateNumber } from '../../utils/helper'
import { BigNumber, toBigNumber } from '@injectivelabs/utils'
import { BigNumber, toBigNumber } from '@injectivelabs/utils/big-number'
import {
DEFAULT_DISPLAY_DECIMALS,
DEFAULT_SUBSCRIPT_DECIMALS,
Expand Down
2 changes: 1 addition & 1 deletion app/components/Amount/Index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Index from './Index.vue'
import { it, expect, describe } from 'vitest'
import { BigNumber } from '@injectivelabs/utils'
import { mountSuspended } from '@nuxt/test-utils/runtime'
import { BigNumber } from '@injectivelabs/utils/big-number'
import { DEFAULT_ABBREVIATION_THRESHOLD } from '../../utils/constant/index'

describe('Amount/Index.vue', () => {
Expand Down
2 changes: 1 addition & 1 deletion app/components/Amount/Index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { BigNumber, toBigNumber } from '@injectivelabs/utils'
import { BigNumber, toBigNumber } from '@injectivelabs/utils/big-number'
import {
DEFAULT_ASSET_DECIMALS,
DEFAULT_ABBREVIATED_DECIMALS,
Expand Down
4 changes: 2 additions & 2 deletions app/components/Amount/Usd.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Usd from './Usd.vue'
import { it, expect, describe } from 'vitest'
import { BigNumber } from '@injectivelabs/utils'
import { mountSuspended } from '@nuxt/test-utils/runtime'
import { BigNumber } from '@injectivelabs/utils/big-number'
import { DEFAULT_ABBREVIATION_THRESHOLD } from '../../utils/constant/index'

describe('Amount/Usd.vue', () => {
Expand Down Expand Up @@ -216,7 +216,7 @@ describe('Amount/Usd.vue', () => {
}
})

expect(component.text()).toBe('$<0.01')
expect(component.text()).toBe('$0.01')
})
})

Expand Down
2 changes: 1 addition & 1 deletion app/components/Amount/Usd.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { BigNumber } from '@injectivelabs/utils'
import { BigNumber } from '@injectivelabs/utils/big-number'
import { DEFAULT_USD_DECIMALS } from '../../utils/constant'

withDefaults(
Expand Down
2 changes: 1 addition & 1 deletion app/components/NumInput.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useIMask } from 'vue-imask'
import { toBigNumber } from '@injectivelabs/utils'
import { createIMaskConfig } from '@shared/utils/iMask'
import { toBigNumber } from '@injectivelabs/utils/big-number'

const props = withDefaults(
defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion app/components/QRCode.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import QRCodeStyling from 'qr-code-styling'
import { injLogoBase64 } from '../data/token'
import { injLogoBase64 } from '../data/tokenLogo'

const props = withDefaults(
defineProps<{
Expand Down
1 change: 0 additions & 1 deletion app/composables/hooks/onWalletConnected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export function onMountedOrWalletConnected(
registerWalletConnectedCallback(onConnectedCallback || onMountedCallback)
}


export const onWalletConnected = (callback: Function) => {
onMounted(() => {
callback()
Expand Down
10 changes: 4 additions & 6 deletions app/composables/useSharedBigNumberFormatted.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { toValue, computed } from 'vue'
import { abbreviateNumber } from '../utils/helper'
import { toValue, computed, type Ref, type ComputedRef } from 'vue'
import {
BigNumber,
toBigNumber,
getExactDecimalsFromNumber
} from '@injectivelabs/utils'
import { BigNumber, toBigNumber } from '@injectivelabs/utils/big-number'
import { getExactDecimalsFromNumber } from '@injectivelabs/utils/numbers'
import type { Ref, ComputedRef } from 'vue'

const ZERO_IN_BIG_NUMBER = toBigNumber(0)
const DEFAULT_DECIMAL_PLACES = 2
Expand Down
27 changes: 7 additions & 20 deletions app/composables/useSharedWalletOptions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Wallet } from '@injectivelabs/wallet-base'
import { getEvmProvidersFromWalletStrategy } from '../wallet/utils/evm'
import { Wallet } from '@injectivelabs/wallet-base/light'
import {
IS_HELIX,
IS_DEVNET,
Expand All @@ -9,32 +8,28 @@ import {
import type { SharedWalletOption } from '../types'

export function useSharedWalletOptions() {
const evmProviders = ref<Wallet[]>([])
const sharedWalletStore = useSharedWalletStore()

const popularOptions = computed(() => {
return [
{
wallet: Wallet.Metamask,
downloadLink:
!sharedWalletStore.metamaskInstalled &&
!evmProviders.value.includes(Wallet.Metamask)
!sharedWalletStore.metamaskInstalled
? 'https://metamask.io/download'
: undefined
},
{
wallet: Wallet.Keplr,
downloadLink:
!sharedWalletStore.keplrInstalled &&
!evmProviders.value.includes(Wallet.Keplr)
!sharedWalletStore.keplrInstalled
? 'https://www.keplr.app/download'
: undefined
},
{
wallet: Wallet.Rabby,
downloadLink:
!sharedWalletStore.rabbyInstalled &&
!evmProviders.value.includes(Wallet.Rabby)
!sharedWalletStore.rabbyInstalled
? 'https://rabby.io/'
: undefined
}
Expand All @@ -47,8 +42,7 @@ export function useSharedWalletOptions() {
{
wallet: Wallet.Rainbow,
downloadLink:
!sharedWalletStore.rainbowInstalled &&
!evmProviders.value.includes(Wallet.Rainbow)
!sharedWalletStore.rainbowInstalled
? 'https://rainbow.me/download'
: undefined
},
Expand All @@ -65,16 +59,14 @@ export function useSharedWalletOptions() {
: {
wallet: Wallet.BitGet,
downloadLink:
!sharedWalletStore.bitGetInstalled &&
!evmProviders.value.includes(Wallet.BitGet)
!sharedWalletStore.bitGetInstalled
? 'https://web3.bitget.com/en/wallet-download'
: undefined
},
{
wallet: Wallet.OkxWallet,
downloadLink:
!sharedWalletStore.okxWalletInstalled &&
!evmProviders.value.includes(Wallet.OkxWallet)
!sharedWalletStore.okxWalletInstalled
? 'https://www.okx.com/web3'
: undefined
},
Expand Down Expand Up @@ -106,11 +98,6 @@ export function useSharedWalletOptions() {
)

async function validateWalletExtensionInstalled() {
// Get EVM providers from the strategy to determine which wallet extensions are installed on client's browser
evmProviders.value = Object.keys(
await getEvmProvidersFromWalletStrategy()
) as Wallet[]

await Promise.all([
sharedWalletStore.checkIsBitGetInstalled(),
sharedWalletStore.checkIsRainbowInstalled(),
Expand Down
8 changes: 5 additions & 3 deletions app/data/oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ const TESTNET_CHAINLINK_USDC_SYMBOL =
const MAINNET_CHAINLINK_USDC_SYMBOL =
'0x00038f83323b6b08116d1614cf33a9bd71ab5e0abf0c9f1b783a74a43e7bd992'

export const CHAIN_LINK_USDC_SYMBOL = IS_MAINNET
? MAINNET_CHAINLINK_USDC_SYMBOL
: TESTNET_CHAINLINK_USDC_SYMBOL

export const ORACLE_USD_PRICE_TOKENS: Record<string, string> = {
[usdcToken.denom]: IS_MAINNET
? MAINNET_CHAINLINK_USDC_SYMBOL
: TESTNET_CHAINLINK_USDC_SYMBOL
[usdcToken.denom]: CHAIN_LINK_USDC_SYMBOL
}
8 changes: 1 addition & 7 deletions app/data/token.ts

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions app/data/tokenLogo.ts

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions app/generated/bff-api-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,22 @@ export function createBffClient(client: ApiClient) {
post: ((...init: MethodArgs<'post', '/api/v1/bridge/deposit'>) =>
client.POST('/api/v1/bridge/deposit', ...init)) as LeafMethod<'post', '/api/v1/bridge/deposit'>,
},
mint: {
post: ((...init: MethodArgs<'post', '/api/v1/bridge/mint'>) =>
client.POST('/api/v1/bridge/mint', ...init)) as LeafMethod<'post', '/api/v1/bridge/mint'>,
},
notified: {
post: ((...init: MethodArgs<'post', '/api/v1/bridge/notified'>) =>
client.POST('/api/v1/bridge/notified', ...init)) as LeafMethod<'post', '/api/v1/bridge/notified'>,
},
safes: {
balance: {
get: ((...init: MethodArgs<'get', '/api/v1/bridge/safes/balance'>) =>
client.GET('/api/v1/bridge/safes/balance', ...init)) as LeafMethod<'get', '/api/v1/bridge/safes/balance'>,
},
get: ((...init: MethodArgs<'get', '/api/v1/bridge/safes'>) =>
client.GET('/api/v1/bridge/safes', ...init)) as LeafMethod<'get', '/api/v1/bridge/safes'>,
},
withdrawal: {
$address: {
get: ((...init: MethodArgs<'get', '/api/v1/bridge/withdrawal/{address}'>) =>
Expand Down Expand Up @@ -216,6 +228,12 @@ export function createBffClient(client: ApiClient) {
client.POST('/api/v1/onramp/quote', ...init)) as LeafMethod<'post', '/api/v1/onramp/quote'>,
},
},
polymarket: {
sign: {
post: ((...init: MethodArgs<'post', '/api/v1/polymarket/sign'>) =>
client.POST('/api/v1/polymarket/sign', ...init)) as LeafMethod<'post', '/api/v1/polymarket/sign'>,
},
},
profile: {
post: ((...init: MethodArgs<'post', '/api/v1/profile'>) =>
client.POST('/api/v1/profile', ...init)) as LeafMethod<'post', '/api/v1/profile'>,
Expand Down Expand Up @@ -251,6 +269,14 @@ export function createBffClient(client: ApiClient) {
},
},
},
v2: {
entry_code: {
verify: {
post: ((...init: MethodArgs<'post', '/api/v2/entry-code/verify'>) =>
client.POST('/api/v2/entry-code/verify', ...init)) as LeafMethod<'post', '/api/v2/entry-code/verify'>,
},
},
},
},
}
}
Expand Down
9,789 changes: 9,788 additions & 1 deletion app/generated/bff-spec.json

Large diffs are not rendered by default.

Loading