Skip to content

Commit 1ed92a5

Browse files
authored
Add lighter vm and enable destination txs (#862)
* Add lighter vm and enable destination txs * feat: changeset
1 parent a95b32d commit 1ed92a5

File tree

13 files changed

+43
-16
lines changed

13 files changed

+43
-16
lines changed

.changeset/violet-paths-live.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@relayprotocol/relay-sdk': patch
3+
'@relayprotocol/relay-kit-ui': patch
4+
---
5+
6+
Add lighter vm and enable destination txs

packages/sdk/src/types/RelayChain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type RelayAPIChain = NonNullable<
55
paths['/chains']['get']['responses']['200']['content']['application/json']['chains']
66
>['0']
77

8-
export type ChainVM = 'evm' | 'svm' | 'bvm' | 'tvm' | 'suivm' | 'hypevm'
8+
export type ChainVM = 'evm' | 'svm' | 'bvm' | 'tvm' | 'suivm' | 'hypevm' | 'lvm'
99

1010
export type RelayChain = {
1111
id: number

packages/ui/src/components/common/TokenSelector/PaymentMethod.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type PaymentMethodProps = {
5858
isValidAddress?: boolean
5959
multiWalletSupportEnabled?: boolean
6060
fromChainWalletVMSupported?: boolean
61-
supportedWalletVMs?: Omit<ChainVM, 'hypevm'>[]
61+
supportedWalletVMs?: Omit<ChainVM, 'hypevm' | 'lvm'>[]
6262
popularChainIds?: number[]
6363
linkedWallets?: any[]
6464
setToken: (token: Token) => void

packages/ui/src/components/common/TokenSelector/TokenSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export type TokenSelectorProps = {
7171
isValidAddress?: boolean
7272
multiWalletSupportEnabled?: boolean
7373
fromChainWalletVMSupported?: boolean
74-
supportedWalletVMs?: Omit<ChainVM, 'hypevm'>[]
74+
supportedWalletVMs?: Omit<ChainVM, 'hypevm' | 'lvm'>[]
7575
popularChainIds?: number[]
7676
setToken: (token: Token) => void
7777
onAnalyticEvent?: (eventName: string, data?: any) => void

packages/ui/src/components/widgets/OnrampWidget/widget/OnrampWidgetRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export type ChildrenProps = {
6565

6666
type OnrampWidgetRendererProps = {
6767
defaultWalletAddress?: string
68-
supportedWalletVMs: Omit<ChainVM, 'hypevm'>[]
68+
supportedWalletVMs: Omit<ChainVM, 'hypevm' | 'lvm'>[]
6969
linkedWallets?: LinkedWallet[]
7070
multiWalletSupportEnabled?: boolean
7171
moonPayApiKey: string

packages/ui/src/components/widgets/OnrampWidget/widget/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { ProviderOptionsContext } from '../../../../providers/RelayKitProvider.j
2525

2626
type BaseOnrampWidgetProps = {
2727
defaultWalletAddress?: string
28-
supportedWalletVMs: Omit<ChainVM, 'hypevm'>[]
28+
supportedWalletVMs: Omit<ChainVM, 'hypevm' | 'lvm'>[]
2929
moonPayApiKey: string
3030
moonPayThemeId?: string
3131
moonPayThemeMode?: 'dark' | 'light'

packages/ui/src/components/widgets/SwapWidget/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type BaseSwapWidgetProps = {
6363
lockChainId?: number
6464
singleChainMode?: boolean
6565
wallet?: AdaptedWallet
66-
supportedWalletVMs: Omit<ChainVM, 'hypevm'>[]
66+
supportedWalletVMs: Omit<ChainVM, 'hypevm' | 'lvm'>[]
6767
disableInputAutoFocus?: boolean
6868
popularChainIds?: number[]
6969
disablePasteWalletAddressOption?: boolean

packages/ui/src/components/widgets/SwapWidgetRenderer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type SwapWidgetRendererProps = {
6666
wallet?: AdaptedWallet
6767
linkedWallets?: LinkedWallet[]
6868
multiWalletSupportEnabled?: boolean
69-
supportedWalletVMs: Omit<ChainVM, 'hypevm'>[]
69+
supportedWalletVMs: Omit<ChainVM, 'hypevm' | 'lvm'>[]
7070
onConnectWallet?: () => void
7171
onAnalyticEvent?: (eventName: string, data?: any) => void
7272
onSwapError?: (error: string, data?: Execute) => void
@@ -130,7 +130,7 @@ export type ChildrenProps = {
130130
isBvmSwap: boolean
131131
isValidFromAddress: boolean
132132
isValidToAddress: boolean
133-
supportedWalletVMs: Omit<ChainVM, 'hypevm'>[]
133+
supportedWalletVMs: Omit<ChainVM, 'hypevm' | 'lvm'>[]
134134
fromChainWalletVMSupported: boolean
135135
toChainWalletVMSupported: boolean
136136
isRecipientLinked?: boolean

packages/ui/src/components/widgets/TokenWidget/widget/TokenWidgetRenderer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type TokenWidgetRendererProps = {
6464
wallet?: AdaptedWallet
6565
linkedWallets?: LinkedWallet[]
6666
multiWalletSupportEnabled?: boolean
67-
supportedWalletVMs: Omit<ChainVM, 'hypevm'>[]
67+
supportedWalletVMs: Omit<ChainVM, 'hypevm' | 'lvm'>[]
6868
onConnectWallet?: () => void
6969
onAnalyticEvent?: (eventName: string, data?: any) => void
7070
onSwapError?: (error: string, data?: Execute) => void
@@ -140,7 +140,7 @@ export type ChildrenProps = {
140140
isBvmSwap: boolean
141141
isValidFromAddress: boolean
142142
isValidToAddress: boolean
143-
supportedWalletVMs: Omit<ChainVM, 'hypevm'>[]
143+
supportedWalletVMs: Omit<ChainVM, 'hypevm' | 'lvm'>[]
144144
fromChainWalletVMSupported: boolean
145145
toChainWalletVMSupported: boolean
146146
isRecipientLinked?: boolean

packages/ui/src/components/widgets/TokenWidget/widget/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type BaseTokenWidgetProps = {
5454
lockChainId?: number
5555
singleChainMode?: boolean
5656
wallet?: AdaptedWallet
57-
supportedWalletVMs: Omit<ChainVM, 'hypevm'>[]
57+
supportedWalletVMs: Omit<ChainVM, 'hypevm' | 'lvm'>[]
5858
disableInputAutoFocus?: boolean
5959
popularChainIds?: number[]
6060
disablePasteWalletAddressOption?: boolean

0 commit comments

Comments
 (0)