0xtrails 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ccip-CZfykYU7.js → ccip-B4OF5VSU.js} +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/{index-S9pphnT9.js → index-Bja6TsJC.js} +18023 -17983
- package/dist/index.js +118 -115
- package/dist/prepareSend.d.ts.map +1 -1
- package/dist/transactionIntent/handlers/crossChain.d.ts +2 -1
- package/dist/transactionIntent/handlers/crossChain.d.ts.map +1 -1
- package/dist/transactionIntent/handlers/sameChainSameToken.d.ts +2 -1
- package/dist/transactionIntent/handlers/sameChainSameToken.d.ts.map +1 -1
- package/dist/transactionIntent/quote/quoteHelpers.d.ts +1 -1
- package/dist/transactionIntent/quote/quoteHelpers.d.ts.map +1 -1
- package/dist/transactionIntent/types.d.ts +1 -0
- package/dist/transactionIntent/types.d.ts.map +1 -1
- package/dist/widget/components/ClassicSwap.d.ts.map +1 -1
- package/dist/widget/components/FeeOption.d.ts +6 -1
- package/dist/widget/components/FeeOption.d.ts.map +1 -1
- package/dist/widget/components/FeeOptions.d.ts.map +1 -1
- package/dist/widget/components/Pay.d.ts.map +1 -1
- package/dist/widget/components/PoolDeposit.d.ts.map +1 -1
- package/dist/widget/hooks/useQuote.d.ts +2 -1
- package/dist/widget/hooks/useQuote.d.ts.map +1 -1
- package/dist/widget/hooks/useSendForm.d.ts.map +1 -1
- package/dist/widget/index.js +1 -1
- package/dist/widget/providers/TrailsProvider.d.ts +2 -0
- package/dist/widget/providers/TrailsProvider.d.ts.map +1 -1
- package/dist/widget/widget.d.ts +1 -0
- package/dist/widget/widget.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/constants.ts +5 -0
- package/src/prepareSend.ts +3 -0
- package/src/transactionIntent/handlers/crossChain.ts +3 -0
- package/src/transactionIntent/handlers/sameChainSameToken.ts +3 -0
- package/src/transactionIntent/quote/quoteHelpers.ts +7 -2
- package/src/transactionIntent/types.ts +1 -0
- package/src/widget/components/ClassicSwap.tsx +10 -1
- package/src/widget/components/FeeOption.tsx +52 -38
- package/src/widget/components/FeeOptions.tsx +57 -10
- package/src/widget/components/Pay.tsx +23 -8
- package/src/widget/components/PoolDeposit.tsx +10 -1
- package/src/widget/hooks/useQuote.ts +4 -0
- package/src/widget/hooks/useSendForm.ts +6 -0
- package/src/widget/providers/TrailsProvider.tsx +7 -1
- package/src/widget/widget.tsx +1 -0
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
PROD_SEQUENCE_NODE_GATEWAY_URL,
|
|
9
9
|
PROD_SEQUENCE_METADATA_URL,
|
|
10
10
|
PROD_TRAILS_API_URL,
|
|
11
|
+
PROD_SEQUENCE_API_URL,
|
|
11
12
|
} from "../../constants.js"
|
|
12
13
|
import {
|
|
13
14
|
declareCommitHash,
|
|
@@ -25,6 +26,7 @@ export interface TrailsConfig {
|
|
|
25
26
|
sequenceIndexerUrl: string
|
|
26
27
|
sequenceNodeGatewayUrl: string
|
|
27
28
|
sequenceMetadataUrl: string
|
|
29
|
+
sequenceApiUrl: string
|
|
28
30
|
walletConnectProjectId: string
|
|
29
31
|
slippageTolerance: string | number
|
|
30
32
|
debug: boolean
|
|
@@ -39,6 +41,7 @@ export interface TrailsProviderProps {
|
|
|
39
41
|
sequenceIndexerUrl?: string
|
|
40
42
|
sequenceNodeGatewayUrl?: string
|
|
41
43
|
sequenceMetadataUrl?: string
|
|
44
|
+
sequenceApiUrl?: string
|
|
42
45
|
walletConnectProjectId?: string
|
|
43
46
|
slippageTolerance?: string | number
|
|
44
47
|
debug?: boolean
|
|
@@ -59,6 +62,7 @@ export const TrailsProvider = ({ children, config }: TrailsProviderProps) => {
|
|
|
59
62
|
config.sequenceNodeGatewayUrl || PROD_SEQUENCE_NODE_GATEWAY_URL,
|
|
60
63
|
sequenceMetadataUrl:
|
|
61
64
|
config.sequenceMetadataUrl || PROD_SEQUENCE_METADATA_URL,
|
|
65
|
+
sequenceApiUrl: config.sequenceApiUrl || PROD_SEQUENCE_API_URL,
|
|
62
66
|
walletConnectProjectId:
|
|
63
67
|
config.walletConnectProjectId || DEFAULT_WALLETCONNECT_PROJECT_ID,
|
|
64
68
|
slippageTolerance: config.slippageTolerance ?? DEFAULT_SLIPPAGE_TOLERANCE,
|
|
@@ -71,6 +75,7 @@ export const TrailsProvider = ({ children, config }: TrailsProviderProps) => {
|
|
|
71
75
|
config.sequenceIndexerUrl,
|
|
72
76
|
config.sequenceMetadataUrl,
|
|
73
77
|
config.sequenceNodeGatewayUrl,
|
|
78
|
+
config.sequenceApiUrl,
|
|
74
79
|
config.walletConnectProjectId,
|
|
75
80
|
config.slippageTolerance,
|
|
76
81
|
config.debug,
|
|
@@ -94,7 +99,8 @@ export const TrailsProvider = ({ children, config }: TrailsProviderProps) => {
|
|
|
94
99
|
return {
|
|
95
100
|
projectAccessKey: trailsConfig.trailsApiKey || "",
|
|
96
101
|
env: {
|
|
97
|
-
apiUrl: trailsConfig.
|
|
102
|
+
apiUrl: trailsConfig.sequenceApiUrl,
|
|
103
|
+
metadataUrl: trailsConfig.sequenceMetadataUrl,
|
|
98
104
|
indexerUrl: trailsConfig.sequenceIndexerUrl,
|
|
99
105
|
indexerGatewayUrl: trailsConfig.sequenceIndexerUrl,
|
|
100
106
|
},
|