@0xsquid/squid-types 0.1.30 → 0.1.31
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/bridges/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export declare enum BridgeType {
|
|
2
2
|
AXELAR_GMP = "gmp",
|
|
3
|
-
AXELAR_ITS = "its"
|
|
3
|
+
AXELAR_ITS = "its",
|
|
4
|
+
CCTP = "cctp",
|
|
5
|
+
NOBLE_CCTP = "noble-cctp"
|
|
6
|
+
}
|
|
7
|
+
export declare enum BridgeProvider {
|
|
8
|
+
AXELAR = "axelar",
|
|
9
|
+
CCTP = "cctp",
|
|
10
|
+
NOBLE_CCTP = "noble-cctp"
|
|
4
11
|
}
|
|
5
12
|
export type BridgeConfig = Record<string, string>;
|
package/dist/bridges/index.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BridgeType = void 0;
|
|
3
|
+
exports.BridgeProvider = exports.BridgeType = void 0;
|
|
4
4
|
var BridgeType;
|
|
5
5
|
(function (BridgeType) {
|
|
6
6
|
BridgeType["AXELAR_GMP"] = "gmp";
|
|
7
7
|
BridgeType["AXELAR_ITS"] = "its";
|
|
8
|
+
BridgeType["CCTP"] = "cctp";
|
|
9
|
+
BridgeType["NOBLE_CCTP"] = "noble-cctp";
|
|
8
10
|
})(BridgeType = exports.BridgeType || (exports.BridgeType = {}));
|
|
11
|
+
var BridgeProvider;
|
|
12
|
+
(function (BridgeProvider) {
|
|
13
|
+
BridgeProvider["AXELAR"] = "axelar";
|
|
14
|
+
BridgeProvider["CCTP"] = "cctp";
|
|
15
|
+
BridgeProvider["NOBLE_CCTP"] = "noble-cctp";
|
|
16
|
+
})(BridgeProvider = exports.BridgeProvider || (exports.BridgeProvider = {}));
|
|
9
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bridges/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bridges/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,gCAAkB,CAAA;IAClB,gCAAkB,CAAA;IAClB,2BAAa,CAAA;IACb,uCAAyB,CAAA;AAC3B,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;IACb,2CAAyB,CAAA;AAC3B,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ export interface RouteRequestPopulated {
|
|
|
51
51
|
prefer?: DexName[];
|
|
52
52
|
receiveGasOnDestination?: boolean;
|
|
53
53
|
}
|
|
54
|
-
export interface Estimate extends Route {
|
|
55
|
-
actions:
|
|
54
|
+
export interface Estimate extends Omit<Route, "actions"> {
|
|
55
|
+
actions: RouteActionResponse[];
|
|
56
56
|
}
|
|
57
57
|
export interface Route {
|
|
58
58
|
actions: RouteAction[];
|
|
@@ -71,6 +71,10 @@ export interface Route {
|
|
|
71
71
|
gasCosts: GasCost[];
|
|
72
72
|
feeCosts: FeeCost[];
|
|
73
73
|
}
|
|
74
|
+
export interface RouteActionResponse extends Omit<QuoteAction, "fromChain" | "toChain"> {
|
|
75
|
+
fromChain: string;
|
|
76
|
+
toChain: string;
|
|
77
|
+
}
|
|
74
78
|
export interface RouteAction extends QuoteAction {
|
|
75
79
|
provider?: string;
|
|
76
80
|
description?: string;
|
package/dist/routes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":";;;AA0FA,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,2BAAa,CAAA;IACb,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,2CAA6B,CAAA;IAC7B,+BAAiB,CAAA;AACnB,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AA+CD,IAAY,WASX;AATD,WAAY,WAAW;IACrB,yDAAU,CAAA;IACV,mEAAe,CAAA;IACf,+DAAa,CAAA;IACb,qDAAQ,CAAA;IACR,+DAAa,CAAA;IACb,yEAAkB,CAAA;IAClB,qEAAgB,CAAA;IAChB,2DAAW,CAAA;AACb,CAAC,EATW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAStB"}
|
package/dist/wrappers/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Token } from "../tokens";
|
|
2
1
|
export declare enum WrapperType {
|
|
3
2
|
WRAPPED_NATIVE = "WrappedNative",
|
|
4
3
|
OVERNIGHT = "Overnight",
|
|
@@ -12,8 +11,10 @@ export declare enum WrapDirection {
|
|
|
12
11
|
UNWRAP = "unwrap"
|
|
13
12
|
}
|
|
14
13
|
export interface Wrapper {
|
|
15
|
-
type: WrapperType;
|
|
16
14
|
chainId: string;
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
address: string;
|
|
16
|
+
coinAddresses: string[];
|
|
17
|
+
coinNames: string[];
|
|
18
|
+
type: WrapperType;
|
|
19
|
+
properties?: Record<string, any>;
|
|
19
20
|
}
|