@0xsquid/squid-types 0.1.182 → 0.1.184

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.
@@ -4,6 +4,7 @@ export declare enum FeatureFlagType {
4
4
  Solana = "solana",
5
5
  Chainflip = "chainflip",
6
6
  Coral = "coral",
7
+ CoralOnly = "coralOnly",
7
8
  CoralV2 = "coralV2",
8
9
  ChainflipMultihop = "chainflipMultihop",
9
10
  SagaRoutes = "sagaRoutes",
@@ -8,6 +8,7 @@ var FeatureFlagType;
8
8
  FeatureFlagType["Solana"] = "solana";
9
9
  FeatureFlagType["Chainflip"] = "chainflip";
10
10
  FeatureFlagType["Coral"] = "coral";
11
+ FeatureFlagType["CoralOnly"] = "coralOnly";
11
12
  FeatureFlagType["CoralV2"] = "coralV2";
12
13
  FeatureFlagType["ChainflipMultihop"] = "chainflipMultihop";
13
14
  FeatureFlagType["SagaRoutes"] = "sagaRoutes";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/featureFlag/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAaX;AAbD,WAAY,eAAe;IACzB,kDAA+B,CAAA;IAC/B,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;IACvB,kCAAe,CAAA;IACf,sCAAmB,CAAA;IACnB,0DAAuC,CAAA;IACvC,4CAAyB,CAAA;IACzB,wDAAqC,CAAA;IACrC,oCAAiB,CAAA;IACjB,4CAAyB,CAAA;IACzB,sCAAmB,CAAA;AACrB,CAAC,EAbW,eAAe,+BAAf,eAAe,QAa1B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/featureFlag/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,kDAA+B,CAAA;IAC/B,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;IACvB,kCAAe,CAAA;IACf,0CAAuB,CAAA;IACvB,sCAAmB,CAAA;IACnB,0DAAuC,CAAA;IACvC,4CAAyB,CAAA;IACzB,wDAAqC,CAAA;IACrC,oCAAiB,CAAA;IACjB,4CAAyB,CAAA;IACzB,sCAAmB,CAAA;AACrB,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B"}
@@ -24,6 +24,7 @@ export type FeeCost = {
24
24
  amountUsd: string;
25
25
  logoURI?: string;
26
26
  data?: Record<string, any>;
27
+ receiver?: string;
27
28
  };
28
29
  export type GasCost = {
29
30
  type: GasCostType;
@@ -70,6 +70,10 @@ export interface PathAction {
70
70
  toToken: Token;
71
71
  data: ActionBaseData;
72
72
  }
73
+ export declare enum PathFeature {
74
+ includeCoralPaths = "1",
75
+ onlyCoralPaths = "2"
76
+ }
73
77
  export interface PathParams {
74
78
  fromChainId: string;
75
79
  toChainId: string;
@@ -77,5 +81,5 @@ export interface PathParams {
77
81
  toToken: string;
78
82
  amountInUsd: number;
79
83
  tokenAmount: number;
80
- includeCoralPaths?: boolean;
84
+ features?: PathFeature[];
81
85
  }
@@ -1,3 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PathFeature = void 0;
4
+ var PathFeature;
5
+ (function (PathFeature) {
6
+ PathFeature["includeCoralPaths"] = "1";
7
+ PathFeature["onlyCoralPaths"] = "2";
8
+ // Add more features as needed
9
+ })(PathFeature || (exports.PathFeature = PathFeature = {}));
3
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/path/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/path/index.ts"],"names":[],"mappings":";;;AAuFA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,mCAAoB,CAAA;IACpB,8BAA8B;AAChC,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsquid/squid-types",
3
- "version": "0.1.182",
3
+ "version": "0.1.184",
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",