@0xsquid/squid-types 0.1.118 → 0.1.120
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/depositAddress/index.d.ts +6 -0
- package/dist/depositAddress/index.js +3 -0
- package/dist/depositAddress/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/squid/index.d.ts +29 -2
- package/dist/squid/index.js +6 -1
- package/dist/squid/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/depositAddress/index.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -30,4 +30,5 @@ __exportStar(require("./compliance"), exports);
|
|
|
30
30
|
__exportStar(require("./rfq"), exports);
|
|
31
31
|
__exportStar(require("./gas"), exports);
|
|
32
32
|
__exportStar(require("./featureFlag"), exports);
|
|
33
|
+
__exportStar(require("./depositAddress"), exports);
|
|
33
34
|
//# 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,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,yCAAuB;AACvB,+CAA6B;AAC7B,wCAAsB;AACtB,wCAAsB;AACtB,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,yCAAuB;AACvB,+CAA6B;AAC7B,wCAAsB;AACtB,wCAAsB;AACtB,gDAA8B;AAC9B,mDAAiC"}
|
package/dist/squid/index.d.ts
CHANGED
|
@@ -11,7 +11,13 @@ export declare enum SquidRouteType {
|
|
|
11
11
|
RFQ = "RFQ",
|
|
12
12
|
FUND_AND_RUN_MULTICALL = "FUND_AND_RUN_MULTICALL"
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export declare enum SquidDataType {
|
|
15
|
+
OnChainExecition = "ON_CHAIN_EXECUTION",
|
|
16
|
+
ChainflipDepositAddress = "CHAINFLIP_DEPOSIT_ADDRESS"
|
|
17
|
+
}
|
|
18
|
+
export type SquidData = OnChainExecutionData | ChainflipDepositAddressData;
|
|
19
|
+
export interface OnChainExecutionData {
|
|
20
|
+
type: SquidDataType;
|
|
15
21
|
routeType: SquidRouteType;
|
|
16
22
|
target: string;
|
|
17
23
|
data: string;
|
|
@@ -22,7 +28,28 @@ export interface SquidData {
|
|
|
22
28
|
maxPriorityFeePerGas?: string;
|
|
23
29
|
requestId?: string;
|
|
24
30
|
expiry?: string;
|
|
25
|
-
|
|
31
|
+
}
|
|
32
|
+
export interface ChainflipDepositAddressData {
|
|
33
|
+
type: SquidDataType;
|
|
34
|
+
request: {
|
|
35
|
+
amount: string;
|
|
36
|
+
fromChain: string;
|
|
37
|
+
fromAsset: string;
|
|
38
|
+
toChain: string;
|
|
39
|
+
toAsset: string;
|
|
40
|
+
fromAddress?: string;
|
|
41
|
+
toAddress: string;
|
|
42
|
+
maxBoostFeeBps?: number;
|
|
43
|
+
ccmParams?: {
|
|
44
|
+
message: string;
|
|
45
|
+
gasBudget: string;
|
|
46
|
+
};
|
|
47
|
+
fillOrKillParams: {
|
|
48
|
+
minPrice: string;
|
|
49
|
+
refundAddress: string;
|
|
50
|
+
retryDurationBlocks: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
26
53
|
}
|
|
27
54
|
export type ChainCall = EvmContractCall | CosmosCall;
|
|
28
55
|
export interface EvmContractCall {
|
package/dist/squid/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CosmosCallType = exports.SquidCallType = exports.SquidRouteType = void 0;
|
|
3
|
+
exports.CosmosCallType = exports.SquidCallType = exports.SquidDataType = exports.SquidRouteType = void 0;
|
|
4
4
|
var SquidRouteType;
|
|
5
5
|
(function (SquidRouteType) {
|
|
6
6
|
SquidRouteType["CALL_BRIDGE_CALL"] = "CALL_BRIDGE_CALL";
|
|
@@ -13,6 +13,11 @@ var SquidRouteType;
|
|
|
13
13
|
SquidRouteType["RFQ"] = "RFQ";
|
|
14
14
|
SquidRouteType["FUND_AND_RUN_MULTICALL"] = "FUND_AND_RUN_MULTICALL";
|
|
15
15
|
})(SquidRouteType || (exports.SquidRouteType = SquidRouteType = {}));
|
|
16
|
+
var SquidDataType;
|
|
17
|
+
(function (SquidDataType) {
|
|
18
|
+
SquidDataType["OnChainExecition"] = "ON_CHAIN_EXECUTION";
|
|
19
|
+
SquidDataType["ChainflipDepositAddress"] = "CHAINFLIP_DEPOSIT_ADDRESS";
|
|
20
|
+
})(SquidDataType || (exports.SquidDataType = SquidDataType = {}));
|
|
16
21
|
var SquidCallType;
|
|
17
22
|
(function (SquidCallType) {
|
|
18
23
|
SquidCallType[SquidCallType["DEFAULT"] = 0] = "DEFAULT";
|
package/dist/squid/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/squid/index.ts"],"names":[],"mappings":";;;AAGA,IAAY,cAUX;AAVD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,6BAAW,CAAA;IACX,mEAAiD,CAAA;AACnD,CAAC,EAVW,cAAc,8BAAd,cAAc,QAUzB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/squid/index.ts"],"names":[],"mappings":";;;AAGA,IAAY,cAUX;AAVD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,6BAAW,CAAA;IACX,mEAAiD,CAAA;AACnD,CAAC,EAVW,cAAc,8BAAd,cAAc,QAUzB;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,wDAAuC,CAAA;IACvC,sEAAqD,CAAA;AACvD,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAwDD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,uDAAW,CAAA;IACX,6EAAsB,CAAA;IACtB,+EAAuB,CAAA;IACvB,mFAAyB,CAAA;AAC3B,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAsBD,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,6DAAS,CAAA;IACT,mEAAY,CAAA;IACZ,iDAAG,CAAA;IACH,iDAAG,CAAA;IACH,mDAAI,CAAA;AACN,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB"}
|