@augustdigital/sdk 4.24.9 → 4.24.10-alpha-3

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 (137) 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/TokenizedVaultV2WithDepositWithPermit.d.ts +85 -0
  5. package/lib/abis/TokenizedVaultV2WithDepositWithPermit.js +1878 -0
  6. package/lib/abis/TokenizedVaultV2WithDepositWithPermit.js.map +1 -0
  7. package/lib/adapters/solana/getters.d.ts +2 -2
  8. package/lib/adapters/solana/getters.js +36 -100
  9. package/lib/adapters/solana/getters.js.map +1 -1
  10. package/lib/adapters/solana/index.d.ts +2 -2
  11. package/lib/adapters/solana/utils.d.ts +2 -2
  12. package/lib/adapters/solana/utils.js +1 -8
  13. package/lib/adapters/solana/utils.js.map +1 -1
  14. package/lib/adapters/stellar/actions.d.ts +3 -0
  15. package/lib/adapters/stellar/actions.js +11 -0
  16. package/lib/adapters/stellar/actions.js.map +1 -0
  17. package/lib/adapters/stellar/constants.d.ts +10 -0
  18. package/lib/adapters/stellar/constants.js +16 -0
  19. package/lib/adapters/stellar/constants.js.map +1 -0
  20. package/lib/adapters/stellar/getters.d.ts +4 -0
  21. package/lib/adapters/stellar/getters.js +51 -0
  22. package/lib/adapters/stellar/getters.js.map +1 -0
  23. package/lib/adapters/stellar/index.d.ts +24 -0
  24. package/lib/adapters/stellar/index.js +68 -0
  25. package/lib/adapters/stellar/index.js.map +1 -0
  26. package/lib/adapters/stellar/types.d.ts +15 -0
  27. package/lib/adapters/stellar/types.js +3 -0
  28. package/lib/adapters/stellar/types.js.map +1 -0
  29. package/lib/adapters/stellar/utils.d.ts +12 -0
  30. package/lib/adapters/stellar/utils.js +31 -0
  31. package/lib/adapters/stellar/utils.js.map +1 -0
  32. package/lib/adapters/sui/transformer.js +4 -9
  33. package/lib/adapters/sui/transformer.js.map +1 -1
  34. package/lib/core/base.class.d.ts +3 -2
  35. package/lib/core/base.class.js +14 -7
  36. package/lib/core/base.class.js.map +1 -1
  37. package/lib/core/constants/core.d.ts +6 -3
  38. package/lib/core/constants/core.js +3 -0
  39. package/lib/core/constants/core.js.map +1 -1
  40. package/lib/core/constants/hardcoded-vaults.d.ts +7 -0
  41. package/lib/core/constants/hardcoded-vaults.js +179 -0
  42. package/lib/core/constants/hardcoded-vaults.js.map +1 -0
  43. package/lib/core/constants/ovault.d.ts +13 -0
  44. package/lib/core/constants/ovault.js +160 -0
  45. package/lib/core/constants/ovault.js.map +1 -0
  46. package/lib/core/constants/rwa-vaults.d.ts +4 -0
  47. package/lib/core/constants/rwa-vaults.js +27 -0
  48. package/lib/core/constants/rwa-vaults.js.map +1 -0
  49. package/lib/core/constants/web3.d.ts +5 -0
  50. package/lib/core/constants/web3.js +9 -0
  51. package/lib/core/constants/web3.js.map +1 -1
  52. package/lib/core/constants.adapters.d.ts +117 -0
  53. package/lib/core/constants.adapters.js +160 -0
  54. package/lib/core/constants.adapters.js.map +1 -0
  55. package/lib/core/constants.core.d.ts +78 -0
  56. package/lib/core/constants.core.js +75 -0
  57. package/lib/core/constants.core.js.map +1 -0
  58. package/lib/core/constants.vaults.d.ts +64 -0
  59. package/lib/core/constants.vaults.js +156 -0
  60. package/lib/core/constants.vaults.js.map +1 -0
  61. package/lib/core/constants.web3.d.ts +31 -0
  62. package/lib/core/constants.web3.js +100 -0
  63. package/lib/core/constants.web3.js.map +1 -0
  64. package/lib/core/fetcher.d.ts +4 -4
  65. package/lib/core/fetcher.js +9 -2
  66. package/lib/core/fetcher.js.map +1 -1
  67. package/lib/core/helpers/address-utils.d.ts +3 -0
  68. package/lib/core/helpers/address-utils.js +18 -0
  69. package/lib/core/helpers/address-utils.js.map +1 -0
  70. package/lib/core/helpers/vaults.js +37 -29
  71. package/lib/core/helpers/vaults.js.map +1 -1
  72. package/lib/core/helpers/web3.d.ts +3 -2
  73. package/lib/core/helpers/web3.js +17 -1
  74. package/lib/core/helpers/web3.js.map +1 -1
  75. package/lib/core/helpers.adapters.d.ts +9 -0
  76. package/lib/core/helpers.adapters.js +28 -0
  77. package/lib/core/helpers.adapters.js.map +1 -0
  78. package/lib/core/helpers.core.d.ts +48 -0
  79. package/lib/core/helpers.core.js +210 -0
  80. package/lib/core/helpers.core.js.map +1 -0
  81. package/lib/core/helpers.signer.d.ts +9 -0
  82. package/lib/core/helpers.signer.js +54 -0
  83. package/lib/core/helpers.signer.js.map +1 -0
  84. package/lib/core/helpers.vaults.d.ts +36 -0
  85. package/lib/core/helpers.vaults.js +145 -0
  86. package/lib/core/helpers.vaults.js.map +1 -0
  87. package/lib/core/helpers.web3.d.ts +95 -0
  88. package/lib/core/helpers.web3.js +376 -0
  89. package/lib/core/helpers.web3.js.map +1 -0
  90. package/lib/index.d.ts +1 -0
  91. package/lib/index.js +1 -0
  92. package/lib/index.js.map +1 -1
  93. package/lib/main.d.ts +2 -0
  94. package/lib/main.js +3 -2
  95. package/lib/main.js.map +1 -1
  96. package/lib/modules/vaults/getters.d.ts +29 -2
  97. package/lib/modules/vaults/getters.js +516 -83
  98. package/lib/modules/vaults/getters.js.map +1 -1
  99. package/lib/modules/vaults/main.d.ts +6 -0
  100. package/lib/modules/vaults/main.js +92 -33
  101. package/lib/modules/vaults/main.js.map +1 -1
  102. package/lib/modules/vaults/utils/call-data-decoder.d.ts +14 -0
  103. package/lib/modules/vaults/utils/call-data-decoder.js +138 -0
  104. package/lib/modules/vaults/utils/call-data-decoder.js.map +1 -0
  105. package/lib/modules/vaults/utils/date-utils.d.ts +11 -0
  106. package/lib/modules/vaults/utils/date-utils.js +39 -0
  107. package/lib/modules/vaults/utils/date-utils.js.map +1 -0
  108. package/lib/modules/vaults/utils.d.ts +2 -0
  109. package/lib/modules/vaults/utils.js +117 -1
  110. package/lib/modules/vaults/utils.js.map +1 -1
  111. package/lib/modules/vaults/write.actions.js +15 -2
  112. package/lib/modules/vaults/write.actions.js.map +1 -1
  113. package/lib/services/layerzero/builder.d.ts +7 -0
  114. package/lib/services/layerzero/builder.js +251 -0
  115. package/lib/services/layerzero/builder.js.map +1 -0
  116. package/lib/services/layerzero/ovault-deposit.d.ts +6 -0
  117. package/lib/services/layerzero/ovault-deposit.js +73 -0
  118. package/lib/services/layerzero/ovault-deposit.js.map +1 -0
  119. package/lib/services/layerzero/ovault-redeem.d.ts +4 -0
  120. package/lib/services/layerzero/ovault-redeem.js +46 -0
  121. package/lib/services/layerzero/ovault-redeem.js.map +1 -0
  122. package/lib/types/ovault.d.ts +78 -0
  123. package/lib/types/ovault.js +3 -0
  124. package/lib/types/ovault.js.map +1 -0
  125. package/lib/types/rwa-redemption.d.ts +12 -0
  126. package/lib/types/rwa-redemption.js +3 -0
  127. package/lib/types/rwa-redemption.js.map +1 -0
  128. package/lib/types/vaults.d.ts +40 -8
  129. package/lib/types/vaults.js.map +1 -1
  130. package/lib/types/web3.d.ts +5 -0
  131. package/lib/types/web3.js +10 -0
  132. package/lib/types/web3.js.map +1 -1
  133. package/lib/types/webserver.d.ts +11 -2
  134. package/lib/verify.d.ts +2 -0
  135. package/lib/verify.js +33 -0
  136. package/lib/verify.js.map +1 -0
  137. package/package.json +1 -1
@@ -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,oBAAoB;QAC1B,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACvC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;KACtC;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACvC,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,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;KACtC;CACO,CAAC"}
@@ -0,0 +1,85 @@
1
+ export declare const TokenizedVaultV2WithDepositWithPermit: (
2
+ | {
3
+ type: string;
4
+ inputs: any[];
5
+ stateMutability: string;
6
+ name?: undefined;
7
+ outputs?: undefined;
8
+ anonymous?: undefined;
9
+ }
10
+ | {
11
+ type: string;
12
+ name: string;
13
+ inputs: {
14
+ name: string;
15
+ type: string;
16
+ internalType: string;
17
+ }[];
18
+ outputs: {
19
+ name: string;
20
+ type: string;
21
+ internalType: string;
22
+ }[];
23
+ stateMutability: string;
24
+ anonymous?: undefined;
25
+ }
26
+ | {
27
+ type: string;
28
+ name: string;
29
+ inputs: {
30
+ name: string;
31
+ type: string;
32
+ internalType: string;
33
+ components: {
34
+ name: string;
35
+ type: string;
36
+ internalType: string;
37
+ }[];
38
+ }[];
39
+ outputs: any[];
40
+ stateMutability: string;
41
+ anonymous?: undefined;
42
+ }
43
+ | {
44
+ type: string;
45
+ name: string;
46
+ inputs: any[];
47
+ outputs: {
48
+ name: string;
49
+ type: string;
50
+ internalType: string;
51
+ components: {
52
+ name: string;
53
+ type: string;
54
+ internalType: string;
55
+ }[];
56
+ }[];
57
+ stateMutability: string;
58
+ anonymous?: undefined;
59
+ }
60
+ | {
61
+ type: string;
62
+ name: string;
63
+ inputs: {
64
+ name: string;
65
+ type: string;
66
+ indexed: boolean;
67
+ internalType: string;
68
+ }[];
69
+ anonymous: boolean;
70
+ stateMutability?: undefined;
71
+ outputs?: undefined;
72
+ }
73
+ | {
74
+ type: string;
75
+ name: string;
76
+ inputs: {
77
+ name: string;
78
+ type: string;
79
+ internalType: string;
80
+ }[];
81
+ stateMutability?: undefined;
82
+ outputs?: undefined;
83
+ anonymous?: undefined;
84
+ }
85
+ )[];