@0xsquid/squid-types 0.1.118 → 0.1.119

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.
@@ -0,0 +1,6 @@
1
+ export interface ChainflipDepositAddressResponse {
2
+ depositAddress: string;
3
+ amount: string;
4
+ chainflipStatusTrackingId: string;
5
+ }
6
+ export type DepositAddressResponse = ChainflipDepositAddressResponse;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/depositAddress/index.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -14,3 +14,4 @@ export * from "./compliance";
14
14
  export * from "./rfq";
15
15
  export * from "./gas";
16
16
  export * from "./featureFlag";
17
+ export * from "./depositAddress";
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"}
@@ -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 interface SquidData {
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,23 @@ export interface SquidData {
22
28
  maxPriorityFeePerGas?: string;
23
29
  requestId?: string;
24
30
  expiry?: string;
25
- chainflipId?: string;
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
+ };
26
48
  }
27
49
  export type ChainCall = EvmContractCall | CosmosCall;
28
50
  export interface EvmContractCall {
@@ -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";
@@ -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;AA+BD,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"}
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;AAmDD,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsquid/squid-types",
3
- "version": "0.1.118",
3
+ "version": "0.1.119",
4
4
  "description": "JS and TS types relating to 0xsquid related projects.",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",