0xtrails 0.4.3 → 0.5.0
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-C9CA3tIi.js → ccip-DhEkQ6QC.js} +27 -27
- package/dist/cctpqueue.d.ts.map +1 -1
- package/dist/chains.d.ts +3 -1
- package/dist/chains.d.ts.map +1 -1
- package/dist/config.d.ts +17 -52
- package/dist/config.d.ts.map +1 -1
- package/dist/constants.d.ts +0 -6
- package/dist/constants.d.ts.map +1 -1
- package/dist/{index-CNB57v0n.js → index-MhD2DA7_.js} +23974 -24305
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +319 -944
- package/dist/indexerClient.d.ts +9 -6
- package/dist/indexerClient.d.ts.map +1 -1
- package/dist/intents.d.ts +0 -1
- package/dist/intents.d.ts.map +1 -1
- package/dist/prepareSend.d.ts.map +1 -1
- package/dist/sequenceWallet.d.ts +1 -1
- package/dist/sequenceWallet.d.ts.map +1 -1
- package/dist/trailsClient.d.ts +3 -3
- package/dist/trailsClient.d.ts.map +1 -1
- package/dist/transactionIntent/handlers/crossChain.d.ts +3 -1
- package/dist/transactionIntent/handlers/crossChain.d.ts.map +1 -1
- package/dist/transactionIntent/types.d.ts +1 -0
- package/dist/transactionIntent/types.d.ts.map +1 -1
- package/dist/transactions.d.ts +8 -2
- package/dist/transactions.d.ts.map +1 -1
- package/dist/wallets.d.ts.map +1 -1
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts.map +1 -1
- package/dist/widget/components/ConfigDisplay.d.ts.map +1 -1
- package/dist/widget/components/FeeOptions.d.ts.map +1 -1
- package/dist/widget/components/SlippageToleranceSettings.d.ts +1 -0
- package/dist/widget/components/SlippageToleranceSettings.d.ts.map +1 -1
- package/dist/widget/components/WalletConnect.d.ts.map +1 -1
- package/dist/widget/hooks/useIntentTransactionHistory.d.ts.map +1 -1
- package/dist/widget/hooks/useQuote.d.ts +2 -4
- package/dist/widget/hooks/useQuote.d.ts.map +1 -1
- package/dist/widget/hooks/useSendForm.d.ts.map +1 -1
- package/dist/widget/index.d.ts +1 -0
- package/dist/widget/index.d.ts.map +1 -1
- package/dist/widget/index.js +4 -2
- package/dist/widget/providers/TrailsProvider.d.ts +18 -0
- package/dist/widget/providers/TrailsProvider.d.ts.map +1 -0
- package/dist/widget/widget.d.ts +3 -3
- package/dist/widget/widget.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/analytics.ts +2 -2
- package/src/cctpqueue.ts +6 -3
- package/src/chains.ts +62 -29
- package/src/config.ts +36 -210
- package/src/constants.ts +0 -9
- package/src/index.ts +12 -35
- package/src/indexerClient.ts +39 -48
- package/src/intents.ts +0 -21
- package/src/prepareSend.ts +12 -2
- package/src/sequenceWallet.ts +1 -2
- package/src/trailsClient.ts +17 -12
- package/src/transactionIntent/handlers/crossChain.ts +18 -0
- package/src/transactionIntent/types.ts +1 -0
- package/src/transactions.ts +122 -24
- package/src/wallets.ts +5 -6
- package/src/widget/components/AccountIntentTransactionHistory.tsx +5 -0
- package/src/widget/components/ConfigDisplay.tsx +19 -59
- package/src/widget/components/FeeOptions.tsx +1 -1
- package/src/widget/components/SlippageToleranceSettings.tsx +63 -14
- package/src/widget/components/WalletConnect.tsx +37 -99
- package/src/widget/hooks/useIntentTransactionHistory.ts +9 -1
- package/src/widget/hooks/useQuote.ts +11 -17
- package/src/widget/hooks/useSendForm.ts +4 -0
- package/src/widget/index.tsx +8 -0
- package/src/widget/providers/TrailsProvider.tsx +95 -0
- package/src/widget/widget.tsx +49 -98
- package/dist/trails.d.ts +0 -110
- package/dist/trails.d.ts.map +0 -1
- package/src/trails.ts +0 -1303
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as b, a2 as O, a3 as x, a4 as q, a5 as $, a6 as F, a7 as E, a8 as D, a9 as w, aa as G, ab as R, ac as I, ad as T, ae as y, af as L, ag as M, ah as m, ai as C, aj as H, ak as j, al as v, am as U, an as k, ao as B } from "./index-MhD2DA7_.js";
|
|
2
2
|
function _(a) {
|
|
3
|
-
const { abi: r, data: e } = a, s = b(e, 0, 4), t = r.find((n) => n.type === "function" && s === x(
|
|
3
|
+
const { abi: r, data: e } = a, s = b(e, 0, 4), t = r.find((n) => n.type === "function" && s === O(x(n)));
|
|
4
4
|
if (!t)
|
|
5
|
-
throw new
|
|
5
|
+
throw new q(s, {
|
|
6
6
|
docsPath: "/docs/contract/decodeFunctionData"
|
|
7
7
|
});
|
|
8
8
|
return {
|
|
@@ -11,32 +11,32 @@ function _(a) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
const p = "/docs/contract/encodeErrorResult";
|
|
14
|
-
function
|
|
14
|
+
function A(a) {
|
|
15
15
|
const { abi: r, errorName: e, args: s } = a;
|
|
16
16
|
let t = r[0];
|
|
17
17
|
if (e) {
|
|
18
|
-
const d =
|
|
18
|
+
const d = F({ abi: r, args: s, name: e });
|
|
19
19
|
if (!d)
|
|
20
20
|
throw new E(e, { docsPath: p });
|
|
21
21
|
t = d;
|
|
22
22
|
}
|
|
23
23
|
if (t.type !== "error")
|
|
24
24
|
throw new E(void 0, { docsPath: p });
|
|
25
|
-
const n =
|
|
25
|
+
const n = x(t), o = O(n);
|
|
26
26
|
let c = "0x";
|
|
27
27
|
if (s && s.length > 0) {
|
|
28
28
|
if (!t.inputs)
|
|
29
29
|
throw new D(t.name, { docsPath: p });
|
|
30
30
|
c = w(t.inputs, s);
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return G([o, c]);
|
|
33
33
|
}
|
|
34
34
|
const h = "/docs/contract/encodeFunctionResult";
|
|
35
|
-
function
|
|
35
|
+
function J(a) {
|
|
36
36
|
const { abi: r, functionName: e, result: s } = a;
|
|
37
37
|
let t = r[0];
|
|
38
38
|
if (e) {
|
|
39
|
-
const o =
|
|
39
|
+
const o = F({ abi: r, name: e });
|
|
40
40
|
if (!o)
|
|
41
41
|
throw new R(e, { docsPath: h });
|
|
42
42
|
t = o;
|
|
@@ -44,7 +44,7 @@ function z(a) {
|
|
|
44
44
|
if (t.type !== "function")
|
|
45
45
|
throw new R(void 0, { docsPath: h });
|
|
46
46
|
if (!t.outputs)
|
|
47
|
-
throw new
|
|
47
|
+
throw new I(t.name, { docsPath: h });
|
|
48
48
|
const n = (() => {
|
|
49
49
|
if (t.outputs.length === 0)
|
|
50
50
|
return [];
|
|
@@ -52,11 +52,11 @@ function z(a) {
|
|
|
52
52
|
return [s];
|
|
53
53
|
if (Array.isArray(s))
|
|
54
54
|
return s;
|
|
55
|
-
throw new
|
|
55
|
+
throw new T(s);
|
|
56
56
|
})();
|
|
57
57
|
return w(t.outputs, n);
|
|
58
58
|
}
|
|
59
|
-
class
|
|
59
|
+
class W extends y {
|
|
60
60
|
constructor({ callbackSelector: r, cause: e, data: s, extraData: t, sender: n, urls: o }) {
|
|
61
61
|
super(e.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
62
62
|
cause: e,
|
|
@@ -77,7 +77,7 @@ class J extends y {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
class
|
|
80
|
+
class z extends y {
|
|
81
81
|
constructor({ result: r, url: e }) {
|
|
82
82
|
super("Offchain gateway response is malformed. Response data must be a hex value.", {
|
|
83
83
|
metaMessages: [
|
|
@@ -108,19 +108,19 @@ async function P(a) {
|
|
|
108
108
|
} catch (d) {
|
|
109
109
|
t[c] = !0, n[c] = Q(d);
|
|
110
110
|
}
|
|
111
|
-
})),
|
|
111
|
+
})), J({
|
|
112
112
|
abi: m,
|
|
113
113
|
functionName: "query",
|
|
114
114
|
result: [t, n]
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
function Q(a) {
|
|
118
|
-
return a.name === "HttpRequestError" && a.status ?
|
|
118
|
+
return a.name === "HttpRequestError" && a.status ? A({
|
|
119
119
|
abi: m,
|
|
120
120
|
errorName: "HttpError",
|
|
121
121
|
args: [a.status, a.shortMessage]
|
|
122
|
-
}) :
|
|
123
|
-
abi: [
|
|
122
|
+
}) : A({
|
|
123
|
+
abi: [C],
|
|
124
124
|
errorName: "Error",
|
|
125
125
|
args: ["shortMessage" in a ? a.shortMessage : a.message]
|
|
126
126
|
});
|
|
@@ -152,28 +152,28 @@ const Z = "0x556f1830", V = {
|
|
|
152
152
|
]
|
|
153
153
|
};
|
|
154
154
|
async function tt(a, { blockNumber: r, blockTag: e, data: s, to: t }) {
|
|
155
|
-
const { args: n } =
|
|
155
|
+
const { args: n } = H({
|
|
156
156
|
data: s,
|
|
157
157
|
abi: [V]
|
|
158
158
|
}), [o, c, d, i, u] = n, { ccipRead: f } = a, g = f && typeof f?.request == "function" ? f.request : X;
|
|
159
159
|
try {
|
|
160
|
-
if (!
|
|
160
|
+
if (!j(t, o))
|
|
161
161
|
throw new K({ sender: o, to: t });
|
|
162
162
|
const l = c.includes(N) ? await P({
|
|
163
163
|
data: d,
|
|
164
164
|
ccipRequest: g
|
|
165
|
-
}) : await g({ data: d, sender: o, urls: c }), { data:
|
|
165
|
+
}) : await g({ data: d, sender: o, urls: c }), { data: S } = await v(a, {
|
|
166
166
|
blockNumber: r,
|
|
167
167
|
blockTag: e,
|
|
168
|
-
data:
|
|
168
|
+
data: U([
|
|
169
169
|
i,
|
|
170
170
|
w([{ type: "bytes" }, { type: "bytes" }], [l, u])
|
|
171
171
|
]),
|
|
172
172
|
to: t
|
|
173
173
|
});
|
|
174
|
-
return
|
|
174
|
+
return S;
|
|
175
175
|
} catch (l) {
|
|
176
|
-
throw new
|
|
176
|
+
throw new W({
|
|
177
177
|
callbackSelector: i,
|
|
178
178
|
cause: l,
|
|
179
179
|
data: s,
|
|
@@ -195,7 +195,7 @@ async function X({ data: a, sender: r, urls: e }) {
|
|
|
195
195
|
});
|
|
196
196
|
let u;
|
|
197
197
|
if (i.headers.get("Content-Type")?.startsWith("application/json") ? u = (await i.json()).data : u = await i.text(), !i.ok) {
|
|
198
|
-
s = new
|
|
198
|
+
s = new k({
|
|
199
199
|
body: c,
|
|
200
200
|
details: u?.error ? M(u.error) : i.statusText,
|
|
201
201
|
headers: i.headers,
|
|
@@ -204,8 +204,8 @@ async function X({ data: a, sender: r, urls: e }) {
|
|
|
204
204
|
});
|
|
205
205
|
continue;
|
|
206
206
|
}
|
|
207
|
-
if (!
|
|
208
|
-
s = new
|
|
207
|
+
if (!B(u)) {
|
|
208
|
+
s = new z({
|
|
209
209
|
result: u,
|
|
210
210
|
url: n
|
|
211
211
|
});
|
|
@@ -213,7 +213,7 @@ async function X({ data: a, sender: r, urls: e }) {
|
|
|
213
213
|
}
|
|
214
214
|
return u;
|
|
215
215
|
} catch (i) {
|
|
216
|
-
s = new
|
|
216
|
+
s = new k({
|
|
217
217
|
body: c,
|
|
218
218
|
details: i.message,
|
|
219
219
|
url: n
|
package/dist/cctpqueue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cctpqueue.d.ts","sourceRoot":"","sources":["../src/cctpqueue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD,KAAK,gBAAgB,GAAG;IACtB,iBAAiB,EAAE,CACjB,IAAI,EAAE;QACJ,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,aAAa,EAAE,MAAM,CAAA;QACrB,kBAAkB,EAAE,MAAM,CAAA;KAC3B,EACD,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,OAAO,CAAC,CAAA;CACtB,CAAA;
|
|
1
|
+
{"version":3,"file":"cctpqueue.d.ts","sourceRoot":"","sources":["../src/cctpqueue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD,KAAK,gBAAgB,GAAG;IACtB,iBAAiB,EAAE,CACjB,IAAI,EAAE;QACJ,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,aAAa,EAAE,MAAM,CAAA;QACrB,kBAAkB,EAAE,MAAM,CAAA;KAC3B,EACD,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,OAAO,CAAC,CAAA;CACtB,CAAA;AAwBD,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,gBAAgB,CAGxE;AAED,wBAAsB,iBAAiB,CAAC,EACtC,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,kBAAkB,GACnB,EAAE;IACD,YAAY,EAAE,YAAY,CAAA;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;CAC3B,GAAG,OAAO,CAAC,IAAI,CAAC,CAchB"}
|
package/dist/chains.d.ts
CHANGED
|
@@ -5,12 +5,14 @@ export interface Chain extends ViemChain {
|
|
|
5
5
|
}
|
|
6
6
|
export declare function getChainImageUrl(chainId: number): string;
|
|
7
7
|
export declare function getAllChains(): Chain[];
|
|
8
|
-
export declare const getRpcUrl: (chainId: number, sequenceProjectAccessKey
|
|
8
|
+
export declare const getRpcUrl: (chainId: number, sequenceProjectAccessKey: string, sequenceNodeGatewayUrl: string) => string | null;
|
|
9
9
|
export declare const supportedSequenceChains: Record<number, Chain>;
|
|
10
10
|
export declare const supportedSequenceTestnetChains: Record<number, Chain>;
|
|
11
11
|
export declare const mainnetChainsToTestnetChains: Record<number, Chain>;
|
|
12
12
|
export declare function getChainInfo(chainId?: number, options?: {
|
|
13
13
|
usePublicRpc?: boolean;
|
|
14
|
+
sequenceProjectAccessKey?: string;
|
|
15
|
+
sequenceNodeGatewayUrl?: string;
|
|
14
16
|
}): Chain | null;
|
|
15
17
|
export declare function getTestnetChainInfo(mainnetChain: Chain | number): Chain | null;
|
|
16
18
|
export declare function getSupportedSequenceChains(): Promise<Chain[]>;
|
package/dist/chains.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../src/chains.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../src/chains.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;AAoC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAIjD,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAGD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED,wBAAgB,YAAY,IAAI,KAAK,EAAE,CAkCtC;AAoDD,eAAO,MAAM,SAAS,GACpB,SAAS,MAAM,EACf,0BAA0B,MAAM,EAChC,wBAAwB,MAAM,KAC7B,MAAM,GAAG,IAMX,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAkBzD,CAAA;AAED,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAehE,CAAA;AAED,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAiB9D,CAAA;AAGD,wBAAgB,YAAY,CAC1B,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC,GACA,KAAK,GAAG,IAAI,CAkDd;AAGD,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,KAAK,GAAG,MAAM,GAC3B,KAAK,GAAG,IAAI,CAQd;AAED,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAEnE;AAED,wBAAsB,iCAAiC,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAE1E;AA0BD,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAOlE;AAED,wBAAsB,kBAAkB,CAAC,EACvC,aAAa,GACd,GAAE;IACD,aAAa,CAAC,EAAE,aAAa,GAAG,MAAM,CAAA;CAClC,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CA4BxB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,aAAa,GACd,GAAE;IACD,aAAa,CAAC,EAAE,aAAa,GAAG,MAAM,CAAA;CAClC,GAAG;IACP,eAAe,EAAE,KAAK,EAAE,CAAA;IACxB,eAAe,EAAE,OAAO,CAAA;CACzB,CAcA;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAG5D;AAGD,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAerD"}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,61 +1,26 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
sequenceIndexerUrl
|
|
5
|
-
sequenceNodeGatewayUrl
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
export declare function declareSequenceEnv(): SequenceEnv;
|
|
14
|
-
export declare function declareSequenceIndexerUrl(): "https://indexer.sequence.app" | "https://dev-indexer.sequence.app";
|
|
15
|
-
export declare function declareTrailsApiUrl(): "https://trails-api.sequence.app" | "https://dev-trails-api.sequence-dev.app" | "http://localhost:4422";
|
|
16
|
-
export declare function declareSequenceNodeGatewayUrl(): "https://nodes.sequence.app" | "https://dev-nodes.sequence.app";
|
|
17
|
-
export declare function declareSequenceProjectAccessKey(): any;
|
|
1
|
+
export interface TrailsConfig {
|
|
2
|
+
trailsApiKey: string;
|
|
3
|
+
trailsApiUrl?: string;
|
|
4
|
+
sequenceIndexerUrl?: string;
|
|
5
|
+
sequenceNodeGatewayUrl?: string;
|
|
6
|
+
walletConnectProjectId?: string;
|
|
7
|
+
slippageTolerance?: string;
|
|
8
|
+
debug?: boolean;
|
|
9
|
+
commitHash?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function getConfig<T extends keyof TrailsConfig | undefined = undefined>(propName?: T): T extends undefined ? Readonly<TrailsConfig> : TrailsConfig[NonNullable<T>];
|
|
18
12
|
export declare function declareCommitHash(): any;
|
|
19
|
-
export declare function getSequenceConfig(): {
|
|
20
|
-
sequenceProjectAccessKey: string;
|
|
21
|
-
sequenceIndexerUrl: string;
|
|
22
|
-
sequenceNodeGatewayUrl: string;
|
|
23
|
-
trailsApiUrl: string;
|
|
24
|
-
sequenceEnv: SequenceEnv;
|
|
25
|
-
walletConnectProjectId: string;
|
|
26
|
-
slippageTolerance: string;
|
|
27
|
-
debug: boolean;
|
|
28
|
-
commitHash: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
export declare function getSequenceProjectAccessKey(): string;
|
|
31
|
-
export declare function setSequenceProjectAccessKey(sequenceProjectAccessKey: string): void;
|
|
32
|
-
export declare function setSequenceIndexerUrl(sequenceIndexerUrl: string): void;
|
|
33
|
-
export declare function getSequenceIndexerUrl(): string;
|
|
34
|
-
export declare function setSequenceNodeGatewayUrl(sequenceNodeGatewayUrl: string): void;
|
|
35
|
-
export declare function getSequenceNodeGatewayUrl(): string;
|
|
36
|
-
export declare function setTrailsApiUrl(trailsApiUrl: string): void;
|
|
37
|
-
export declare function getTrailsApiUrl(): string;
|
|
38
|
-
export declare function setSequenceEnv(sequenceEnv: SequenceEnv): void;
|
|
39
|
-
export declare function getSequenceEnv(): SequenceEnv;
|
|
40
|
-
export declare function setWalletConnectProjectId(walletConnectProjectId: string): void;
|
|
41
|
-
export declare function getWalletConnectProjectId(): string;
|
|
42
13
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @param slippageTolerance - Slippage tolerance as decimal string (e.g., "0.05" for 5%, "0.001" for 0.1%)
|
|
14
|
+
* @deprecated Use TrailsProvider context instead
|
|
45
15
|
*/
|
|
46
|
-
export declare function
|
|
16
|
+
export declare function getSlippageTolerance(): string | undefined;
|
|
47
17
|
/**
|
|
48
|
-
*
|
|
49
|
-
* @returns Slippage tolerance as decimal string (e.g., "0.05" for 5%, "0.001" for 0.1%)
|
|
18
|
+
* @deprecated Use TrailsProvider context instead
|
|
50
19
|
*/
|
|
51
|
-
export declare function getSlippageTolerance(): string;
|
|
52
|
-
export declare function setDebug(debug: boolean): void;
|
|
53
20
|
export declare function getDebug(): boolean;
|
|
54
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Use TrailsProvider context instead
|
|
23
|
+
*/
|
|
55
24
|
export declare function getCommitHash(): string | undefined;
|
|
56
|
-
export declare function getAccountIntentTransactionHistory(): boolean;
|
|
57
|
-
export declare const FeatureFlags: {
|
|
58
|
-
accountIntentTransactionHistory: boolean;
|
|
59
|
-
};
|
|
60
25
|
export declare function getEnvVar(name: string): any;
|
|
61
26
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAeD,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,EAC5E,QAAQ,CAAC,EAAE,CAAC,GACX,CAAC,SAAS,SAAS,GAAG,QAAQ,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAM7E;AACD,wBAAgB,iBAAiB,QAchC;AAKD;;GAEG;AACH,wBAAgB,oBAAoB,uBAEnC;AAED;;GAEG;AACH,wBAAgB,QAAQ,YAEvB;AAED;;GAEG;AACH,wBAAgB,aAAa,uBAE5B;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,OAyBrC"}
|
package/dist/constants.d.ts
CHANGED
|
@@ -6,16 +6,10 @@ export declare const SEQUENCE_V3_CONTRACT_ADDRESSES_OVERRIDES: TrailsAddressOver
|
|
|
6
6
|
export declare const TRAILS_ROUTER_ADDRESS: Address.Address;
|
|
7
7
|
export declare const TRAILS_INTENT_ENTRYPOINT_ADDRESS: Address.Address;
|
|
8
8
|
export declare const ATTESATION_SIGNER_ADDRESS: Address.Address;
|
|
9
|
-
export declare const DEFAULT_SEQUENCE_ENV = "prod";
|
|
10
9
|
export declare const PROD_SEQUENCE_NODE_GATEWAY_URL = "https://nodes.sequence.app";
|
|
11
10
|
export declare const PROD_SEQUENCE_INDEXER_URL = "https://indexer.sequence.app";
|
|
12
11
|
export declare const PROD_TRAILS_API_URL = "https://trails-api.sequence.app";
|
|
13
|
-
export declare const DEV_SEQUENCE_NODE_GATEWAY_URL = "https://dev-nodes.sequence.app";
|
|
14
|
-
export declare const DEV_SEQUENCE_INDEXER_URL = "https://dev-indexer.sequence.app";
|
|
15
|
-
export declare const DEV_TRAILS_API_URL = "https://dev-trails-api.sequence-dev.app";
|
|
16
|
-
export declare const LOCAL_TRAILS_API_URL = "http://localhost:4422";
|
|
17
12
|
export declare const PROD_SEQUENCE_PROJECT_ACCESS_KEY = "AQAAAAAAAKhGHJc3N5V2AWqfJ1v9xZ2u0nA";
|
|
18
|
-
export declare const DEV_SEQUENCE_PROJECT_ACCESS_KEY = "AQAAAAAAAAaq1E41OU0QxifQgrVBMgfqg7k";
|
|
19
13
|
export declare const DATABEAT_SERVER = "https://databeat.sequence.app";
|
|
20
14
|
export declare const DATABEAT_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHAiOiJzZXEtdHJhaWxzIiwiZXhwIjoyMDI4MTIwOTg4fQ.KZIjEziul_nZ4kjEXudvfqeWmVekc5ftXKx_EqDrmZU";
|
|
21
15
|
export declare const DEFAULT_WALLETCONNECT_PROJECT_ID = "10c5ac56159da00924d110c07c3f6e3a";
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAA;AAEjC,eAAO,MAAM,8BAA8B,EAAE,WAAW,CAAC,OAMxD,CAAA;AAED,eAAO,MAAM,wCAAwC,EAAE,sBAM1B,CAAA;AAE7B,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,OACE,CAAA;AAE9C,eAAO,MAAM,gCAAgC,EAAE,OAAO,CAAC,OACT,CAAA;AAE9C,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,OACF,CAAA;AAE9C,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAA;AAEjC,eAAO,MAAM,8BAA8B,EAAE,WAAW,CAAC,OAMxD,CAAA;AAED,eAAO,MAAM,wCAAwC,EAAE,sBAM1B,CAAA;AAE7B,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,OACE,CAAA;AAE9C,eAAO,MAAM,gCAAgC,EAAE,OAAO,CAAC,OACT,CAAA;AAE9C,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,OACF,CAAA;AAE9C,eAAO,MAAM,8BAA8B,+BAA+B,CAAA;AAC1E,eAAO,MAAM,yBAAyB,iCAAiC,CAAA;AACvE,eAAO,MAAM,mBAAmB,oCAAoC,CAAA;AAGpE,eAAO,MAAM,gCAAgC,wCACN,CAAA;AAEvC,eAAO,MAAM,eAAe,kCAAkC,CAAA;AAC9D,eAAO,MAAM,YAAY,wIAC8G,CAAA;AAEvI,eAAO,MAAM,gCAAgC,qCACT,CAAA;AAEpC,eAAO,MAAM,QAAQ,0BAA0B,CAAA;AAE/C,eAAO,MAAM,0BAA0B,SAAS,CAAA;AAEhD,eAAO,MAAM,YAAY,QAAQ,CAAA;AACjC,eAAO,MAAM,aAAa,UAAU,CAAA"}
|