0xtrails 0.9.2 → 0.9.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-g6lDdnrD.js → ccip-lAtzqne5.js} +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/{index-D-QngA_s.js → index-D5AG6huo.js} +22290 -21786
- package/dist/index.js +3 -3
- package/dist/intents.d.ts +1 -1
- package/dist/intents.d.ts.map +1 -1
- package/dist/mutations.d.ts +5 -2
- package/dist/mutations.d.ts.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/transactionIntent/constants.d.ts +1 -0
- package/dist/transactionIntent/constants.d.ts.map +1 -1
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts +3 -1
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts.map +1 -1
- package/dist/transactionIntent/deposits/standardDeposit.d.ts +4 -1
- package/dist/transactionIntent/deposits/standardDeposit.d.ts.map +1 -1
- package/dist/transactionIntent/handlers/crossChain.d.ts.map +1 -1
- package/dist/transactionIntent/handlers/sameChainSameToken.d.ts.map +1 -1
- package/dist/transactionIntent/quote/normalizeQuote.d.ts.map +1 -1
- package/dist/transactionIntent/types.d.ts +2 -0
- package/dist/transactionIntent/types.d.ts.map +1 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts +25 -0
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts.map +1 -0
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts.map +1 -1
- package/dist/widget/components/ClassicSwap.d.ts.map +1 -1
- package/dist/widget/components/ConfigDisplay.d.ts.map +1 -1
- package/dist/widget/components/DynamicInputStyles.d.ts +2 -2
- package/dist/widget/components/Earn.d.ts.map +1 -1
- package/dist/widget/components/EarnPools.d.ts.map +1 -1
- package/dist/widget/components/Fund.d.ts.map +1 -1
- package/dist/widget/components/QuoteDetails.d.ts.map +1 -1
- package/dist/widget/components/Receipt.d.ts.map +1 -1
- package/dist/widget/components/SlippageToleranceSettings.d.ts.map +1 -1
- package/dist/widget/components/TransactionDetails.d.ts.map +1 -1
- package/dist/widget/components/UserPreferences.d.ts.map +1 -1
- package/dist/widget/components/WalletConnect.d.ts.map +1 -1
- package/dist/widget/css/compiled.css +1 -1
- package/dist/widget/hooks/useQuote.d.ts +2 -0
- package/dist/widget/hooks/useQuote.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/config.ts +1 -0
- package/src/constants.ts +1 -0
- package/src/error.ts +6 -1
- package/src/intents.ts +22 -1
- package/src/prices.ts +1 -1
- package/src/tokens.ts +4 -3
- package/src/transactionIntent/constants.ts +2 -0
- package/src/transactionIntent/deposits/depositOrchestrator.ts +7 -0
- package/src/transactionIntent/deposits/standardDeposit.ts +194 -37
- package/src/transactionIntent/handlers/crossChain.ts +152 -105
- package/src/transactionIntent/handlers/sameChainSameToken.ts +1 -0
- package/src/transactionIntent/quote/normalizeQuote.ts +7 -4
- package/src/transactionIntent/types.ts +2 -0
- package/src/transactionIntent/utils/resilientDepositTracker.ts +281 -0
- package/src/widget/compiled.css +1 -1
- package/src/widget/components/AccountIntentTransactionHistory.tsx +170 -87
- package/src/widget/components/ClassicSwap.tsx +7 -1
- package/src/widget/components/ConfigDisplay.tsx +5 -0
- package/src/widget/components/Earn.tsx +14 -1
- package/src/widget/components/EarnPools.tsx +180 -59
- package/src/widget/components/Fund.tsx +3 -1
- package/src/widget/components/PoolWithdraw.tsx +1 -1
- package/src/widget/components/QuoteDetails.tsx +12 -35
- package/src/widget/components/Receipt.tsx +66 -40
- package/src/widget/components/SlippageToleranceSettings.tsx +86 -44
- package/src/widget/components/TransactionDetails.tsx +138 -218
- package/src/widget/components/UserPreferences.tsx +114 -41
- package/src/widget/components/WalletConnect.tsx +111 -48
- package/src/widget/hooks/useQuote.ts +389 -352
- package/src/widget/providers/TrailsProvider.tsx +5 -0
- package/src/widget/widget.tsx +2 -0
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
PROD_SEQUENCE_NODE_GATEWAY_URL,
|
|
10
10
|
PROD_SEQUENCE_METADATA_URL,
|
|
11
11
|
PROD_TRAILS_API_URL,
|
|
12
|
+
PROD_TRAILS_APP_URL,
|
|
12
13
|
PROD_SEQUENCE_API_URL,
|
|
13
14
|
} from "../../constants.js"
|
|
14
15
|
import {
|
|
@@ -24,6 +25,7 @@ export type SequenceEnv = "prod" | "dev" | "local" | "cors-anywhere"
|
|
|
24
25
|
export interface TrailsConfig {
|
|
25
26
|
trailsApiKey: string
|
|
26
27
|
trailsApiUrl: string
|
|
28
|
+
trailsAppUrl: string
|
|
27
29
|
sequenceIndexerUrl: string
|
|
28
30
|
sequenceNodeGatewayUrl: string
|
|
29
31
|
sequenceMetadataUrl: string
|
|
@@ -42,6 +44,7 @@ export interface TrailsProviderProps {
|
|
|
42
44
|
config: {
|
|
43
45
|
trailsApiKey: string
|
|
44
46
|
trailsApiUrl?: string
|
|
47
|
+
trailsAppUrl?: string
|
|
45
48
|
sequenceIndexerUrl?: string
|
|
46
49
|
sequenceNodeGatewayUrl?: string
|
|
47
50
|
sequenceMetadataUrl?: string
|
|
@@ -63,6 +66,7 @@ export const TrailsProvider = ({ children, config }: TrailsProviderProps) => {
|
|
|
63
66
|
return {
|
|
64
67
|
trailsApiKey: config.trailsApiKey,
|
|
65
68
|
trailsApiUrl: config.trailsApiUrl || PROD_TRAILS_API_URL,
|
|
69
|
+
trailsAppUrl: config.trailsAppUrl || PROD_TRAILS_APP_URL,
|
|
66
70
|
sequenceIndexerUrl:
|
|
67
71
|
config.sequenceIndexerUrl || PROD_SEQUENCE_INDEXER_URL,
|
|
68
72
|
sequenceNodeGatewayUrl:
|
|
@@ -82,6 +86,7 @@ export const TrailsProvider = ({ children, config }: TrailsProviderProps) => {
|
|
|
82
86
|
}, [
|
|
83
87
|
config.trailsApiKey,
|
|
84
88
|
config.trailsApiUrl,
|
|
89
|
+
config.trailsAppUrl,
|
|
85
90
|
config.sequenceIndexerUrl,
|
|
86
91
|
config.sequenceMetadataUrl,
|
|
87
92
|
config.sequenceNodeGatewayUrl,
|
package/src/widget/widget.tsx
CHANGED
|
@@ -158,6 +158,7 @@ export type TrailsWidgetProps = {
|
|
|
158
158
|
apiKey: string
|
|
159
159
|
sequenceIndexerUrl?: string
|
|
160
160
|
trailsApiUrl?: string
|
|
161
|
+
trailsAppUrl?: string
|
|
161
162
|
sequenceNodeGatewayUrl?: string
|
|
162
163
|
sequenceApiUrl?: string
|
|
163
164
|
toAddress?: string | null
|
|
@@ -2862,6 +2863,7 @@ export const TrailsWidget = forwardRef<TrailsWidgetRef, TrailsWidgetProps>(
|
|
|
2862
2863
|
const trailsConfig: TrailsProviderProps["config"] = {
|
|
2863
2864
|
trailsApiKey: props.apiKey,
|
|
2864
2865
|
trailsApiUrl: props.trailsApiUrl,
|
|
2866
|
+
trailsAppUrl: props.trailsAppUrl,
|
|
2865
2867
|
sequenceApiUrl: props.sequenceApiUrl,
|
|
2866
2868
|
sequenceIndexerUrl: props.sequenceIndexerUrl,
|
|
2867
2869
|
sequenceNodeGatewayUrl: props.sequenceNodeGatewayUrl,
|