rango-sdk 0.1.4 → 0.1.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.
Files changed (50) hide show
  1. package/lib/rango-sdk.cjs.development.js +36 -22
  2. package/lib/rango-sdk.cjs.development.js.map +1 -1
  3. package/lib/rango-sdk.cjs.production.min.js +1 -1
  4. package/lib/rango-sdk.cjs.production.min.js.map +1 -1
  5. package/lib/rango-sdk.esm.js +36 -22
  6. package/lib/rango-sdk.esm.js.map +1 -1
  7. package/lib/services/client.d.ts +8 -8
  8. package/lib/services/client.d.ts.map +1 -1
  9. package/lib/types/configs.d.ts +5 -0
  10. package/lib/types/configs.d.ts.map +1 -0
  11. package/lib/types/index.d.ts +1 -0
  12. package/lib/types/index.d.ts.map +1 -1
  13. package/package.json +2 -2
  14. package/lib/dist/index.d.ts +0 -3
  15. package/lib/dist/index.d.ts.map +0 -1
  16. package/lib/dist/index.js +0 -8
  17. package/lib/dist/rango-sdk.cjs.development.js +0 -672
  18. package/lib/dist/rango-sdk.cjs.development.js.map +0 -1
  19. package/lib/dist/rango-sdk.cjs.production.min.js +0 -2
  20. package/lib/dist/rango-sdk.cjs.production.min.js.map +0 -1
  21. package/lib/dist/rango-sdk.esm.js +0 -659
  22. package/lib/dist/rango-sdk.esm.js.map +0 -1
  23. package/lib/dist/services/client.d.ts +0 -19
  24. package/lib/dist/services/client.d.ts.map +0 -1
  25. package/lib/dist/services/httpService.d.ts +0 -2
  26. package/lib/dist/services/httpService.d.ts.map +0 -1
  27. package/lib/dist/services/index.d.ts +0 -2
  28. package/lib/dist/services/index.d.ts.map +0 -1
  29. package/lib/dist/types/api/balance.d.ts +0 -2
  30. package/lib/dist/types/api/balance.d.ts.map +0 -1
  31. package/lib/dist/types/api/common.d.ts +0 -2
  32. package/lib/dist/types/api/common.d.ts.map +0 -1
  33. package/lib/dist/types/api/meta.d.ts +0 -3
  34. package/lib/dist/types/api/meta.d.ts.map +0 -1
  35. package/lib/dist/types/api/routing.d.ts +0 -2
  36. package/lib/dist/types/api/routing.d.ts.map +0 -1
  37. package/lib/dist/types/api/transactions.d.ts +0 -2
  38. package/lib/dist/types/api/transactions.d.ts.map +0 -1
  39. package/lib/dist/types/api/txs/cosmos.d.ts +0 -2
  40. package/lib/dist/types/api/txs/cosmos.d.ts.map +0 -1
  41. package/lib/dist/types/api/txs/evm.d.ts +0 -2
  42. package/lib/dist/types/api/txs/evm.d.ts.map +0 -1
  43. package/lib/dist/types/api/txs/index.d.ts +0 -5
  44. package/lib/dist/types/api/txs/index.d.ts.map +0 -1
  45. package/lib/dist/types/api/txs/solana.d.ts +0 -2
  46. package/lib/dist/types/api/txs/solana.d.ts.map +0 -1
  47. package/lib/dist/types/api/txs/transfer.d.ts +0 -2
  48. package/lib/dist/types/api/txs/transfer.d.ts.map +0 -1
  49. package/lib/dist/types/index.d.ts +0 -7
  50. package/lib/dist/types/index.d.ts.map +0 -1
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export declare const httpService: import("axios").AxiosInstance;
2
- //# sourceMappingURL=httpService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"httpService.d.ts","sourceRoot":"","sources":["../src/services/httpService.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,+BAEtB,CAAA"}
@@ -1,2 +0,0 @@
1
- export { RangoClient } from './client';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from 'rango-types/lib/api/main/balance';
2
- //# sourceMappingURL=balance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../src/types/api/balance.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from 'rango-types/lib/api/main/common';
2
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/api/common.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAA"}
@@ -1,3 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export * from 'rango-types/lib/api/main/routing';
2
- //# sourceMappingURL=routing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/types/api/routing.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from 'rango-types/lib/api/main/transactions';
2
- //# sourceMappingURL=transactions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/types/api/transactions.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from 'rango-types/lib/api/main/txs/cosmos';
2
- //# sourceMappingURL=cosmos.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/cosmos.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from 'rango-types/lib/api/main/txs/evm';
2
- //# sourceMappingURL=evm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/evm.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
@@ -1,5 +0,0 @@
1
- export * from './evm';
2
- export * from './cosmos';
3
- export * from './transfer';
4
- export * from './solana';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export * from 'rango-types/lib/api/main/txs/solana';
2
- //# sourceMappingURL=solana.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/solana.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from 'rango-types/lib/api/main/txs/transfer';
2
- //# sourceMappingURL=transfer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../src/types/api/txs/transfer.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAA"}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}