@0xsquid/squid-types 0.1.29 → 0.1.30

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.
@@ -3,6 +3,7 @@ import { ChainData, ChainType } from "../chains";
3
3
  import { ActionType } from "../routes";
4
4
  import { Token } from "../tokens";
5
5
  import { WrapperType } from "wrappers";
6
+ import { BridgeType } from "bridges";
6
7
  export interface PathInternal {
7
8
  fromChain: string;
8
9
  fromToken: string;
@@ -32,6 +33,7 @@ export interface ActionBaseData {
32
33
  slippage: number;
33
34
  path: string[];
34
35
  custom: Record<string, any>;
36
+ type: WrapperType | BridgeType;
35
37
  poolFees: number[][];
36
38
  pools: string[];
37
39
  poolId: string;
@@ -40,8 +42,9 @@ export interface ActionBaseData {
40
42
  exchangeProvider?: string;
41
43
  address: string;
42
44
  wrapper: string;
43
- type: WrapperType;
44
45
  coinAddresses: string[];
46
+ name: string;
47
+ provider: string;
45
48
  }
46
49
  export interface PathAction {
47
50
  type: ActionType;
@@ -58,4 +61,5 @@ export interface PathParams {
58
61
  fromToken: Pick<Token, "type" | "chainId" | "name" | "symbol" | "decimals" | "address">;
59
62
  toToken: Pick<Token, "type" | "chainId" | "name" | "symbol" | "decimals" | "address">;
60
63
  maxResults?: number;
64
+ subgraphIds?: string[];
61
65
  }
@@ -2,7 +2,7 @@ import { ChainData, ChainType } from "../chains";
2
2
  import { Dex, DexName } from "../dexes";
3
3
  import { FeeCost, GasCost } from "../fees";
4
4
  import { QuoteAction } from "../quote";
5
- import { ChainCall, EvmContractCall, SlippageMode, SquidData } from "../squid";
5
+ import { ChainCall, SlippageMode, SquidData } from "../squid";
6
6
  import { Token } from "../tokens";
7
7
  import { WrapDirection, WrapperType } from "../wrappers";
8
8
  import { BridgeType } from "../bridges";
@@ -111,10 +111,11 @@ export interface BridgeDetails {
111
111
  provider: string;
112
112
  type: BridgeType;
113
113
  name: string;
114
+ calls?: ChainCall[];
114
115
  }
115
116
  export interface CustomCallDetails {
116
117
  name: string;
117
- calls: EvmContractCall[];
118
+ calls: ChainCall[];
118
119
  }
119
120
  export interface Hook {
120
121
  chainType: ChainType;
@@ -133,12 +134,9 @@ export declare enum ActionStage {
133
134
  COSMOS_ONLY = 7
134
135
  }
135
136
  export interface StageContext {
136
- stage: ActionStage;
137
+ stage?: ActionStage;
137
138
  isSourceNative: boolean;
138
139
  isDestinationNative: boolean;
139
- isEvm: boolean;
140
- isCosmos: boolean;
141
- toAddress: string;
142
140
  receiver: string;
143
141
  isFirstAction?: boolean;
144
142
  isLastAction?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":";;;AAqFA,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;AA8CD,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":";;;AAqFA,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"}
@@ -4,7 +4,8 @@ export declare enum WrapperType {
4
4
  OVERNIGHT = "Overnight",
5
5
  DEUS = "Deus",
6
6
  WSTETH = "WstETH",
7
- WRAPPED_MAI = "WrappedMAI"
7
+ WRAPPED_MAI = "WrappedMAI",
8
+ WRAPPED_USDY = "WrappedUSDY"
8
9
  }
9
10
  export declare enum WrapDirection {
10
11
  WRAP = "wrap",
@@ -8,6 +8,7 @@ var WrapperType;
8
8
  WrapperType["DEUS"] = "Deus";
9
9
  WrapperType["WSTETH"] = "WstETH";
10
10
  WrapperType["WRAPPED_MAI"] = "WrappedMAI";
11
+ WrapperType["WRAPPED_USDY"] = "WrappedUSDY";
11
12
  })(WrapperType = exports.WrapperType || (exports.WrapperType = {}));
12
13
  var WrapDirection;
13
14
  (function (WrapDirection) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/wrappers/index.ts"],"names":[],"mappings":";;;AAEA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,+CAAgC,CAAA;IAChC,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,yCAA0B,CAAA;AAC5B,CAAC,EANW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAMtB;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/wrappers/index.ts"],"names":[],"mappings":";;;AAEA,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,+CAAgC,CAAA;IAChC,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,yCAA0B,CAAA;IAC1B,2CAA4B,CAAA;AAC9B,CAAC,EAPW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAOtB;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsquid/squid-types",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
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",