@0xsquid/squid-types 0.1.16 → 0.1.18
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/dexes/index.d.ts +3 -0
- package/dist/dexes/index.js +3 -0
- package/dist/dexes/index.js.map +1 -1
- package/dist/fees/index.d.ts +3 -3
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/quote/index.d.ts +24 -0
- package/dist/quote/index.js +3 -0
- package/dist/quote/index.js.map +1 -0
- package/dist/routes/index.d.ts +30 -9
- package/dist/routes/index.js.map +1 -1
- package/dist/squid/index.d.ts +5 -0
- package/dist/squid/index.js +7 -1
- package/dist/squid/index.js.map +1 -1
- package/dist/tokens/index.d.ts +4 -4
- package/dist/tokens/index.js +4 -4
- package/dist/tokens/index.js.map +1 -1
- package/dist/wrappers/index.d.ts +5 -1
- package/dist/wrappers/index.js +6 -1
- package/dist/wrappers/index.js.map +1 -1
- package/package.json +1 -1
package/dist/dexes/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare enum DexName {
|
|
|
8
8
|
AGNI_V3 = "Agni-v3",
|
|
9
9
|
APESWAP = "Apeswap",
|
|
10
10
|
APESWAP_V3 = "Apeswap-v3",
|
|
11
|
+
BALANCER_V2 = "Balancer-v2",
|
|
11
12
|
BASESWAP = "Baseswap",
|
|
12
13
|
BEAMSWAP = "Beamswap",
|
|
13
14
|
CURVE_V2 = "Curve-v2",
|
|
@@ -21,6 +22,7 @@ export declare enum DexName {
|
|
|
21
22
|
HORIZON_V3 = "Horizon-v3",
|
|
22
23
|
KYBERSWAP = "KyberSwap",
|
|
23
24
|
KYBERSWAP_AGGREGATOR = "kyberswap-aggregator",
|
|
25
|
+
KINETIX_V3 = "Kinetix-v3",
|
|
24
26
|
OPENOCEAN = "OpenOcean",
|
|
25
27
|
OSMOSIS = "Osmosis",
|
|
26
28
|
PANCAKESWAP = "Pancakeswap",
|
|
@@ -55,6 +57,7 @@ export declare enum DexName {
|
|
|
55
57
|
}
|
|
56
58
|
export declare enum DexType {
|
|
57
59
|
ALGEBRA = "algebra",
|
|
60
|
+
BALANCER_V2 = "Balancer-v2",
|
|
58
61
|
CURVE = "curve",
|
|
59
62
|
GMX = "gmx",
|
|
60
63
|
KYBERSWAP_ELASTIC = "kyberswap-elastic",
|
package/dist/dexes/index.js
CHANGED
|
@@ -7,6 +7,7 @@ var DexName;
|
|
|
7
7
|
DexName["AGNI_V3"] = "Agni-v3";
|
|
8
8
|
DexName["APESWAP"] = "Apeswap";
|
|
9
9
|
DexName["APESWAP_V3"] = "Apeswap-v3";
|
|
10
|
+
DexName["BALANCER_V2"] = "Balancer-v2";
|
|
10
11
|
DexName["BASESWAP"] = "Baseswap";
|
|
11
12
|
DexName["BEAMSWAP"] = "Beamswap";
|
|
12
13
|
DexName["CURVE_V2"] = "Curve-v2";
|
|
@@ -20,6 +21,7 @@ var DexName;
|
|
|
20
21
|
DexName["HORIZON_V3"] = "Horizon-v3";
|
|
21
22
|
DexName["KYBERSWAP"] = "KyberSwap";
|
|
22
23
|
DexName["KYBERSWAP_AGGREGATOR"] = "kyberswap-aggregator";
|
|
24
|
+
DexName["KINETIX_V3"] = "Kinetix-v3";
|
|
23
25
|
DexName["OPENOCEAN"] = "OpenOcean";
|
|
24
26
|
DexName["OSMOSIS"] = "Osmosis";
|
|
25
27
|
DexName["PANCAKESWAP"] = "Pancakeswap";
|
|
@@ -57,6 +59,7 @@ var DexType;
|
|
|
57
59
|
(function (DexType) {
|
|
58
60
|
// EVM
|
|
59
61
|
DexType["ALGEBRA"] = "algebra";
|
|
62
|
+
DexType["BALANCER_V2"] = "Balancer-v2";
|
|
60
63
|
DexType["CURVE"] = "curve";
|
|
61
64
|
DexType["GMX"] = "gmx";
|
|
62
65
|
DexType["KYBERSWAP_ELASTIC"] = "kyberswap-elastic";
|
package/dist/dexes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dexes/index.ts"],"names":[],"mappings":";;;AAOA,wBAAwB;AACxB,IAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dexes/index.ts"],"names":[],"mappings":";;;AAOA,wBAAwB;AACxB,IAAY,OAkDX;AAlDD,WAAY,OAAO;IACjB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;IACzB,sCAA2B,CAAA;IAC3B,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;IACrB,kCAAuB,CAAA;IACvB,kCAAuB,CAAA;IACvB,oCAAyB,CAAA;IACzB,oCAAyB,CAAA;IACzB,sBAAW,CAAA;IACX,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;IACzB,kCAAuB,CAAA;IACvB,wDAA6C,CAAA;IAC7C,oCAAyB,CAAA;IACzB,kCAAuB,CAAA;IACvB,8BAAmB,CAAA;IACnB,sCAA2B,CAAA;IAC3B,4CAAiC,CAAA;IACjC,oDAAyC,CAAA;IACzC,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;IACrB,kCAAuB,CAAA;IACvB,wCAA6B,CAAA;IAC7B,oCAAyB,CAAA;IACzB,oCAAyB,CAAA;IACzB,0CAA+B,CAAA;IAC/B,kDAAuC,CAAA;IACvC,kCAAuB,CAAA;IACvB,wCAA6B,CAAA;IAC7B,kCAAuB,CAAA;IACvB,wCAA6B,CAAA;IAC7B,wCAA6B,CAAA;IAC7B,0BAAe,CAAA;IACf,gCAAqB,CAAA;IACrB,kCAAuB,CAAA;IACvB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;IACzB,oCAAyB,CAAA;IACzB,oCAAyB,CAAA;IACzB,4BAAiB,CAAA;IACjB,kCAAuB,CAAA;IACvB,wCAA6B,CAAA;IAC7B,kCAAuB,CAAA;IACvB,wCAA6B,CAAA;AAC/B,CAAC,EAlDW,OAAO,GAAP,eAAO,KAAP,eAAO,QAkDlB;AAED,2BAA2B;AAC3B,IAAY,OAsBX;AAtBD,WAAY,OAAO;IACjB,MAAM;IACN,8BAAmB,CAAA;IACnB,sCAA2B,CAAA;IAC3B,0BAAe,CAAA;IACf,sBAAW,CAAA;IACX,kDAAuC,CAAA;IACvC,gCAAqB,CAAA;IACrB,oDAAyC,CAAA;IACzC,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;IACnB,4BAAiB,CAAA;IACjB,oCAAyB,CAAA;IACzB,oCAAyB,CAAA;IACzB,SAAS;IACT,8BAAmB,CAAA;IAEnB,0DAA0D;IAC1D;;MAEE;AACJ,CAAC,EAtBW,OAAO,GAAP,eAAO,KAAP,eAAO,QAsBlB"}
|
package/dist/fees/index.d.ts
CHANGED
|
@@ -10,17 +10,17 @@ export declare enum GasCostType {
|
|
|
10
10
|
export type FeeCost = {
|
|
11
11
|
name: FeeType;
|
|
12
12
|
description: string;
|
|
13
|
-
percentage
|
|
13
|
+
percentage?: string;
|
|
14
14
|
gasLimit?: number;
|
|
15
15
|
gasMultiplier?: number;
|
|
16
16
|
token: Token;
|
|
17
17
|
amount: string;
|
|
18
|
-
|
|
18
|
+
amountUsd: string;
|
|
19
19
|
};
|
|
20
20
|
export type GasCost = {
|
|
21
21
|
type: GasCostType;
|
|
22
22
|
token: Token;
|
|
23
23
|
gasLimit: string;
|
|
24
24
|
amount: string;
|
|
25
|
-
|
|
25
|
+
amountUsd: string;
|
|
26
26
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export * from "./chains";
|
|
2
2
|
export * from "./dexes";
|
|
3
|
+
export * from "./errors";
|
|
3
4
|
export * from "./tokens";
|
|
4
|
-
export * from "./routes";
|
|
5
5
|
export * from "./fees";
|
|
6
|
+
export * from "./quote";
|
|
7
|
+
export * from "./routes";
|
|
6
8
|
export * from "./squid";
|
|
7
9
|
export * from "./status";
|
|
8
|
-
export * from "./errors";
|
|
9
10
|
export * from "./wrappers";
|
package/dist/index.js
CHANGED
|
@@ -16,11 +16,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./chains"), exports);
|
|
18
18
|
__exportStar(require("./dexes"), exports);
|
|
19
|
+
__exportStar(require("./errors"), exports);
|
|
19
20
|
__exportStar(require("./tokens"), exports);
|
|
20
|
-
__exportStar(require("./routes"), exports);
|
|
21
21
|
__exportStar(require("./fees"), exports);
|
|
22
|
+
__exportStar(require("./quote"), exports);
|
|
23
|
+
__exportStar(require("./routes"), exports);
|
|
22
24
|
__exportStar(require("./squid"), exports);
|
|
23
25
|
__exportStar(require("./status"), exports);
|
|
24
|
-
__exportStar(require("./errors"), exports);
|
|
25
26
|
__exportStar(require("./wrappers"), exports);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ActionStage, ActionType, BridgeDetails, ChainType, CustomCallDetails, SwapDetails, IbcTransferDetails, Token } from "../index";
|
|
2
|
+
export interface Quote {
|
|
3
|
+
actions: QuoteAction[];
|
|
4
|
+
fromAmount: string;
|
|
5
|
+
toAmount: string;
|
|
6
|
+
toAmountMin: string;
|
|
7
|
+
sendAmount: string;
|
|
8
|
+
exchangeRate: string;
|
|
9
|
+
aggregatePriceImpact: string;
|
|
10
|
+
estimatedRouteDuration: number;
|
|
11
|
+
fromAmountUsd?: string;
|
|
12
|
+
toAmountUsd?: string;
|
|
13
|
+
slippage?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface QuoteAction {
|
|
16
|
+
type: ActionType;
|
|
17
|
+
chainType: ChainType;
|
|
18
|
+
fromChainId: string;
|
|
19
|
+
toChainId: string;
|
|
20
|
+
fromToken: Token;
|
|
21
|
+
toToken: Token;
|
|
22
|
+
stage?: ActionStage;
|
|
23
|
+
details: SwapDetails | BridgeDetails | CustomCallDetails | IbcTransferDetails;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/quote/index.ts"],"names":[],"mappings":""}
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ChainData, ChainType } from "chains";
|
|
2
2
|
import { Dex, DexName } from "dexes";
|
|
3
3
|
import { FeeCost, GasCost } from "fees";
|
|
4
|
-
import { ChainCall, EvmContractCall, SquidData } from "squid";
|
|
4
|
+
import { ChainCall, EvmContractCall, SlippageMode, SquidData } from "squid";
|
|
5
5
|
import { Token } from "tokens";
|
|
6
|
+
import { WrapDirection, WrapperType } from "wrappers";
|
|
6
7
|
export declare enum ActionType {
|
|
7
8
|
SWAP = "swap",
|
|
8
9
|
WRAP = "wrap",
|
|
@@ -28,7 +29,10 @@ export interface RouteRequest {
|
|
|
28
29
|
toChain: string;
|
|
29
30
|
toToken: string;
|
|
30
31
|
toAddress?: string;
|
|
31
|
-
|
|
32
|
+
slippageConfig: {
|
|
33
|
+
slippage?: number;
|
|
34
|
+
autoMode: SlippageMode;
|
|
35
|
+
};
|
|
32
36
|
quoteOnly?: boolean;
|
|
33
37
|
enableBoost?: boolean;
|
|
34
38
|
preHook?: Hook;
|
|
@@ -77,7 +81,10 @@ export interface RouteRequestPopulated {
|
|
|
77
81
|
fromAmount: string;
|
|
78
82
|
fromAddress?: string;
|
|
79
83
|
toAddress?: string;
|
|
80
|
-
|
|
84
|
+
slippageConfig: {
|
|
85
|
+
slippage?: number;
|
|
86
|
+
autoMode: SlippageMode;
|
|
87
|
+
};
|
|
81
88
|
quoteOnly?: boolean;
|
|
82
89
|
enableBoost?: boolean;
|
|
83
90
|
preHook?: Hook;
|
|
@@ -100,18 +107,20 @@ export interface RouteAction {
|
|
|
100
107
|
chainType: ChainType;
|
|
101
108
|
fromChainId: string;
|
|
102
109
|
toChainId: string;
|
|
110
|
+
fromToken: Token;
|
|
111
|
+
toToken: Token;
|
|
112
|
+
provider?: string;
|
|
113
|
+
description?: string;
|
|
103
114
|
stage?: ActionStage;
|
|
104
|
-
details: SwapDetails | BridgeDetails | CustomCallDetails | IbcTransferDetails;
|
|
115
|
+
details: SwapDetails | WrapDetails | BridgeDetails | CustomCallDetails | IbcTransferDetails;
|
|
105
116
|
}
|
|
106
117
|
export interface SimpleRouteAction extends RouteAction {
|
|
107
|
-
details: SimpleSwapDetails | BridgeDetails | CustomCallDetails | IbcTransferDetails;
|
|
118
|
+
details: SimpleSwapDetails | SimpleWrapDetails | BridgeDetails | CustomCallDetails | IbcTransferDetails;
|
|
108
119
|
}
|
|
109
120
|
export interface BaseSwapDetails {
|
|
110
121
|
target: string;
|
|
111
122
|
path: string[];
|
|
112
123
|
swapType: string;
|
|
113
|
-
fromToken: Token;
|
|
114
|
-
toToken: Token;
|
|
115
124
|
fromAmount: string;
|
|
116
125
|
toAmount: string;
|
|
117
126
|
toAmountMin: string;
|
|
@@ -120,6 +129,20 @@ export interface BaseSwapDetails {
|
|
|
120
129
|
isWrappedNative?: boolean;
|
|
121
130
|
dynamicSlippage?: number;
|
|
122
131
|
}
|
|
132
|
+
export interface WrapDetails extends SimpleWrapDetails {
|
|
133
|
+
calls: ChainCall[];
|
|
134
|
+
custom?: Record<string, any>;
|
|
135
|
+
}
|
|
136
|
+
export interface SimpleWrapDetails {
|
|
137
|
+
target: string;
|
|
138
|
+
path: string[];
|
|
139
|
+
wrapType: WrapperType;
|
|
140
|
+
direction: WrapDirection;
|
|
141
|
+
fromAmount: string;
|
|
142
|
+
toAmount: string;
|
|
143
|
+
exchangeRate: string;
|
|
144
|
+
priceImpact: string;
|
|
145
|
+
}
|
|
123
146
|
export interface SwapDetails extends BaseSwapDetails {
|
|
124
147
|
dex: Dex;
|
|
125
148
|
calls: ChainCall[];
|
|
@@ -132,8 +155,6 @@ export interface BridgeDetails {
|
|
|
132
155
|
target: string;
|
|
133
156
|
provider: string;
|
|
134
157
|
name: string;
|
|
135
|
-
fromToken: Token;
|
|
136
|
-
toToken: Token;
|
|
137
158
|
sendAmount: string;
|
|
138
159
|
receiveAmount: string;
|
|
139
160
|
exchangeRate: 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":";;;AAOA,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;AAED,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/squid/index.d.ts
CHANGED
package/dist/squid/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SquidCallType = exports.SquidRouteType = void 0;
|
|
3
|
+
exports.SlippageMode = exports.SquidCallType = exports.SquidRouteType = void 0;
|
|
4
4
|
var SquidRouteType;
|
|
5
5
|
(function (SquidRouteType) {
|
|
6
6
|
SquidRouteType["CALL_BRIDGE_CALL"] = "CALL_BRIDGE_CALL";
|
|
@@ -17,4 +17,10 @@ var SquidCallType;
|
|
|
17
17
|
SquidCallType[SquidCallType["FULL_NATIVE_BALANCE"] = 2] = "FULL_NATIVE_BALANCE";
|
|
18
18
|
SquidCallType[SquidCallType["COLLECT_TOKEN_BALANCE"] = 3] = "COLLECT_TOKEN_BALANCE";
|
|
19
19
|
})(SquidCallType = exports.SquidCallType || (exports.SquidCallType = {}));
|
|
20
|
+
var SlippageMode;
|
|
21
|
+
(function (SlippageMode) {
|
|
22
|
+
SlippageMode[SlippageMode["AGGRESSIVE"] = 0] = "AGGRESSIVE";
|
|
23
|
+
SlippageMode[SlippageMode["NORMAL"] = 1] = "NORMAL";
|
|
24
|
+
SlippageMode[SlippageMode["FLEXIBLE"] = 2] = "FLEXIBLE";
|
|
25
|
+
})(SlippageMode = exports.SlippageMode || (exports.SlippageMode = {}));
|
|
20
26
|
//# sourceMappingURL=index.js.map
|
package/dist/squid/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/squid/index.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,6CAA2B,CAAA;AAC7B,CAAC,EAPW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAOzB;AA4BD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,uDAAW,CAAA;IACX,6EAAsB,CAAA;IACtB,+EAAuB,CAAA;IACvB,mFAAyB,CAAA;AAC3B,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/squid/index.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,6CAA2B,CAAA;AAC7B,CAAC,EAPW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAOzB;AA4BD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,uDAAW,CAAA;IACX,6EAAsB,CAAA;IACtB,+EAAuB,CAAA;IACvB,mFAAyB,CAAA;AAC3B,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAcD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,2DAAU,CAAA;IACV,mDAAM,CAAA;IACN,uDAAQ,CAAA;AACV,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ export interface EvmToken extends Token {
|
|
|
32
32
|
address: string;
|
|
33
33
|
}
|
|
34
34
|
export declare enum Volatility {
|
|
35
|
-
SUPER_STABLE =
|
|
36
|
-
STABLE =
|
|
37
|
-
HIGH_CAP =
|
|
38
|
-
VOLATILE =
|
|
35
|
+
SUPER_STABLE = 0,
|
|
36
|
+
STABLE = 1,
|
|
37
|
+
HIGH_CAP = 2,
|
|
38
|
+
VOLATILE = 3
|
|
39
39
|
}
|
package/dist/tokens/index.js
CHANGED
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Volatility = void 0;
|
|
4
4
|
var Volatility;
|
|
5
5
|
(function (Volatility) {
|
|
6
|
-
Volatility["SUPER_STABLE"] = "
|
|
7
|
-
Volatility["STABLE"] = "
|
|
8
|
-
Volatility["HIGH_CAP"] = "
|
|
9
|
-
Volatility["VOLATILE"] = "
|
|
6
|
+
Volatility[Volatility["SUPER_STABLE"] = 0] = "SUPER_STABLE";
|
|
7
|
+
Volatility[Volatility["STABLE"] = 1] = "STABLE";
|
|
8
|
+
Volatility[Volatility["HIGH_CAP"] = 2] = "HIGH_CAP";
|
|
9
|
+
Volatility[Volatility["VOLATILE"] = 3] = "VOLATILE";
|
|
10
10
|
})(Volatility = exports.Volatility || (exports.Volatility = {}));
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/dist/tokens/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":";;;AAqCA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":";;;AAqCA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,2DAAY,CAAA;IACZ,+CAAM,CAAA;IACN,mDAAQ,CAAA;IACR,mDAAQ,CAAA;AACV,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB"}
|
package/dist/wrappers/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { Token } from "tokens";
|
|
1
|
+
import { Token } from "../tokens";
|
|
2
2
|
export declare enum WrapperType {
|
|
3
3
|
WRAPPED_NATIVE = "WrappedNative",
|
|
4
4
|
OVERNIGHT = "Overnight"
|
|
5
5
|
}
|
|
6
|
+
export declare enum WrapDirection {
|
|
7
|
+
WRAP = "wrap",
|
|
8
|
+
UNWRAP = "unwrap"
|
|
9
|
+
}
|
|
6
10
|
export interface Wrapper {
|
|
7
11
|
type: WrapperType;
|
|
8
12
|
chainId: string;
|
package/dist/wrappers/index.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WrapperType = void 0;
|
|
3
|
+
exports.WrapDirection = exports.WrapperType = void 0;
|
|
4
4
|
var WrapperType;
|
|
5
5
|
(function (WrapperType) {
|
|
6
6
|
WrapperType["WRAPPED_NATIVE"] = "WrappedNative";
|
|
7
7
|
WrapperType["OVERNIGHT"] = "Overnight";
|
|
8
8
|
})(WrapperType = exports.WrapperType || (exports.WrapperType = {}));
|
|
9
|
+
var WrapDirection;
|
|
10
|
+
(function (WrapDirection) {
|
|
11
|
+
WrapDirection["WRAP"] = "wrap";
|
|
12
|
+
WrapDirection["UNWRAP"] = "unwrap";
|
|
13
|
+
})(WrapDirection = exports.WrapDirection || (exports.WrapDirection = {}));
|
|
9
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/wrappers/index.ts"],"names":[],"mappings":";;;AAEA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,+CAAgC,CAAA;IAChC,sCAAuB,CAAA;AACzB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/wrappers/index.ts"],"names":[],"mappings":";;;AAEA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,+CAAgC,CAAA;IAChC,sCAAuB,CAAA;AACzB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
|