@gearbox-protocol/sdk 14.7.0 → 14.8.0-next.2

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 (109) hide show
  1. package/dist/cjs/abi/compressors/{kycCompressor.js → rwaCompressor.js} +13 -13
  2. package/dist/cjs/abi/compressors/subcompressors/{kyc/onDemandKYCUnderlyingSubcompressor.js → rwa/onDemandRWAUnderlyingSubcompressor.js} +6 -6
  3. package/dist/cjs/abi/compressors/subcompressors/{kyc/securitizeKYCFactorySubcompressor.js → rwa/securitizeRWAFactorySubcompressor.js} +6 -6
  4. package/dist/cjs/abi/{kyc/iKYCCompressor.js → rwa/iRWACompressor.js} +13 -13
  5. package/dist/cjs/abi/{kyc/iKYCFactory.js → rwa/iRWAFactory.js} +6 -6
  6. package/dist/cjs/abi/{kyc/iKYCUnderlying.js → rwa/iRWAUnderlying.js} +7 -7
  7. package/dist/cjs/abi/{kyc/iSecuritizeKYCFactory.js → rwa/iSecuritizeRWAFactory.js} +7 -7
  8. package/dist/cjs/dev/claimDSToken.js +4 -4
  9. package/dist/cjs/plugins/adapters/abi/index.js +2 -0
  10. package/dist/cjs/plugins/adapters/abi/securitize/index.js +30 -0
  11. package/dist/cjs/sdk/OnchainSDK.js +12 -12
  12. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +59 -59
  13. package/dist/cjs/sdk/base/TokensMeta.js +6 -6
  14. package/dist/cjs/sdk/base/token-types.js +11 -11
  15. package/dist/cjs/sdk/chain/chains.js +16 -16
  16. package/dist/cjs/sdk/constants/address-provider.js +3 -3
  17. package/dist/cjs/sdk/market/MarketSuite.js +2 -2
  18. package/dist/cjs/sdk/market/index.js +2 -2
  19. package/dist/cjs/sdk/market/pool/PoolSuite.js +2 -2
  20. package/dist/cjs/sdk/market/pool/PoolV310Contract.js +3 -3
  21. package/dist/cjs/sdk/market/{kyc/KYCRegistry.js → rwa/RWARegistry.js} +48 -48
  22. package/dist/cjs/sdk/market/{kyc → rwa}/index.js +6 -6
  23. package/dist/cjs/sdk/market/{kyc → rwa}/securitize/SecuritizeDegenNFT.js +1 -1
  24. package/dist/cjs/sdk/market/{kyc/securitize/SecuritizeKYCFactory.js → rwa/securitize/SecuritizeRWAFactory.js} +20 -20
  25. package/dist/cjs/sdk/market/{kyc → rwa}/securitize/constants.js +3 -3
  26. package/dist/cjs/sdk/market/{kyc → rwa}/securitize/index.js +2 -2
  27. package/dist/cjs/sdk/market/{kyc → rwa}/types.js +6 -6
  28. package/dist/cjs/sdk/options.js +4 -4
  29. package/dist/cjs/sdk/pools/PoolService.js +26 -26
  30. package/dist/esm/abi/compressors/{kycCompressor.js → rwaCompressor.js} +9 -9
  31. package/dist/esm/abi/compressors/subcompressors/{kyc/onDemandKYCUnderlyingSubcompressor.js → rwa/onDemandRWAUnderlyingSubcompressor.js} +2 -2
  32. package/dist/esm/abi/compressors/subcompressors/{kyc/securitizeKYCFactorySubcompressor.js → rwa/securitizeRWAFactorySubcompressor.js} +2 -2
  33. package/dist/esm/abi/{kyc/iKYCCompressor.js → rwa/iRWACompressor.js} +9 -9
  34. package/dist/esm/abi/{kyc/iKYCFactory.js → rwa/iRWAFactory.js} +2 -2
  35. package/dist/esm/abi/{kyc/iKYCUnderlying.js → rwa/iRWAUnderlying.js} +3 -3
  36. package/dist/esm/abi/{kyc/iSecuritizeKYCFactory.js → rwa/iSecuritizeRWAFactory.js} +3 -3
  37. package/dist/esm/dev/claimDSToken.js +4 -4
  38. package/dist/esm/plugins/adapters/abi/index.js +1 -0
  39. package/dist/esm/plugins/adapters/abi/securitize/index.js +5 -0
  40. package/dist/esm/sdk/OnchainSDK.js +13 -13
  41. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +59 -59
  42. package/dist/esm/sdk/base/TokensMeta.js +6 -6
  43. package/dist/esm/sdk/base/token-types.js +7 -7
  44. package/dist/esm/sdk/chain/chains.js +16 -16
  45. package/dist/esm/sdk/constants/address-provider.js +2 -2
  46. package/dist/esm/sdk/market/MarketSuite.js +2 -2
  47. package/dist/esm/sdk/market/index.js +1 -1
  48. package/dist/esm/sdk/market/pool/PoolSuite.js +2 -2
  49. package/dist/esm/sdk/market/pool/PoolV310Contract.js +3 -3
  50. package/dist/esm/sdk/market/{kyc/KYCRegistry.js → rwa/RWARegistry.js} +50 -50
  51. package/dist/esm/sdk/market/{kyc → rwa}/index.js +1 -1
  52. package/dist/esm/sdk/market/{kyc → rwa}/securitize/SecuritizeDegenNFT.js +1 -1
  53. package/dist/esm/sdk/market/{kyc/securitize/SecuritizeKYCFactory.js → rwa/securitize/SecuritizeRWAFactory.js} +17 -17
  54. package/dist/esm/sdk/market/rwa/securitize/constants.js +4 -0
  55. package/dist/esm/sdk/market/{kyc → rwa}/securitize/index.js +1 -1
  56. package/dist/esm/sdk/market/rwa/types.js +9 -0
  57. package/dist/esm/sdk/options.js +4 -4
  58. package/dist/esm/sdk/pools/PoolService.js +28 -28
  59. package/dist/types/abi/compressors/{kycCompressor.d.ts → rwaCompressor.d.ts} +8 -8
  60. package/dist/types/abi/compressors/subcompressors/{kyc/onDemandKYCUnderlyingSubcompressor.d.ts → rwa/onDemandRWAUnderlyingSubcompressor.d.ts} +1 -1
  61. package/dist/types/abi/compressors/subcompressors/{kyc/securitizeKYCFactorySubcompressor.d.ts → rwa/securitizeRWAFactorySubcompressor.d.ts} +1 -1
  62. package/dist/types/abi/{kyc/iKYCCompressor.d.ts → rwa/iRWACompressor.d.ts} +8 -8
  63. package/dist/types/abi/{kyc/iKYCFactory.d.ts → rwa/iRWAFactory.d.ts} +1 -1
  64. package/dist/types/abi/{kyc/iKYCUnderlying.d.ts → rwa/iRWAUnderlying.d.ts} +2 -2
  65. package/dist/types/abi/{kyc/iSecuritizeKYCFactory.d.ts → rwa/iSecuritizeRWAFactory.d.ts} +2 -2
  66. package/dist/types/dev/claimDSToken.d.ts +1 -1
  67. package/dist/types/plugins/adapters/abi/index.d.ts +1 -0
  68. package/dist/types/plugins/adapters/abi/securitize/index.d.ts +5 -0
  69. package/dist/types/sdk/OnchainSDK.d.ts +5 -5
  70. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +19 -19
  71. package/dist/types/sdk/accounts/types.d.ts +26 -26
  72. package/dist/types/sdk/base/TokensMeta.d.ts +5 -5
  73. package/dist/types/sdk/base/token-types.d.ts +17 -17
  74. package/dist/types/sdk/base/types.d.ts +2 -2
  75. package/dist/types/sdk/chain/chains.d.ts +2 -2
  76. package/dist/types/sdk/constants/address-provider.d.ts +1 -1
  77. package/dist/types/sdk/market/MarketSuite.d.ts +2 -2
  78. package/dist/types/sdk/market/index.d.ts +1 -1
  79. package/dist/types/sdk/market/pool/PoolSuite.d.ts +2 -2
  80. package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +2 -2
  81. package/dist/types/sdk/market/rwa/RWARegistry.d.ts +52 -0
  82. package/dist/types/sdk/market/{kyc → rwa}/index.d.ts +1 -1
  83. package/dist/types/sdk/market/{kyc/securitize/SecuritizeKYCFactory.d.ts → rwa/securitize/SecuritizeRWAFactory.d.ts} +16 -16
  84. package/dist/types/sdk/market/rwa/securitize/constants.d.ts +1 -0
  85. package/dist/types/sdk/market/{kyc → rwa}/securitize/index.d.ts +1 -1
  86. package/dist/types/sdk/market/{kyc → rwa}/securitize/types.d.ts +12 -12
  87. package/dist/types/sdk/market/{kyc → rwa}/types.d.ts +48 -48
  88. package/dist/types/sdk/market/types.d.ts +1 -1
  89. package/dist/types/sdk/options.d.ts +1 -1
  90. package/dist/types/sdk/pools/types.d.ts +4 -4
  91. package/dist/types/sdk/types/state-human.d.ts +2 -2
  92. package/dist/types/sdk/types/state.d.ts +3 -3
  93. package/package.json +1 -1
  94. package/dist/esm/sdk/market/kyc/securitize/constants.js +0 -4
  95. package/dist/esm/sdk/market/kyc/types.js +0 -9
  96. package/dist/types/sdk/market/kyc/KYCRegistry.d.ts +0 -52
  97. package/dist/types/sdk/market/kyc/securitize/constants.d.ts +0 -1
  98. /package/dist/cjs/abi/{kyc → rwa}/iDSRegistryService.js +0 -0
  99. /package/dist/cjs/abi/{kyc → rwa}/iDSToken.js +0 -0
  100. /package/dist/cjs/abi/{kyc → rwa}/iSecuritizeDegenNFT.js +0 -0
  101. /package/dist/cjs/sdk/market/{kyc → rwa}/securitize/types.js +0 -0
  102. /package/dist/esm/abi/{kyc → rwa}/iDSRegistryService.js +0 -0
  103. /package/dist/esm/abi/{kyc → rwa}/iDSToken.js +0 -0
  104. /package/dist/esm/abi/{kyc → rwa}/iSecuritizeDegenNFT.js +0 -0
  105. /package/dist/esm/sdk/market/{kyc → rwa}/securitize/types.js +0 -0
  106. /package/dist/types/abi/{kyc → rwa}/iDSRegistryService.d.ts +0 -0
  107. /package/dist/types/abi/{kyc → rwa}/iDSToken.d.ts +0 -0
  108. /package/dist/types/abi/{kyc → rwa}/iSecuritizeDegenNFT.d.ts +0 -0
  109. /package/dist/types/sdk/market/{kyc → rwa}/securitize/SecuritizeDegenNFT.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- const kycCompressorAbi = [
1
+ const rwaCompressorAbi = [
2
2
  {
3
3
  type: "constructor",
4
4
  inputs: [
@@ -19,7 +19,7 @@ const kycCompressorAbi = [
19
19
  },
20
20
  {
21
21
  type: "function",
22
- name: "getKYCInvestorData",
22
+ name: "getRWAInvestorData",
23
23
  inputs: [
24
24
  { name: "investor", type: "address", internalType: "address" },
25
25
  { name: "factories", type: "address[]", internalType: "address[]" }
@@ -28,12 +28,12 @@ const kycCompressorAbi = [
28
28
  {
29
29
  name: "investorData",
30
30
  type: "tuple[]",
31
- internalType: "struct IKYCCompressor.KYCInvestorData[]",
31
+ internalType: "struct IRWACompressor.RWAInvestorData[]",
32
32
  components: [
33
33
  {
34
34
  name: "creditAccounts",
35
35
  type: "tuple[]",
36
- internalType: "struct IKYCCompressor.KYCCreditAccountData[]",
36
+ internalType: "struct IRWACompressor.RWACreditAccountData[]",
37
37
  components: [
38
38
  {
39
39
  name: "creditAccount",
@@ -53,7 +53,7 @@ const kycCompressorAbi = [
53
53
  },
54
54
  {
55
55
  type: "function",
56
- name: "getKYCMarketsData",
56
+ name: "getRWAMarketsData",
57
57
  inputs: [
58
58
  { name: "configurators", type: "address[]", internalType: "address[]" },
59
59
  { name: "factories", type: "address[]", internalType: "address[]" }
@@ -62,7 +62,7 @@ const kycCompressorAbi = [
62
62
  {
63
63
  name: "underlyingsData",
64
64
  type: "tuple[]",
65
- internalType: "struct IKYCCompressor.KYCUnderlyingData[]",
65
+ internalType: "struct IRWACompressor.RWAUnderlyingData[]",
66
66
  components: [
67
67
  {
68
68
  name: "baseParams",
@@ -91,7 +91,7 @@ const kycCompressorAbi = [
91
91
  {
92
92
  name: "factoriesData",
93
93
  type: "tuple[]",
94
- internalType: "struct IKYCCompressor.KYCFactoryData[]",
94
+ internalType: "struct IRWACompressor.RWAFactoryData[]",
95
95
  components: [
96
96
  {
97
97
  name: "baseParams",
@@ -167,7 +167,7 @@ const kycCompressorAbi = [
167
167
  },
168
168
  {
169
169
  type: "error",
170
- name: "InvalidKYCFactoryException",
170
+ name: "InvalidRWAFactoryException",
171
171
  inputs: [{ name: "factory", type: "address", internalType: "address" }]
172
172
  },
173
173
  {
@@ -179,5 +179,5 @@ const kycCompressorAbi = [
179
179
  }
180
180
  ];
181
181
  export {
182
- kycCompressorAbi
182
+ rwaCompressorAbi
183
183
  };
@@ -1,4 +1,4 @@
1
- const onDemandKYCUnderlyingSubcompressorAbi = [
1
+ const onDemandRWAUnderlyingSubcompressorAbi = [
2
2
  {
3
3
  type: "function",
4
4
  name: "contractType",
@@ -32,5 +32,5 @@ const onDemandKYCUnderlyingSubcompressorAbi = [
32
32
  }
33
33
  ];
34
34
  export {
35
- onDemandKYCUnderlyingSubcompressorAbi
35
+ onDemandRWAUnderlyingSubcompressorAbi
36
36
  };
@@ -1,4 +1,4 @@
1
- const securitizeKYCFactorySubcompressorAbi = [
1
+ const securitizeRWAFactorySubcompressorAbi = [
2
2
  {
3
3
  type: "function",
4
4
  name: "contractType",
@@ -52,5 +52,5 @@ const securitizeKYCFactorySubcompressorAbi = [
52
52
  }
53
53
  ];
54
54
  export {
55
- securitizeKYCFactorySubcompressorAbi
55
+ securitizeRWAFactorySubcompressorAbi
56
56
  };
@@ -1,4 +1,4 @@
1
- const iKYCCompressorAbi = [
1
+ const iRWACompressorAbi = [
2
2
  {
3
3
  type: "function",
4
4
  name: "contractType",
@@ -8,7 +8,7 @@ const iKYCCompressorAbi = [
8
8
  },
9
9
  {
10
10
  type: "function",
11
- name: "getKYCInvestorData",
11
+ name: "getRWAInvestorData",
12
12
  inputs: [
13
13
  { name: "investor", type: "address", internalType: "address" },
14
14
  { name: "factories", type: "address[]", internalType: "address[]" }
@@ -17,12 +17,12 @@ const iKYCCompressorAbi = [
17
17
  {
18
18
  name: "",
19
19
  type: "tuple[]",
20
- internalType: "struct IKYCCompressor.KYCInvestorData[]",
20
+ internalType: "struct IRWACompressor.RWAInvestorData[]",
21
21
  components: [
22
22
  {
23
23
  name: "creditAccounts",
24
24
  type: "tuple[]",
25
- internalType: "struct IKYCCompressor.KYCCreditAccountData[]",
25
+ internalType: "struct IRWACompressor.RWACreditAccountData[]",
26
26
  components: [
27
27
  {
28
28
  name: "creditAccount",
@@ -42,7 +42,7 @@ const iKYCCompressorAbi = [
42
42
  },
43
43
  {
44
44
  type: "function",
45
- name: "getKYCMarketsData",
45
+ name: "getRWAMarketsData",
46
46
  inputs: [
47
47
  { name: "configurators", type: "address[]", internalType: "address[]" },
48
48
  { name: "factories", type: "address[]", internalType: "address[]" }
@@ -51,7 +51,7 @@ const iKYCCompressorAbi = [
51
51
  {
52
52
  name: "",
53
53
  type: "tuple[]",
54
- internalType: "struct IKYCCompressor.KYCUnderlyingData[]",
54
+ internalType: "struct IRWACompressor.RWAUnderlyingData[]",
55
55
  components: [
56
56
  {
57
57
  name: "baseParams",
@@ -80,7 +80,7 @@ const iKYCCompressorAbi = [
80
80
  {
81
81
  name: "",
82
82
  type: "tuple[]",
83
- internalType: "struct IKYCCompressor.KYCFactoryData[]",
83
+ internalType: "struct IRWACompressor.RWAFactoryData[]",
84
84
  components: [
85
85
  {
86
86
  name: "baseParams",
@@ -156,7 +156,7 @@ const iKYCCompressorAbi = [
156
156
  },
157
157
  {
158
158
  type: "error",
159
- name: "InvalidKYCFactoryException",
159
+ name: "InvalidRWAFactoryException",
160
160
  inputs: [{ name: "factory", type: "address", internalType: "address" }]
161
161
  },
162
162
  {
@@ -168,5 +168,5 @@ const iKYCCompressorAbi = [
168
168
  }
169
169
  ];
170
170
  export {
171
- iKYCCompressorAbi
171
+ iRWACompressorAbi
172
172
  };
@@ -1,4 +1,4 @@
1
- const iKYCFactoryAbi = [
1
+ const iRWAFactoryAbi = [
2
2
  {
3
3
  type: "function",
4
4
  name: "contractType",
@@ -94,5 +94,5 @@ const iKYCFactoryAbi = [
94
94
  }
95
95
  ];
96
96
  export {
97
- iKYCFactoryAbi
97
+ iRWAFactoryAbi
98
98
  };
@@ -1,4 +1,4 @@
1
- const iKYCUnderlyingAbi = [
1
+ const iRWAUnderlyingAbi = [
2
2
  {
3
3
  type: "function",
4
4
  name: "allowance",
@@ -368,10 +368,10 @@ const iKYCUnderlyingAbi = [
368
368
  },
369
369
  {
370
370
  type: "error",
371
- name: "InvalidKYCFactoryException",
371
+ name: "InvalidRWAFactoryException",
372
372
  inputs: [{ name: "factory", type: "address", internalType: "address" }]
373
373
  }
374
374
  ];
375
375
  export {
376
- iKYCUnderlyingAbi
376
+ iRWAUnderlyingAbi
377
377
  };
@@ -1,4 +1,4 @@
1
- const iSecuritizeKYCFactoryAbi = [
1
+ const iSecuritizeRWAFactoryAbi = [
2
2
  {
3
3
  type: "function",
4
4
  name: "contractType",
@@ -234,7 +234,7 @@ const iSecuritizeKYCFactoryAbi = [
234
234
  },
235
235
  {
236
236
  type: "event",
237
- name: "OpenKYCCreditAccount",
237
+ name: "OpenRWACreditAccount",
238
238
  inputs: [
239
239
  {
240
240
  name: "creditAccount",
@@ -338,5 +338,5 @@ const iSecuritizeKYCFactoryAbi = [
338
338
  { type: "error", name: "ZeroAddressException", inputs: [] }
339
339
  ];
340
340
  export {
341
- iSecuritizeKYCFactoryAbi
341
+ iSecuritizeRWAFactoryAbi
342
342
  };
@@ -2,8 +2,8 @@ import {
2
2
  erc20Abi
3
3
  } from "viem";
4
4
  import { privateKeyToAccount } from "viem/accounts";
5
- import { iDSRegistryServiceAbi } from "../abi/kyc/iDSRegistryService.js";
6
- import { iDSTokenAbi } from "../abi/kyc/iDSToken.js";
5
+ import { iDSRegistryServiceAbi } from "../abi/rwa/iDSRegistryService.js";
6
+ import { iDSTokenAbi } from "../abi/rwa/iDSToken.js";
7
7
  import {
8
8
  MAX_UINT256,
9
9
  OnchainSDK
@@ -125,7 +125,7 @@ async function claimDSToken(props) {
125
125
  adminPrivateKey,
126
126
  token,
127
127
  marketConfigurators,
128
- kycFactories,
128
+ rwaFactories,
129
129
  usdAmount: usdAmountProp = "100000"
130
130
  } = props;
131
131
  const account = privateKeyToAccount(adminPrivateKey);
@@ -141,7 +141,7 @@ async function claimDSToken(props) {
141
141
  client: anvil,
142
142
  timeout: 12e4
143
143
  });
144
- await sdk.attach({ marketConfigurators, kycFactories });
144
+ await sdk.attach({ marketConfigurators, rwaFactories });
145
145
  let amount = 0n;
146
146
  for (const market of sdk.marketRegister.markets) {
147
147
  try {
@@ -1,4 +1,5 @@
1
1
  export * from "./actionAbi.js";
2
2
  export * from "./conctructorAbi.js";
3
+ export * from "./securitize/index.js";
3
4
  export * from "./targetContractAbi.js";
4
5
  export * from "./utils.js";
@@ -0,0 +1,5 @@
1
+ export * from "./iBaseOnRamp.js";
2
+ export * from "./iSecuritizeOnRamp.js";
3
+ export * from "./iSecuritizeOnRampAdapter.js";
4
+ export * from "./iSecuritizeRedemptionGateway.js";
5
+ export * from "./iSecuritizeRedemptionGatewayAdapter.js";
@@ -25,7 +25,7 @@ import {
25
25
  SdkNotAttachedError,
26
26
  SdkStateVersionMismatchError
27
27
  } from "./core/index.js";
28
- import { KYCRegistry } from "./market/index.js";
28
+ import { RWARegistry } from "./market/index.js";
29
29
  import { MarketRegister } from "./market/MarketRegister.js";
30
30
  import { PriceFeedRegister } from "./market/pricefeeds/index.js";
31
31
  import { PluginStateVersionError } from "./plugins/index.js";
@@ -63,7 +63,7 @@ class OnchainSDK extends ChainContractsRegister {
63
63
  #syncing = false;
64
64
  #attached = false;
65
65
  #addressProvider;
66
- #kyc;
66
+ #rwa;
67
67
  #marketRegister;
68
68
  #priceFeeds;
69
69
  /**
@@ -99,7 +99,7 @@ class OnchainSDK extends ChainContractsRegister {
99
99
  super(client, options?.logger);
100
100
  this.strictContractTypes = options?.strictContractTypes ?? false;
101
101
  this.plugins = options?.plugins ?? {};
102
- this.#kyc = new KYCRegistry(this);
102
+ this.#rwa = new RWARegistry(this);
103
103
  for (const plugin of Object.values(this.plugins)) {
104
104
  plugin.sdk = this;
105
105
  }
@@ -131,7 +131,7 @@ class OnchainSDK extends ChainContractsRegister {
131
131
  const marketConfigurators = mcs ?? TypedObjectUtils.keys(
132
132
  this.client.chain.defaultMarketConfigurators
133
133
  );
134
- const kycFactories = options?.kycFactories ?? this.client.chain.kycFactories;
134
+ const rwaFactories = options?.rwaFactories ?? this.client.chain.rwaFactories;
135
135
  this.logger?.info(
136
136
  {
137
137
  networkType: this.networkType,
@@ -176,7 +176,7 @@ class OnchainSDK extends ChainContractsRegister {
176
176
  } else {
177
177
  const delegated = [
178
178
  ...this.#marketRegister.getLoadMulticalls(marketConfigurators),
179
- ...this.#kyc.getLoadMulticalls(marketConfigurators, kycFactories)
179
+ ...this.#rwa.getLoadMulticalls(marketConfigurators, rwaFactories)
180
180
  ];
181
181
  let txs = [];
182
182
  if (!ignoreUpdateablePrices) {
@@ -248,8 +248,8 @@ class OnchainSDK extends ChainContractsRegister {
248
248
  );
249
249
  this.#marketRegister = new MarketRegister(this, ignoreMarkets);
250
250
  this.#marketRegister.hydrate(state.markets);
251
- this.#kyc = new KYCRegistry(this);
252
- this.#kyc.setState(state.kyc);
251
+ this.#rwa = new RWARegistry(this);
252
+ this.#rwa.setState(state.rwa);
253
253
  for (const [name, plugin] of TypedObjectUtils.entries(this.plugins)) {
254
254
  const pluginState = state.plugins[name];
255
255
  if (plugin.hydrate && pluginState) {
@@ -293,7 +293,7 @@ class OnchainSDK extends ChainContractsRegister {
293
293
  addressProviderV3: this.addressProvider.stateHuman(raw)
294
294
  },
295
295
  tokens: this.tokensMeta.values(),
296
- kyc: this.#kyc.stateHuman(raw),
296
+ rwa: this.#rwa.stateHuman(raw),
297
297
  plugins: Object.fromEntries(
298
298
  TypedObjectUtils.entries(this.plugins).map(([name, plugin]) => [
299
299
  name,
@@ -313,7 +313,7 @@ class OnchainSDK extends ChainContractsRegister {
313
313
  timestamp: this.timestamp,
314
314
  addressProvider: this.addressProvider.state,
315
315
  markets: this.marketRegister.state,
316
- kyc: this.#kyc.state,
316
+ rwa: this.#rwa.state,
317
317
  plugins: Object.fromEntries(
318
318
  TypedObjectUtils.entries(this.plugins).map(([name, plugin]) => [
319
319
  name,
@@ -481,15 +481,15 @@ class OnchainSDK extends ChainContractsRegister {
481
481
  return this.#marketRegister;
482
482
  }
483
483
  /**
484
- * KYC register for KYC-wrapped underlying tokens and factories.
484
+ * RWA register for RWA-wrapped underlying tokens and factories.
485
485
  *
486
486
  * @throws If the SDK has not been attached or hydrated yet.
487
487
  **/
488
- get kyc() {
489
- if (this.#kyc === void 0) {
488
+ get rwa() {
489
+ if (this.#rwa === void 0) {
490
490
  throw new SdkNotAttachedError();
491
491
  }
492
- return this.#kyc;
492
+ return this.#rwa;
493
493
  }
494
494
  /**
495
495
  * @internal