@gearbox-protocol/sdk 13.6.0-kyc.6 → 13.6.0

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 (152) hide show
  1. package/dist/cjs/dev/AccountOpener.js +5 -45
  2. package/dist/cjs/plugins/adapters/abi/actionAbi.js +1 -1
  3. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +1 -1
  4. package/dist/cjs/plugins/adapters/createAdapter.js +1 -1
  5. package/dist/cjs/plugins/adapters/types.js +1 -1
  6. package/dist/cjs/plugins/apy/ApyPlugin.js +266 -0
  7. package/dist/cjs/plugins/apy/apy-cache.js +120 -0
  8. package/dist/cjs/plugins/apy/apy-parser.js +169 -0
  9. package/dist/cjs/{sdk/market/kyc/securitize → plugins/apy}/constants.js +6 -3
  10. package/dist/cjs/{sdk/market/kyc/securitize → plugins/apy}/index.js +14 -6
  11. package/dist/cjs/{sdk/market/kyc/securitize/types.js → plugins/apy/pool-apy-types.js} +2 -2
  12. package/dist/cjs/plugins/apy/pool-apy-utils.js +141 -0
  13. package/dist/cjs/rewards/rewards/extra-apy.js +10 -8
  14. package/dist/cjs/sdk/GearboxSDK.js +5 -52
  15. package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +16 -331
  16. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +1 -7
  17. package/dist/cjs/sdk/base/TokensMeta.js +43 -32
  18. package/dist/cjs/sdk/base/token-types.js +0 -9
  19. package/dist/cjs/sdk/chain/chains.js +32 -17
  20. package/dist/cjs/sdk/constants/address-provider.js +0 -3
  21. package/dist/cjs/sdk/market/MarketRegister.js +116 -70
  22. package/dist/cjs/sdk/market/MarketSuite.js +0 -3
  23. package/dist/cjs/sdk/market/index.js +0 -2
  24. package/dist/cjs/sdk/market/pool/PoolSuite.js +0 -3
  25. package/dist/cjs/sdk/market/pool/PoolV310Contract.js +2 -11
  26. package/dist/cjs/sdk/market/pool/index.js +0 -2
  27. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  28. package/dist/cjs/sdk/options.js +1 -7
  29. package/dist/cjs/sdk/pools/PoolService.js +12 -104
  30. package/dist/cjs/sdk/utils/viem/index.js +0 -2
  31. package/dist/cjs/sdk/utils/viem/simulateWithPriceUpdates.js +39 -2
  32. package/dist/esm/dev/AccountOpener.js +6 -47
  33. package/dist/esm/plugins/adapters/abi/actionAbi.js +1 -1
  34. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +1 -1
  35. package/dist/esm/plugins/adapters/createAdapter.js +1 -1
  36. package/dist/esm/plugins/adapters/types.js +1 -1
  37. package/dist/esm/plugins/apy/ApyPlugin.js +255 -0
  38. package/dist/esm/plugins/apy/apy-cache.js +86 -0
  39. package/dist/esm/plugins/apy/apy-parser.js +143 -0
  40. package/dist/esm/plugins/apy/constants.js +6 -0
  41. package/dist/esm/plugins/apy/index.js +7 -0
  42. package/dist/esm/plugins/apy/pool-apy-utils.js +113 -0
  43. package/dist/esm/rewards/rewards/extra-apy.js +10 -8
  44. package/dist/esm/sdk/GearboxSDK.js +6 -56
  45. package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +17 -332
  46. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -7
  47. package/dist/esm/sdk/base/TokensMeta.js +45 -32
  48. package/dist/esm/sdk/base/token-types.js +0 -6
  49. package/dist/esm/sdk/chain/chains.js +32 -17
  50. package/dist/esm/sdk/constants/address-provider.js +0 -2
  51. package/dist/esm/sdk/market/MarketRegister.js +118 -74
  52. package/dist/esm/sdk/market/MarketSuite.js +0 -3
  53. package/dist/esm/sdk/market/index.js +0 -1
  54. package/dist/esm/sdk/market/pool/PoolSuite.js +0 -3
  55. package/dist/esm/sdk/market/pool/PoolV310Contract.js +2 -11
  56. package/dist/esm/sdk/market/pool/index.js +0 -1
  57. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  58. package/dist/esm/sdk/options.js +1 -7
  59. package/dist/esm/sdk/pools/PoolService.js +13 -109
  60. package/dist/esm/sdk/utils/viem/index.js +0 -1
  61. package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +41 -2
  62. package/dist/types/plugins/adapters/types.d.ts +2 -2
  63. package/dist/types/plugins/apy/ApyPlugin.d.ts +46 -0
  64. package/dist/types/plugins/apy/apy-cache.d.ts +28 -0
  65. package/dist/types/plugins/apy/apy-parser.d.ts +5 -0
  66. package/dist/types/plugins/apy/constants.d.ts +2 -0
  67. package/dist/types/plugins/apy/index.d.ts +7 -0
  68. package/dist/types/plugins/apy/pool-apy-types.d.ts +41 -0
  69. package/dist/types/plugins/apy/pool-apy-utils.d.ts +73 -0
  70. package/dist/types/plugins/apy/types.d.ts +37 -0
  71. package/dist/types/rewards/rewards/api.d.ts +10 -1
  72. package/dist/types/rewards/rewards/common.d.ts +0 -10
  73. package/dist/types/rewards/rewards/extra-apy.d.ts +4 -6
  74. package/dist/types/sdk/GearboxSDK.d.ts +0 -7
  75. package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +2 -55
  76. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +1 -1
  77. package/dist/types/sdk/accounts/types.d.ts +13 -93
  78. package/dist/types/sdk/base/TokensMeta.d.ts +3 -14
  79. package/dist/types/sdk/base/token-types.d.ts +4 -44
  80. package/dist/types/sdk/base/types.d.ts +11 -116
  81. package/dist/types/sdk/chain/chains.d.ts +5 -5
  82. package/dist/types/sdk/constants/address-provider.d.ts +0 -1
  83. package/dist/types/sdk/market/MarketRegister.d.ts +9 -6
  84. package/dist/types/sdk/market/MarketSuite.d.ts +0 -2
  85. package/dist/types/sdk/market/index.d.ts +0 -1
  86. package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +2 -3
  87. package/dist/types/sdk/market/oracle/types.d.ts +10 -3
  88. package/dist/types/sdk/market/pool/PoolSuite.d.ts +0 -2
  89. package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +2 -6
  90. package/dist/types/sdk/market/pool/index.d.ts +0 -1
  91. package/dist/types/sdk/market/pricefeeds/PriceFeedsRegister.d.ts +1 -1
  92. package/dist/types/sdk/market/types.d.ts +1 -1
  93. package/dist/types/sdk/options.d.ts +0 -1
  94. package/dist/types/sdk/pools/PoolService.d.ts +8 -8
  95. package/dist/types/sdk/pools/types.d.ts +1 -1
  96. package/dist/types/sdk/types/state-human.d.ts +0 -2
  97. package/dist/types/sdk/types/state.d.ts +0 -5
  98. package/dist/types/sdk/utils/viem/index.d.ts +0 -1
  99. package/package.json +2 -3
  100. package/dist/cjs/abi/kyc/iDSRegistryService.js +0 -70
  101. package/dist/cjs/abi/kyc/iDSToken.js +0 -71
  102. package/dist/cjs/abi/kyc/iKYCCompressor.js +0 -196
  103. package/dist/cjs/abi/kyc/iKYCFactory.js +0 -122
  104. package/dist/cjs/abi/kyc/iKYCUnderlying.js +0 -401
  105. package/dist/cjs/abi/kyc/iSecuritizeDegenNFT.js +0 -326
  106. package/dist/cjs/abi/kyc/iSecuritizeKYCFactory.js +0 -319
  107. package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +0 -108
  108. package/dist/cjs/plugins/pools-history/index.js +0 -24
  109. package/dist/cjs/sdk/market/kyc/KYCRegistry.js +0 -269
  110. package/dist/cjs/sdk/market/kyc/index.js +0 -26
  111. package/dist/cjs/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +0 -229
  112. package/dist/cjs/sdk/market/kyc/types.js +0 -29
  113. package/dist/cjs/sdk/utils/viem/executeDelegatedMulticalls.js +0 -38
  114. package/dist/esm/abi/kyc/iDSRegistryService.js +0 -46
  115. package/dist/esm/abi/kyc/iDSToken.js +0 -47
  116. package/dist/esm/abi/kyc/iKYCCompressor.js +0 -172
  117. package/dist/esm/abi/kyc/iKYCFactory.js +0 -98
  118. package/dist/esm/abi/kyc/iKYCUnderlying.js +0 -377
  119. package/dist/esm/abi/kyc/iSecuritizeDegenNFT.js +0 -302
  120. package/dist/esm/abi/kyc/iSecuritizeKYCFactory.js +0 -295
  121. package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +0 -90
  122. package/dist/esm/plugins/pools-history/index.js +0 -2
  123. package/dist/esm/sdk/market/kyc/KYCRegistry.js +0 -253
  124. package/dist/esm/sdk/market/kyc/index.js +0 -3
  125. package/dist/esm/sdk/market/kyc/securitize/SecuritizeKYCFactory.js +0 -205
  126. package/dist/esm/sdk/market/kyc/securitize/constants.js +0 -4
  127. package/dist/esm/sdk/market/kyc/securitize/index.js +0 -3
  128. package/dist/esm/sdk/market/kyc/types.js +0 -5
  129. package/dist/esm/sdk/utils/viem/executeDelegatedMulticalls.js +0 -14
  130. package/dist/types/abi/kyc/iDSRegistryService.d.ts +0 -71
  131. package/dist/types/abi/kyc/iDSToken.d.ts +0 -67
  132. package/dist/types/abi/kyc/iKYCCompressor.d.ts +0 -228
  133. package/dist/types/abi/kyc/iKYCFactory.d.ts +0 -139
  134. package/dist/types/abi/kyc/iKYCUnderlying.d.ts +0 -548
  135. package/dist/types/abi/kyc/iSecuritizeDegenNFT.d.ts +0 -404
  136. package/dist/types/abi/kyc/iSecuritizeKYCFactory.d.ts +0 -376
  137. package/dist/types/plugins/pools-history/Pools7DAgoPlugin.d.ts +0 -20
  138. package/dist/types/plugins/pools-history/index.d.ts +0 -2
  139. package/dist/types/plugins/pools-history/types.d.ts +0 -9
  140. package/dist/types/sdk/market/kyc/KYCRegistry.d.ts +0 -52
  141. package/dist/types/sdk/market/kyc/index.d.ts +0 -3
  142. package/dist/types/sdk/market/kyc/securitize/SecuritizeKYCFactory.d.ts +0 -420
  143. package/dist/types/sdk/market/kyc/securitize/constants.d.ts +0 -1
  144. package/dist/types/sdk/market/kyc/securitize/index.d.ts +0 -3
  145. package/dist/types/sdk/market/kyc/securitize/types.d.ts +0 -107
  146. package/dist/types/sdk/market/kyc/types.d.ts +0 -136
  147. package/dist/types/sdk/utils/viem/executeDelegatedMulticalls.d.ts +0 -28
  148. /package/dist/cjs/plugins/{pools-history → apy}/package.json +0 -0
  149. /package/dist/cjs/plugins/{pools-history → apy}/types.js +0 -0
  150. /package/dist/esm/plugins/{pools-history → apy}/package.json +0 -0
  151. /package/dist/esm/plugins/{pools-history/types.js → apy/pool-apy-types.js} +0 -0
  152. /package/dist/esm/{sdk/market/kyc/securitize → plugins/apy}/types.js +0 -0
@@ -1,122 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var iKYCFactory_exports = {};
20
- __export(iKYCFactory_exports, {
21
- iKYCFactoryAbi: () => iKYCFactoryAbi
22
- });
23
- module.exports = __toCommonJS(iKYCFactory_exports);
24
- const iKYCFactoryAbi = [
25
- {
26
- type: "function",
27
- name: "contractType",
28
- inputs: [],
29
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
30
- stateMutability: "view"
31
- },
32
- {
33
- type: "function",
34
- name: "getCreditAccounts",
35
- inputs: [{ name: "investor", type: "address", internalType: "address" }],
36
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
37
- stateMutability: "view"
38
- },
39
- {
40
- type: "function",
41
- name: "getInvestor",
42
- inputs: [
43
- { name: "creditAccount", type: "address", internalType: "address" }
44
- ],
45
- outputs: [{ name: "", type: "address", internalType: "address" }],
46
- stateMutability: "view"
47
- },
48
- {
49
- type: "function",
50
- name: "getTokens",
51
- inputs: [],
52
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
53
- stateMutability: "view"
54
- },
55
- {
56
- type: "function",
57
- name: "getWallet",
58
- inputs: [
59
- { name: "creditAccount", type: "address", internalType: "address" }
60
- ],
61
- outputs: [{ name: "", type: "address", internalType: "address" }],
62
- stateMutability: "view"
63
- },
64
- {
65
- type: "function",
66
- name: "isCreditAccount",
67
- inputs: [
68
- { name: "creditAccount", type: "address", internalType: "address" }
69
- ],
70
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
71
- stateMutability: "view"
72
- },
73
- {
74
- type: "function",
75
- name: "isFrozen",
76
- inputs: [
77
- { name: "creditAccount", type: "address", internalType: "address" }
78
- ],
79
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
80
- stateMutability: "view"
81
- },
82
- {
83
- type: "function",
84
- name: "serialize",
85
- inputs: [],
86
- outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
87
- stateMutability: "view"
88
- },
89
- {
90
- type: "function",
91
- name: "version",
92
- inputs: [],
93
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
94
- stateMutability: "view"
95
- },
96
- {
97
- type: "error",
98
- name: "CallerIsNotInvestorException",
99
- inputs: [
100
- { name: "caller", type: "address", internalType: "address" },
101
- { name: "creditAccount", type: "address", internalType: "address" }
102
- ]
103
- },
104
- {
105
- type: "error",
106
- name: "FrozenCreditAccountException",
107
- inputs: [
108
- { name: "creditAccount", type: "address", internalType: "address" }
109
- ]
110
- },
111
- {
112
- type: "error",
113
- name: "UnknownCreditAccountException",
114
- inputs: [
115
- { name: "creditAccount", type: "address", internalType: "address" }
116
- ]
117
- }
118
- ];
119
- // Annotate the CommonJS export names for ESM import in node:
120
- 0 && (module.exports = {
121
- iKYCFactoryAbi
122
- });
@@ -1,401 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var iKYCUnderlying_exports = {};
20
- __export(iKYCUnderlying_exports, {
21
- iKYCUnderlyingAbi: () => iKYCUnderlyingAbi
22
- });
23
- module.exports = __toCommonJS(iKYCUnderlying_exports);
24
- const iKYCUnderlyingAbi = [
25
- {
26
- type: "function",
27
- name: "allowance",
28
- inputs: [
29
- { name: "owner", type: "address", internalType: "address" },
30
- { name: "spender", type: "address", internalType: "address" }
31
- ],
32
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
33
- stateMutability: "view"
34
- },
35
- {
36
- type: "function",
37
- name: "approve",
38
- inputs: [
39
- { name: "spender", type: "address", internalType: "address" },
40
- { name: "amount", type: "uint256", internalType: "uint256" }
41
- ],
42
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
43
- stateMutability: "nonpayable"
44
- },
45
- {
46
- type: "function",
47
- name: "asset",
48
- inputs: [],
49
- outputs: [
50
- { name: "assetTokenAddress", type: "address", internalType: "address" }
51
- ],
52
- stateMutability: "view"
53
- },
54
- {
55
- type: "function",
56
- name: "balanceOf",
57
- inputs: [{ name: "account", type: "address", internalType: "address" }],
58
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
59
- stateMutability: "view"
60
- },
61
- {
62
- type: "function",
63
- name: "beforeTokenBorrow",
64
- inputs: [
65
- { name: "creditAccount", type: "address", internalType: "address" },
66
- { name: "underlyingAmount", type: "uint256", internalType: "uint256" }
67
- ],
68
- outputs: [],
69
- stateMutability: "nonpayable"
70
- },
71
- {
72
- type: "function",
73
- name: "contractType",
74
- inputs: [],
75
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
76
- stateMutability: "view"
77
- },
78
- {
79
- type: "function",
80
- name: "convertToAssets",
81
- inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
82
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
83
- stateMutability: "view"
84
- },
85
- {
86
- type: "function",
87
- name: "convertToShares",
88
- inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
89
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
90
- stateMutability: "view"
91
- },
92
- {
93
- type: "function",
94
- name: "decimals",
95
- inputs: [],
96
- outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
97
- stateMutability: "view"
98
- },
99
- {
100
- type: "function",
101
- name: "deposit",
102
- inputs: [
103
- { name: "assets", type: "uint256", internalType: "uint256" },
104
- { name: "receiver", type: "address", internalType: "address" }
105
- ],
106
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
107
- stateMutability: "nonpayable"
108
- },
109
- {
110
- type: "function",
111
- name: "getFactory",
112
- inputs: [],
113
- outputs: [{ name: "", type: "address", internalType: "address" }],
114
- stateMutability: "view"
115
- },
116
- {
117
- type: "function",
118
- name: "maxDeposit",
119
- inputs: [{ name: "receiver", type: "address", internalType: "address" }],
120
- outputs: [{ name: "maxAssets", type: "uint256", internalType: "uint256" }],
121
- stateMutability: "view"
122
- },
123
- {
124
- type: "function",
125
- name: "maxMint",
126
- inputs: [{ name: "receiver", type: "address", internalType: "address" }],
127
- outputs: [{ name: "maxShares", type: "uint256", internalType: "uint256" }],
128
- stateMutability: "view"
129
- },
130
- {
131
- type: "function",
132
- name: "maxRedeem",
133
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
134
- outputs: [{ name: "maxShares", type: "uint256", internalType: "uint256" }],
135
- stateMutability: "view"
136
- },
137
- {
138
- type: "function",
139
- name: "maxWithdraw",
140
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
141
- outputs: [{ name: "maxAssets", type: "uint256", internalType: "uint256" }],
142
- stateMutability: "view"
143
- },
144
- {
145
- type: "function",
146
- name: "mint",
147
- inputs: [
148
- { name: "shares", type: "uint256", internalType: "uint256" },
149
- { name: "receiver", type: "address", internalType: "address" }
150
- ],
151
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
152
- stateMutability: "nonpayable"
153
- },
154
- {
155
- type: "function",
156
- name: "name",
157
- inputs: [],
158
- outputs: [{ name: "", type: "string", internalType: "string" }],
159
- stateMutability: "view"
160
- },
161
- {
162
- type: "function",
163
- name: "previewDeposit",
164
- inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
165
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
166
- stateMutability: "view"
167
- },
168
- {
169
- type: "function",
170
- name: "previewMint",
171
- inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
172
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
173
- stateMutability: "view"
174
- },
175
- {
176
- type: "function",
177
- name: "previewRedeem",
178
- inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
179
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
180
- stateMutability: "view"
181
- },
182
- {
183
- type: "function",
184
- name: "previewWithdraw",
185
- inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
186
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
187
- stateMutability: "view"
188
- },
189
- {
190
- type: "function",
191
- name: "redeem",
192
- inputs: [
193
- { name: "shares", type: "uint256", internalType: "uint256" },
194
- { name: "receiver", type: "address", internalType: "address" },
195
- { name: "owner", type: "address", internalType: "address" }
196
- ],
197
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
198
- stateMutability: "nonpayable"
199
- },
200
- {
201
- type: "function",
202
- name: "serialize",
203
- inputs: [],
204
- outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
205
- stateMutability: "view"
206
- },
207
- {
208
- type: "function",
209
- name: "symbol",
210
- inputs: [],
211
- outputs: [{ name: "", type: "string", internalType: "string" }],
212
- stateMutability: "view"
213
- },
214
- {
215
- type: "function",
216
- name: "totalAssets",
217
- inputs: [],
218
- outputs: [
219
- { name: "totalManagedAssets", type: "uint256", internalType: "uint256" }
220
- ],
221
- stateMutability: "view"
222
- },
223
- {
224
- type: "function",
225
- name: "totalSupply",
226
- inputs: [],
227
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
228
- stateMutability: "view"
229
- },
230
- {
231
- type: "function",
232
- name: "transfer",
233
- inputs: [
234
- { name: "to", type: "address", internalType: "address" },
235
- { name: "amount", type: "uint256", internalType: "uint256" }
236
- ],
237
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
238
- stateMutability: "nonpayable"
239
- },
240
- {
241
- type: "function",
242
- name: "transferFrom",
243
- inputs: [
244
- { name: "from", type: "address", internalType: "address" },
245
- { name: "to", type: "address", internalType: "address" },
246
- { name: "amount", type: "uint256", internalType: "uint256" }
247
- ],
248
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
249
- stateMutability: "nonpayable"
250
- },
251
- {
252
- type: "function",
253
- name: "version",
254
- inputs: [],
255
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
256
- stateMutability: "view"
257
- },
258
- {
259
- type: "function",
260
- name: "withdraw",
261
- inputs: [
262
- { name: "assets", type: "uint256", internalType: "uint256" },
263
- { name: "receiver", type: "address", internalType: "address" },
264
- { name: "owner", type: "address", internalType: "address" }
265
- ],
266
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
267
- stateMutability: "nonpayable"
268
- },
269
- {
270
- type: "event",
271
- name: "Approval",
272
- inputs: [
273
- {
274
- name: "owner",
275
- type: "address",
276
- indexed: true,
277
- internalType: "address"
278
- },
279
- {
280
- name: "spender",
281
- type: "address",
282
- indexed: true,
283
- internalType: "address"
284
- },
285
- {
286
- name: "value",
287
- type: "uint256",
288
- indexed: false,
289
- internalType: "uint256"
290
- }
291
- ],
292
- anonymous: false
293
- },
294
- {
295
- type: "event",
296
- name: "Deposit",
297
- inputs: [
298
- {
299
- name: "sender",
300
- type: "address",
301
- indexed: true,
302
- internalType: "address"
303
- },
304
- {
305
- name: "owner",
306
- type: "address",
307
- indexed: true,
308
- internalType: "address"
309
- },
310
- {
311
- name: "assets",
312
- type: "uint256",
313
- indexed: false,
314
- internalType: "uint256"
315
- },
316
- {
317
- name: "shares",
318
- type: "uint256",
319
- indexed: false,
320
- internalType: "uint256"
321
- }
322
- ],
323
- anonymous: false
324
- },
325
- {
326
- type: "event",
327
- name: "Transfer",
328
- inputs: [
329
- { name: "from", type: "address", indexed: true, internalType: "address" },
330
- { name: "to", type: "address", indexed: true, internalType: "address" },
331
- {
332
- name: "value",
333
- type: "uint256",
334
- indexed: false,
335
- internalType: "uint256"
336
- }
337
- ],
338
- anonymous: false
339
- },
340
- {
341
- type: "event",
342
- name: "Withdraw",
343
- inputs: [
344
- {
345
- name: "sender",
346
- type: "address",
347
- indexed: true,
348
- internalType: "address"
349
- },
350
- {
351
- name: "receiver",
352
- type: "address",
353
- indexed: true,
354
- internalType: "address"
355
- },
356
- {
357
- name: "owner",
358
- type: "address",
359
- indexed: true,
360
- internalType: "address"
361
- },
362
- {
363
- name: "assets",
364
- type: "uint256",
365
- indexed: false,
366
- internalType: "uint256"
367
- },
368
- {
369
- name: "shares",
370
- type: "uint256",
371
- indexed: false,
372
- internalType: "uint256"
373
- }
374
- ],
375
- anonymous: false
376
- },
377
- {
378
- type: "error",
379
- name: "CallerIsNotWalletException",
380
- inputs: [
381
- { name: "caller", type: "address", internalType: "address" },
382
- { name: "creditAccount", type: "address", internalType: "address" }
383
- ]
384
- },
385
- {
386
- type: "error",
387
- name: "FrozenCreditAccountException",
388
- inputs: [
389
- { name: "creditAccount", type: "address", internalType: "address" }
390
- ]
391
- },
392
- {
393
- type: "error",
394
- name: "InvalidKYCFactoryException",
395
- inputs: [{ name: "factory", type: "address", internalType: "address" }]
396
- }
397
- ];
398
- // Annotate the CommonJS export names for ESM import in node:
399
- 0 && (module.exports = {
400
- iKYCUnderlyingAbi
401
- });