rango-sdk 0.1.2 → 0.1.4

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.
Files changed (38) hide show
  1. package/lib/dist/index.d.ts +3 -0
  2. package/lib/dist/index.d.ts.map +1 -0
  3. package/lib/dist/index.js +8 -0
  4. package/lib/dist/rango-sdk.cjs.development.js +672 -0
  5. package/lib/dist/rango-sdk.cjs.development.js.map +1 -0
  6. package/lib/dist/rango-sdk.cjs.production.min.js +2 -0
  7. package/lib/dist/rango-sdk.cjs.production.min.js.map +1 -0
  8. package/lib/dist/rango-sdk.esm.js +659 -0
  9. package/lib/dist/rango-sdk.esm.js.map +1 -0
  10. package/lib/dist/services/client.d.ts +19 -0
  11. package/lib/dist/services/client.d.ts.map +1 -0
  12. package/lib/dist/services/httpService.d.ts +2 -0
  13. package/lib/dist/services/httpService.d.ts.map +1 -0
  14. package/lib/dist/services/index.d.ts +2 -0
  15. package/lib/dist/services/index.d.ts.map +1 -0
  16. package/lib/dist/types/api/balance.d.ts +2 -0
  17. package/lib/dist/types/api/balance.d.ts.map +1 -0
  18. package/lib/dist/types/api/common.d.ts +2 -0
  19. package/lib/dist/types/api/common.d.ts.map +1 -0
  20. package/lib/dist/types/api/meta.d.ts +3 -0
  21. package/lib/dist/types/api/meta.d.ts.map +1 -0
  22. package/lib/dist/types/api/routing.d.ts +2 -0
  23. package/lib/dist/types/api/routing.d.ts.map +1 -0
  24. package/lib/dist/types/api/transactions.d.ts +2 -0
  25. package/lib/dist/types/api/transactions.d.ts.map +1 -0
  26. package/lib/dist/types/api/txs/cosmos.d.ts +2 -0
  27. package/lib/dist/types/api/txs/cosmos.d.ts.map +1 -0
  28. package/lib/dist/types/api/txs/evm.d.ts +2 -0
  29. package/lib/dist/types/api/txs/evm.d.ts.map +1 -0
  30. package/lib/dist/types/api/txs/index.d.ts +5 -0
  31. package/lib/dist/types/api/txs/index.d.ts.map +1 -0
  32. package/lib/dist/types/api/txs/solana.d.ts +2 -0
  33. package/lib/dist/types/api/txs/solana.d.ts.map +1 -0
  34. package/lib/dist/types/api/txs/transfer.d.ts +2 -0
  35. package/lib/dist/types/api/txs/transfer.d.ts.map +1 -0
  36. package/lib/dist/types/index.d.ts +7 -0
  37. package/lib/dist/types/index.d.ts.map +1 -0
  38. package/package.json +2 -2
@@ -0,0 +1,19 @@
1
+ import { MetaResponse, BestRouteRequest, BestRouteResponse, CheckApprovalResponse, CheckTxStatusRequest, TransactionStatusResponse, CreateTransactionRequest, CreateTransactionResponse, ReportTransactionRequest, WalletDetailsResponse } from '../types';
2
+ declare type WalletAddresses = {
3
+ blockchain: string;
4
+ address: string;
5
+ }[];
6
+ export declare class RangoClient {
7
+ private readonly deviceId;
8
+ private readonly apiKey;
9
+ constructor(apiKey: string);
10
+ getAllMetadata(): Promise<MetaResponse>;
11
+ getBestRoute(requestBody: BestRouteRequest): Promise<BestRouteResponse>;
12
+ checkApproval(requestId: string): Promise<CheckApprovalResponse>;
13
+ checkStatus(requestBody: CheckTxStatusRequest): Promise<TransactionStatusResponse>;
14
+ createTransaction(requestBody: CreateTransactionRequest): Promise<CreateTransactionResponse>;
15
+ reportFailure(requestBody: ReportTransactionRequest): Promise<void>;
16
+ getWalletsDetails(walletAddresses: WalletAddresses): Promise<WalletDetailsResponse>;
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/services/client.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,UAAU,CAAA;AAEjB,aAAK,eAAe,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,CAAA;AAEhE,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;IAEjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;gBAEnB,MAAM,EAAE,MAAM;IAoBb,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC;IAOvC,YAAY,CACvB,WAAW,EAAE,gBAAgB,GAC5B,OAAO,CAAC,iBAAiB,CAAC;IAShB,aAAa,CACxB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,qBAAqB,CAAC;IAOpB,WAAW,CACtB,WAAW,EAAE,oBAAoB,GAChC,OAAO,CAAC,yBAAyB,CAAC;IAQxB,iBAAiB,CAC5B,WAAW,EAAE,wBAAwB,GACpC,OAAO,CAAC,yBAAyB,CAAC;IAQxB,aAAa,CACxB,WAAW,EAAE,wBAAwB,GACpC,OAAO,CAAC,IAAI,CAAC;IAIH,iBAAiB,CAC5B,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,qBAAqB,CAAC;CAWlC"}
@@ -0,0 +1,2 @@
1
+ export declare const httpService: import("axios").AxiosInstance;
2
+ //# sourceMappingURL=httpService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpService.d.ts","sourceRoot":"","sources":["../src/services/httpService.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,+BAEtB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { RangoClient } from './client';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'rango-types/lib/api/main/balance';
2
+ //# sourceMappingURL=balance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../src/types/api/balance.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'rango-types/lib/api/main/common';
2
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/api/common.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from 'rango-types/lib/api/main/meta';
2
+ export * from 'rango-types/lib/api/shared/type-gaurds';
3
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/types/api/meta.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wCAAwC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'rango-types/lib/api/main/routing';
2
+ //# sourceMappingURL=routing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/types/api/routing.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'rango-types/lib/api/main/transactions';
2
+ //# sourceMappingURL=transactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/types/api/transactions.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'rango-types/lib/api/main/txs/cosmos';
2
+ //# sourceMappingURL=cosmos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/cosmos.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'rango-types/lib/api/main/txs/evm';
2
+ //# sourceMappingURL=evm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/evm.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './evm';
2
+ export * from './cosmos';
3
+ export * from './transfer';
4
+ export * from './solana';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'rango-types/lib/api/main/txs/solana';
2
+ //# sourceMappingURL=solana.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/solana.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from 'rango-types/lib/api/main/txs/transfer';
2
+ //# sourceMappingURL=transfer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/transfer.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './api/balance';
2
+ export * from './api/common';
3
+ export * from './api/meta';
4
+ export * from './api/routing';
5
+ export * from './api/transactions';
6
+ export * from './api/txs';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rango-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Rango Exchange SDK for dApps",
5
5
  "module": "lib/rango-sdk.esm.js",
6
6
  "main": "lib/index.js",
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "axios": "^1.2.6",
44
44
  "bignumber.js": "^9.1.1",
45
- "rango-types": "^0.1.5",
45
+ "rango-types": "^0.1.7",
46
46
  "uuid": "^9.0.0"
47
47
  },
48
48
  "publishConfig": {