@augustdigital/sdk 4.25.2 → 4.26.0-alpha.1

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 (51) hide show
  1. package/lib/abis/RwaRedeem.d.ts +76 -0
  2. package/lib/abis/RwaRedeem.js +55 -0
  3. package/lib/abis/RwaRedeem.js.map +1 -0
  4. package/lib/abis/RwaRedeemSubaccount.d.ts +747 -0
  5. package/lib/abis/RwaRedeemSubaccount.js +548 -0
  6. package/lib/abis/RwaRedeemSubaccount.js.map +1 -0
  7. package/lib/abis/SendersAllocationWhitelist.d.ts +113 -0
  8. package/lib/abis/SendersAllocationWhitelist.js +157 -0
  9. package/lib/abis/SendersAllocationWhitelist.js.map +1 -0
  10. package/lib/abis/TokenizedVaultV2Whitelist.d.ts +454 -0
  11. package/lib/abis/TokenizedVaultV2Whitelist.js +327 -0
  12. package/lib/abis/TokenizedVaultV2Whitelist.js.map +1 -0
  13. package/lib/abis/index.d.ts +1 -0
  14. package/lib/abis/index.js +1 -0
  15. package/lib/abis/index.js.map +1 -1
  16. package/lib/core/analytics/version.d.ts +1 -0
  17. package/lib/core/analytics/version.js +5 -0
  18. package/lib/core/analytics/version.js.map +1 -0
  19. package/lib/core/constants/hardcoded-vaults.d.ts +7 -0
  20. package/lib/core/constants/hardcoded-vaults.js +248 -0
  21. package/lib/core/constants/hardcoded-vaults.js.map +1 -0
  22. package/lib/core/constants/rwa-vaults.d.ts +4 -0
  23. package/lib/core/constants/rwa-vaults.js +28 -0
  24. package/lib/core/constants/rwa-vaults.js.map +1 -0
  25. package/lib/core/helpers/address-utils.d.ts +3 -0
  26. package/lib/core/helpers/address-utils.js +18 -0
  27. package/lib/core/helpers/address-utils.js.map +1 -0
  28. package/lib/modules/vaults/getters.js +0 -1
  29. package/lib/modules/vaults/getters.js.map +1 -1
  30. package/lib/modules/vaults/main.d.ts +14 -0
  31. package/lib/modules/vaults/main.js +77 -0
  32. package/lib/modules/vaults/main.js.map +1 -1
  33. package/lib/modules/vaults/read.actions.d.ts +8 -0
  34. package/lib/modules/vaults/read.actions.js +26 -0
  35. package/lib/modules/vaults/read.actions.js.map +1 -1
  36. package/lib/modules/vaults/utils.js +32 -0
  37. package/lib/modules/vaults/utils.js.map +1 -1
  38. package/lib/modules/vaults/write.actions.d.ts +11 -0
  39. package/lib/modules/vaults/write.actions.js +29 -0
  40. package/lib/modules/vaults/write.actions.js.map +1 -1
  41. package/lib/services/debank/fetcher.d.ts +5 -108
  42. package/lib/services/debank/fetcher.js.map +1 -1
  43. package/lib/services/debank/utils.js +1 -51
  44. package/lib/services/debank/utils.js.map +1 -1
  45. package/lib/types/rwa-redemption.d.ts +13 -0
  46. package/lib/types/rwa-redemption.js +3 -0
  47. package/lib/types/rwa-redemption.js.map +1 -0
  48. package/lib/types/vaults.d.ts +12 -0
  49. package/lib/types/vaults.js.map +1 -1
  50. package/lib/types/webserver.d.ts +12 -0
  51. package/package.json +14 -14
@@ -0,0 +1,76 @@
1
+ export declare const ABI_RWA_REDEEM: readonly [{
2
+ readonly name: "redeemAsset";
3
+ readonly type: "function";
4
+ readonly stateMutability: "nonpayable";
5
+ readonly inputs: readonly [{
6
+ readonly name: "asset";
7
+ readonly type: "address";
8
+ }, {
9
+ readonly name: "amount";
10
+ readonly type: "uint256";
11
+ }, {
12
+ readonly name: "minOut";
13
+ readonly type: "uint256";
14
+ }];
15
+ readonly outputs: readonly [{
16
+ readonly name: "";
17
+ readonly type: "uint256";
18
+ }];
19
+ }, {
20
+ readonly name: "previewRedemption";
21
+ readonly type: "function";
22
+ readonly stateMutability: "view";
23
+ readonly inputs: readonly [{
24
+ readonly name: "asset";
25
+ readonly type: "address";
26
+ }, {
27
+ readonly name: "amount";
28
+ readonly type: "uint256";
29
+ }];
30
+ readonly outputs: readonly [{
31
+ readonly name: "";
32
+ readonly type: "uint256";
33
+ }];
34
+ }, {
35
+ readonly name: "availableLiquidity";
36
+ readonly type: "function";
37
+ readonly stateMutability: "view";
38
+ readonly inputs: readonly [];
39
+ readonly outputs: readonly [{
40
+ readonly name: "";
41
+ readonly type: "uint256";
42
+ }];
43
+ }, {
44
+ readonly name: "redeemableAssets";
45
+ readonly type: "function";
46
+ readonly stateMutability: "view";
47
+ readonly inputs: readonly [{
48
+ readonly name: "";
49
+ readonly type: "address";
50
+ }];
51
+ readonly outputs: readonly [{
52
+ readonly name: "";
53
+ readonly type: "bool";
54
+ }];
55
+ }, {
56
+ readonly name: "redemptionSpreadBps";
57
+ readonly type: "function";
58
+ readonly stateMutability: "view";
59
+ readonly inputs: readonly [{
60
+ readonly name: "";
61
+ readonly type: "address";
62
+ }];
63
+ readonly outputs: readonly [{
64
+ readonly name: "";
65
+ readonly type: "uint256";
66
+ }];
67
+ }, {
68
+ readonly name: "redemptionsPaused";
69
+ readonly type: "function";
70
+ readonly stateMutability: "view";
71
+ readonly inputs: readonly [];
72
+ readonly outputs: readonly [{
73
+ readonly name: "";
74
+ readonly type: "bool";
75
+ }];
76
+ }];
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ABI_RWA_REDEEM = void 0;
4
+ exports.ABI_RWA_REDEEM = [
5
+ {
6
+ name: 'redeemAsset',
7
+ type: 'function',
8
+ stateMutability: 'nonpayable',
9
+ inputs: [
10
+ { name: 'asset', type: 'address' },
11
+ { name: 'amount', type: 'uint256' },
12
+ { name: 'minOut', type: 'uint256' },
13
+ ],
14
+ outputs: [{ name: '', type: 'uint256' }],
15
+ },
16
+ {
17
+ name: 'previewRedemption',
18
+ type: 'function',
19
+ stateMutability: 'view',
20
+ inputs: [
21
+ { name: 'asset', type: 'address' },
22
+ { name: 'amount', type: 'uint256' },
23
+ ],
24
+ outputs: [{ name: '', type: 'uint256' }],
25
+ },
26
+ {
27
+ name: 'availableLiquidity',
28
+ type: 'function',
29
+ stateMutability: 'view',
30
+ inputs: [],
31
+ outputs: [{ name: '', type: 'uint256' }],
32
+ },
33
+ {
34
+ name: 'redeemableAssets',
35
+ type: 'function',
36
+ stateMutability: 'view',
37
+ inputs: [{ name: '', type: 'address' }],
38
+ outputs: [{ name: '', type: 'bool' }],
39
+ },
40
+ {
41
+ name: 'redemptionSpreadBps',
42
+ type: 'function',
43
+ stateMutability: 'view',
44
+ inputs: [{ name: '', type: 'address' }],
45
+ outputs: [{ name: '', type: 'uint256' }],
46
+ },
47
+ {
48
+ name: 'redemptionsPaused',
49
+ type: 'function',
50
+ stateMutability: 'view',
51
+ inputs: [],
52
+ outputs: [{ name: '', type: 'bool' }],
53
+ },
54
+ ];
55
+ //# sourceMappingURL=RwaRedeem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RwaRedeem.js","sourceRoot":"","sources":["../../src.ts/abis/RwaRedeem.ts"],"names":[],"mappings":";;;AAIa,QAAA,cAAc,GAAG;IAC5B;QACE,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;YACnC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE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