rango-sdk-basic 0.0.5 → 0.0.6

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.
@@ -7,6 +7,9 @@ import type { Asset, QuoteSimulationResult } from './common';
7
7
  * @property {string} amount - The human-readable amount of asset X that is going to be swapped, example: 0.28
8
8
  * @property {string[]} [swappers] - List of all accepted swappers, an empty list means no filter is required
9
9
  * @property {string[]} [messagingProtocols] - List of all messaging protocols, an empty list means no filter is required
10
+ * @property {string} [sourceContract] - Address of your contract on source chain (will be called in case of refund in the source chain)
11
+ * @property {string} [destinationContract] - Address of your contract on destination chain (will be called in case of success/refund in the destination chain)
12
+ * @property {string} [imMessage] - The message that you want to pass to your contract on the destination chain
10
13
  *
11
14
  */
12
15
  export declare type QuoteRequest = {
@@ -15,6 +18,9 @@ export declare type QuoteRequest = {
15
18
  amount: string;
16
19
  swappers?: string[];
17
20
  messagingProtocols?: string[];
21
+ sourceContract?: string;
22
+ destinationContract?: string;
23
+ imMessage?: string;
18
24
  };
19
25
  /**
20
26
  * The response of quote API, if the route field is null, it means that no route is found
@@ -1 +1 @@
1
- {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../../src/types/api/routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAE5D;;;;;;;;;GASG;AACH,oBAAY,YAAY,GAAG;IACzB,IAAI,EAAE,KAAK,CAAA;IACX,EAAE,EAAE,KAAK,CAAA;IACT,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B,CAAA;AAED;;;;;;;;GAQG;AACH,oBAAY,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,IAAI,GAAG,aAAa,GAAG,mBAAmB,GAAG,UAAU,CAAA;IACnE,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAAA;CACpC,CAAA"}
1
+ {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../../src/types/api/routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAE5D;;;;;;;;;;;;GAYG;AACH,oBAAY,YAAY,GAAG;IACzB,IAAI,EAAE,KAAK,CAAA;IACX,EAAE,EAAE,KAAK,CAAA;IACT,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;GAQG;AACH,oBAAY,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,IAAI,GAAG,aAAa,GAAG,mBAAmB,GAAG,UAAU,CAAA;IACnE,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAAA;CACpC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rango-sdk-basic",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Rango Exchange Basic SDK for dApps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib",