@gearbox-protocol/sdk 14.7.0-next.3 → 14.8.0-next.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.
- package/dist/cjs/abi/compressors/{kycCompressor.js → rwaCompressor.js} +13 -13
- package/dist/cjs/abi/compressors/subcompressors/{kyc/onDemandKYCUnderlyingSubcompressor.js → rwa/onDemandRWAUnderlyingSubcompressor.js} +6 -6
- package/dist/cjs/abi/compressors/subcompressors/{kyc/securitizeKYCFactorySubcompressor.js → rwa/securitizeRWAFactorySubcompressor.js} +6 -6
- package/dist/cjs/abi/{kyc/iKYCCompressor.js → rwa/iRWACompressor.js} +13 -13
- package/dist/cjs/abi/{kyc/iKYCFactory.js → rwa/iRWAFactory.js} +6 -6
- package/dist/cjs/abi/{kyc/iKYCUnderlying.js → rwa/iRWAUnderlying.js} +7 -7
- package/dist/cjs/abi/{kyc/iSecuritizeKYCFactory.js → rwa/iSecuritizeRWAFactory.js} +7 -7
- package/dist/cjs/dev/claimDSToken.js +4 -4
- package/dist/cjs/sdk/OnchainSDK.js +12 -12
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +59 -59
- package/dist/cjs/sdk/base/TokensMeta.js +6 -6
- package/dist/cjs/sdk/base/token-types.js +11 -11
- package/dist/cjs/sdk/chain/chains.js +16 -16
- package/dist/cjs/sdk/constants/address-provider.js +3 -3
- package/dist/cjs/sdk/market/MarketSuite.js +2 -2
- package/dist/cjs/sdk/market/index.js +2 -2
- package/dist/cjs/sdk/market/pool/PoolSuite.js +2 -2
- package/dist/cjs/sdk/market/pool/PoolV310Contract.js +3 -3
- package/dist/cjs/sdk/market/{kyc/KYCRegistry.js → rwa/RWARegistry.js} +48 -48
- package/dist/cjs/sdk/market/{kyc → rwa}/index.js +6 -6
- package/dist/cjs/sdk/market/{kyc → rwa}/securitize/SecuritizeDegenNFT.js +1 -1
- package/dist/cjs/sdk/market/{kyc/securitize/SecuritizeKYCFactory.js → rwa/securitize/SecuritizeRWAFactory.js} +20 -20
- package/dist/cjs/sdk/market/{kyc → rwa}/securitize/constants.js +3 -3
- package/dist/cjs/sdk/market/{kyc → rwa}/securitize/index.js +2 -2
- package/dist/cjs/sdk/market/{kyc → rwa}/types.js +6 -6
- package/dist/cjs/sdk/options.js +4 -4
- package/dist/cjs/sdk/pools/PoolService.js +26 -26
- package/dist/esm/abi/compressors/{kycCompressor.js → rwaCompressor.js} +9 -9
- package/dist/esm/abi/compressors/subcompressors/{kyc/onDemandKYCUnderlyingSubcompressor.js → rwa/onDemandRWAUnderlyingSubcompressor.js} +2 -2
- package/dist/esm/abi/compressors/subcompressors/{kyc/securitizeKYCFactorySubcompressor.js → rwa/securitizeRWAFactorySubcompressor.js} +2 -2
- package/dist/esm/abi/{kyc/iKYCCompressor.js → rwa/iRWACompressor.js} +9 -9
- package/dist/esm/abi/{kyc/iKYCFactory.js → rwa/iRWAFactory.js} +2 -2
- package/dist/esm/abi/{kyc/iKYCUnderlying.js → rwa/iRWAUnderlying.js} +3 -3
- package/dist/esm/abi/{kyc/iSecuritizeKYCFactory.js → rwa/iSecuritizeRWAFactory.js} +3 -3
- package/dist/esm/dev/claimDSToken.js +4 -4
- package/dist/esm/sdk/OnchainSDK.js +13 -13
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +59 -59
- package/dist/esm/sdk/base/TokensMeta.js +6 -6
- package/dist/esm/sdk/base/token-types.js +7 -7
- package/dist/esm/sdk/chain/chains.js +16 -16
- package/dist/esm/sdk/constants/address-provider.js +2 -2
- package/dist/esm/sdk/market/MarketSuite.js +2 -2
- package/dist/esm/sdk/market/index.js +1 -1
- package/dist/esm/sdk/market/pool/PoolSuite.js +2 -2
- package/dist/esm/sdk/market/pool/PoolV310Contract.js +3 -3
- package/dist/esm/sdk/market/{kyc/KYCRegistry.js → rwa/RWARegistry.js} +50 -50
- package/dist/esm/sdk/market/{kyc → rwa}/index.js +1 -1
- package/dist/esm/sdk/market/{kyc → rwa}/securitize/SecuritizeDegenNFT.js +1 -1
- package/dist/esm/sdk/market/{kyc/securitize/SecuritizeKYCFactory.js → rwa/securitize/SecuritizeRWAFactory.js} +17 -17
- package/dist/esm/sdk/market/rwa/securitize/constants.js +4 -0
- package/dist/esm/sdk/market/{kyc → rwa}/securitize/index.js +1 -1
- package/dist/esm/sdk/market/rwa/types.js +9 -0
- package/dist/esm/sdk/options.js +4 -4
- package/dist/esm/sdk/pools/PoolService.js +28 -28
- package/dist/types/abi/compressors/{kycCompressor.d.ts → rwaCompressor.d.ts} +8 -8
- package/dist/types/abi/compressors/subcompressors/{kyc/onDemandKYCUnderlyingSubcompressor.d.ts → rwa/onDemandRWAUnderlyingSubcompressor.d.ts} +1 -1
- package/dist/types/abi/compressors/subcompressors/{kyc/securitizeKYCFactorySubcompressor.d.ts → rwa/securitizeRWAFactorySubcompressor.d.ts} +1 -1
- package/dist/types/abi/{kyc/iKYCCompressor.d.ts → rwa/iRWACompressor.d.ts} +8 -8
- package/dist/types/abi/{kyc/iKYCFactory.d.ts → rwa/iRWAFactory.d.ts} +1 -1
- package/dist/types/abi/{kyc/iKYCUnderlying.d.ts → rwa/iRWAUnderlying.d.ts} +2 -2
- package/dist/types/abi/{kyc/iSecuritizeKYCFactory.d.ts → rwa/iSecuritizeRWAFactory.d.ts} +2 -2
- package/dist/types/dev/claimDSToken.d.ts +1 -1
- package/dist/types/sdk/OnchainSDK.d.ts +5 -5
- package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +19 -19
- package/dist/types/sdk/accounts/types.d.ts +26 -26
- package/dist/types/sdk/base/TokensMeta.d.ts +5 -5
- package/dist/types/sdk/base/token-types.d.ts +17 -17
- package/dist/types/sdk/base/types.d.ts +2 -2
- package/dist/types/sdk/chain/chains.d.ts +2 -2
- package/dist/types/sdk/constants/address-provider.d.ts +1 -1
- package/dist/types/sdk/market/MarketSuite.d.ts +2 -2
- package/dist/types/sdk/market/index.d.ts +1 -1
- package/dist/types/sdk/market/pool/PoolSuite.d.ts +2 -2
- package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +2 -2
- package/dist/types/sdk/market/rwa/RWARegistry.d.ts +52 -0
- package/dist/types/sdk/market/{kyc → rwa}/index.d.ts +1 -1
- package/dist/types/sdk/market/{kyc/securitize/SecuritizeKYCFactory.d.ts → rwa/securitize/SecuritizeRWAFactory.d.ts} +16 -16
- package/dist/types/sdk/market/rwa/securitize/constants.d.ts +1 -0
- package/dist/types/sdk/market/{kyc → rwa}/securitize/index.d.ts +1 -1
- package/dist/types/sdk/market/{kyc → rwa}/securitize/types.d.ts +12 -12
- package/dist/types/sdk/market/{kyc → rwa}/types.d.ts +48 -48
- package/dist/types/sdk/market/types.d.ts +1 -1
- package/dist/types/sdk/options.d.ts +1 -1
- package/dist/types/sdk/pools/types.d.ts +4 -4
- package/dist/types/sdk/types/state-human.d.ts +2 -2
- package/dist/types/sdk/types/state.d.ts +3 -3
- package/package.json +1 -1
- package/dist/esm/sdk/market/kyc/securitize/constants.js +0 -4
- package/dist/esm/sdk/market/kyc/types.js +0 -9
- package/dist/types/sdk/market/kyc/KYCRegistry.d.ts +0 -52
- package/dist/types/sdk/market/kyc/securitize/constants.d.ts +0 -1
- /package/dist/cjs/abi/{kyc → rwa}/iDSRegistryService.js +0 -0
- /package/dist/cjs/abi/{kyc → rwa}/iDSToken.js +0 -0
- /package/dist/cjs/abi/{kyc → rwa}/iSecuritizeDegenNFT.js +0 -0
- /package/dist/cjs/sdk/market/{kyc → rwa}/securitize/types.js +0 -0
- /package/dist/esm/abi/{kyc → rwa}/iDSRegistryService.js +0 -0
- /package/dist/esm/abi/{kyc → rwa}/iDSToken.js +0 -0
- /package/dist/esm/abi/{kyc → rwa}/iSecuritizeDegenNFT.js +0 -0
- /package/dist/esm/sdk/market/{kyc → rwa}/securitize/types.js +0 -0
- /package/dist/types/abi/{kyc → rwa}/iDSRegistryService.d.ts +0 -0
- /package/dist/types/abi/{kyc → rwa}/iDSToken.d.ts +0 -0
- /package/dist/types/abi/{kyc → rwa}/iSecuritizeDegenNFT.d.ts +0 -0
- /package/dist/types/sdk/market/{kyc → rwa}/securitize/SecuritizeDegenNFT.d.ts +0 -0
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var rwaCompressor_exports = {};
|
|
20
|
+
__export(rwaCompressor_exports, {
|
|
21
|
+
rwaCompressorAbi: () => rwaCompressorAbi
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
const
|
|
23
|
+
module.exports = __toCommonJS(rwaCompressor_exports);
|
|
24
|
+
const rwaCompressorAbi = [
|
|
25
25
|
{
|
|
26
26
|
type: "constructor",
|
|
27
27
|
inputs: [
|
|
@@ -42,7 +42,7 @@ const kycCompressorAbi = [
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
type: "function",
|
|
45
|
-
name: "
|
|
45
|
+
name: "getRWAInvestorData",
|
|
46
46
|
inputs: [
|
|
47
47
|
{ name: "investor", type: "address", internalType: "address" },
|
|
48
48
|
{ name: "factories", type: "address[]", internalType: "address[]" }
|
|
@@ -51,12 +51,12 @@ const kycCompressorAbi = [
|
|
|
51
51
|
{
|
|
52
52
|
name: "investorData",
|
|
53
53
|
type: "tuple[]",
|
|
54
|
-
internalType: "struct
|
|
54
|
+
internalType: "struct IRWACompressor.RWAInvestorData[]",
|
|
55
55
|
components: [
|
|
56
56
|
{
|
|
57
57
|
name: "creditAccounts",
|
|
58
58
|
type: "tuple[]",
|
|
59
|
-
internalType: "struct
|
|
59
|
+
internalType: "struct IRWACompressor.RWACreditAccountData[]",
|
|
60
60
|
components: [
|
|
61
61
|
{
|
|
62
62
|
name: "creditAccount",
|
|
@@ -76,7 +76,7 @@ const kycCompressorAbi = [
|
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
type: "function",
|
|
79
|
-
name: "
|
|
79
|
+
name: "getRWAMarketsData",
|
|
80
80
|
inputs: [
|
|
81
81
|
{ name: "configurators", type: "address[]", internalType: "address[]" },
|
|
82
82
|
{ name: "factories", type: "address[]", internalType: "address[]" }
|
|
@@ -85,7 +85,7 @@ const kycCompressorAbi = [
|
|
|
85
85
|
{
|
|
86
86
|
name: "underlyingsData",
|
|
87
87
|
type: "tuple[]",
|
|
88
|
-
internalType: "struct
|
|
88
|
+
internalType: "struct IRWACompressor.RWAUnderlyingData[]",
|
|
89
89
|
components: [
|
|
90
90
|
{
|
|
91
91
|
name: "baseParams",
|
|
@@ -114,7 +114,7 @@ const kycCompressorAbi = [
|
|
|
114
114
|
{
|
|
115
115
|
name: "factoriesData",
|
|
116
116
|
type: "tuple[]",
|
|
117
|
-
internalType: "struct
|
|
117
|
+
internalType: "struct IRWACompressor.RWAFactoryData[]",
|
|
118
118
|
components: [
|
|
119
119
|
{
|
|
120
120
|
name: "baseParams",
|
|
@@ -190,7 +190,7 @@ const kycCompressorAbi = [
|
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
type: "error",
|
|
193
|
-
name: "
|
|
193
|
+
name: "InvalidRWAFactoryException",
|
|
194
194
|
inputs: [{ name: "factory", type: "address", internalType: "address" }]
|
|
195
195
|
},
|
|
196
196
|
{
|
|
@@ -203,5 +203,5 @@ const kycCompressorAbi = [
|
|
|
203
203
|
];
|
|
204
204
|
// Annotate the CommonJS export names for ESM import in node:
|
|
205
205
|
0 && (module.exports = {
|
|
206
|
-
|
|
206
|
+
rwaCompressorAbi
|
|
207
207
|
});
|
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var onDemandRWAUnderlyingSubcompressor_exports = {};
|
|
20
|
+
__export(onDemandRWAUnderlyingSubcompressor_exports, {
|
|
21
|
+
onDemandRWAUnderlyingSubcompressorAbi: () => onDemandRWAUnderlyingSubcompressorAbi
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
const
|
|
23
|
+
module.exports = __toCommonJS(onDemandRWAUnderlyingSubcompressor_exports);
|
|
24
|
+
const onDemandRWAUnderlyingSubcompressorAbi = [
|
|
25
25
|
{
|
|
26
26
|
type: "function",
|
|
27
27
|
name: "contractType",
|
|
@@ -56,5 +56,5 @@ const onDemandKYCUnderlyingSubcompressorAbi = [
|
|
|
56
56
|
];
|
|
57
57
|
// Annotate the CommonJS export names for ESM import in node:
|
|
58
58
|
0 && (module.exports = {
|
|
59
|
-
|
|
59
|
+
onDemandRWAUnderlyingSubcompressorAbi
|
|
60
60
|
});
|
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var securitizeRWAFactorySubcompressor_exports = {};
|
|
20
|
+
__export(securitizeRWAFactorySubcompressor_exports, {
|
|
21
|
+
securitizeRWAFactorySubcompressorAbi: () => securitizeRWAFactorySubcompressorAbi
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
const
|
|
23
|
+
module.exports = __toCommonJS(securitizeRWAFactorySubcompressor_exports);
|
|
24
|
+
const securitizeRWAFactorySubcompressorAbi = [
|
|
25
25
|
{
|
|
26
26
|
type: "function",
|
|
27
27
|
name: "contractType",
|
|
@@ -76,5 +76,5 @@ const securitizeKYCFactorySubcompressorAbi = [
|
|
|
76
76
|
];
|
|
77
77
|
// Annotate the CommonJS export names for ESM import in node:
|
|
78
78
|
0 && (module.exports = {
|
|
79
|
-
|
|
79
|
+
securitizeRWAFactorySubcompressorAbi
|
|
80
80
|
});
|
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var iRWACompressor_exports = {};
|
|
20
|
+
__export(iRWACompressor_exports, {
|
|
21
|
+
iRWACompressorAbi: () => iRWACompressorAbi
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
const
|
|
23
|
+
module.exports = __toCommonJS(iRWACompressor_exports);
|
|
24
|
+
const iRWACompressorAbi = [
|
|
25
25
|
{
|
|
26
26
|
type: "function",
|
|
27
27
|
name: "contractType",
|
|
@@ -31,7 +31,7 @@ const iKYCCompressorAbi = [
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
type: "function",
|
|
34
|
-
name: "
|
|
34
|
+
name: "getRWAInvestorData",
|
|
35
35
|
inputs: [
|
|
36
36
|
{ name: "investor", type: "address", internalType: "address" },
|
|
37
37
|
{ name: "factories", type: "address[]", internalType: "address[]" }
|
|
@@ -40,12 +40,12 @@ const iKYCCompressorAbi = [
|
|
|
40
40
|
{
|
|
41
41
|
name: "",
|
|
42
42
|
type: "tuple[]",
|
|
43
|
-
internalType: "struct
|
|
43
|
+
internalType: "struct IRWACompressor.RWAInvestorData[]",
|
|
44
44
|
components: [
|
|
45
45
|
{
|
|
46
46
|
name: "creditAccounts",
|
|
47
47
|
type: "tuple[]",
|
|
48
|
-
internalType: "struct
|
|
48
|
+
internalType: "struct IRWACompressor.RWACreditAccountData[]",
|
|
49
49
|
components: [
|
|
50
50
|
{
|
|
51
51
|
name: "creditAccount",
|
|
@@ -65,7 +65,7 @@ const iKYCCompressorAbi = [
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
type: "function",
|
|
68
|
-
name: "
|
|
68
|
+
name: "getRWAMarketsData",
|
|
69
69
|
inputs: [
|
|
70
70
|
{ name: "configurators", type: "address[]", internalType: "address[]" },
|
|
71
71
|
{ name: "factories", type: "address[]", internalType: "address[]" }
|
|
@@ -74,7 +74,7 @@ const iKYCCompressorAbi = [
|
|
|
74
74
|
{
|
|
75
75
|
name: "",
|
|
76
76
|
type: "tuple[]",
|
|
77
|
-
internalType: "struct
|
|
77
|
+
internalType: "struct IRWACompressor.RWAUnderlyingData[]",
|
|
78
78
|
components: [
|
|
79
79
|
{
|
|
80
80
|
name: "baseParams",
|
|
@@ -103,7 +103,7 @@ const iKYCCompressorAbi = [
|
|
|
103
103
|
{
|
|
104
104
|
name: "",
|
|
105
105
|
type: "tuple[]",
|
|
106
|
-
internalType: "struct
|
|
106
|
+
internalType: "struct IRWACompressor.RWAFactoryData[]",
|
|
107
107
|
components: [
|
|
108
108
|
{
|
|
109
109
|
name: "baseParams",
|
|
@@ -179,7 +179,7 @@ const iKYCCompressorAbi = [
|
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
type: "error",
|
|
182
|
-
name: "
|
|
182
|
+
name: "InvalidRWAFactoryException",
|
|
183
183
|
inputs: [{ name: "factory", type: "address", internalType: "address" }]
|
|
184
184
|
},
|
|
185
185
|
{
|
|
@@ -192,5 +192,5 @@ const iKYCCompressorAbi = [
|
|
|
192
192
|
];
|
|
193
193
|
// Annotate the CommonJS export names for ESM import in node:
|
|
194
194
|
0 && (module.exports = {
|
|
195
|
-
|
|
195
|
+
iRWACompressorAbi
|
|
196
196
|
});
|
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var iRWAFactory_exports = {};
|
|
20
|
+
__export(iRWAFactory_exports, {
|
|
21
|
+
iRWAFactoryAbi: () => iRWAFactoryAbi
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
const
|
|
23
|
+
module.exports = __toCommonJS(iRWAFactory_exports);
|
|
24
|
+
const iRWAFactoryAbi = [
|
|
25
25
|
{
|
|
26
26
|
type: "function",
|
|
27
27
|
name: "contractType",
|
|
@@ -118,5 +118,5 @@ const iKYCFactoryAbi = [
|
|
|
118
118
|
];
|
|
119
119
|
// Annotate the CommonJS export names for ESM import in node:
|
|
120
120
|
0 && (module.exports = {
|
|
121
|
-
|
|
121
|
+
iRWAFactoryAbi
|
|
122
122
|
});
|
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var iRWAUnderlying_exports = {};
|
|
20
|
+
__export(iRWAUnderlying_exports, {
|
|
21
|
+
iRWAUnderlyingAbi: () => iRWAUnderlyingAbi
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
const
|
|
23
|
+
module.exports = __toCommonJS(iRWAUnderlying_exports);
|
|
24
|
+
const iRWAUnderlyingAbi = [
|
|
25
25
|
{
|
|
26
26
|
type: "function",
|
|
27
27
|
name: "allowance",
|
|
@@ -391,11 +391,11 @@ const iKYCUnderlyingAbi = [
|
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
type: "error",
|
|
394
|
-
name: "
|
|
394
|
+
name: "InvalidRWAFactoryException",
|
|
395
395
|
inputs: [{ name: "factory", type: "address", internalType: "address" }]
|
|
396
396
|
}
|
|
397
397
|
];
|
|
398
398
|
// Annotate the CommonJS export names for ESM import in node:
|
|
399
399
|
0 && (module.exports = {
|
|
400
|
-
|
|
400
|
+
iRWAUnderlyingAbi
|
|
401
401
|
});
|
|
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var iSecuritizeRWAFactory_exports = {};
|
|
20
|
+
__export(iSecuritizeRWAFactory_exports, {
|
|
21
|
+
iSecuritizeRWAFactoryAbi: () => iSecuritizeRWAFactoryAbi
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
const
|
|
23
|
+
module.exports = __toCommonJS(iSecuritizeRWAFactory_exports);
|
|
24
|
+
const iSecuritizeRWAFactoryAbi = [
|
|
25
25
|
{
|
|
26
26
|
type: "function",
|
|
27
27
|
name: "contractType",
|
|
@@ -257,7 +257,7 @@ const iSecuritizeKYCFactoryAbi = [
|
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
type: "event",
|
|
260
|
-
name: "
|
|
260
|
+
name: "OpenRWACreditAccount",
|
|
261
261
|
inputs: [
|
|
262
262
|
{
|
|
263
263
|
name: "creditAccount",
|
|
@@ -362,5 +362,5 @@ const iSecuritizeKYCFactoryAbi = [
|
|
|
362
362
|
];
|
|
363
363
|
// Annotate the CommonJS export names for ESM import in node:
|
|
364
364
|
0 && (module.exports = {
|
|
365
|
-
|
|
365
|
+
iSecuritizeRWAFactoryAbi
|
|
366
366
|
});
|
|
@@ -25,8 +25,8 @@ __export(claimDSToken_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(claimDSToken_exports);
|
|
26
26
|
var import_viem = require("viem");
|
|
27
27
|
var import_accounts = require("viem/accounts");
|
|
28
|
-
var import_iDSRegistryService = require("../abi/
|
|
29
|
-
var import_iDSToken = require("../abi/
|
|
28
|
+
var import_iDSRegistryService = require("../abi/rwa/iDSRegistryService.js");
|
|
29
|
+
var import_iDSToken = require("../abi/rwa/iDSToken.js");
|
|
30
30
|
var import_sdk = require("../sdk/index.js");
|
|
31
31
|
async function writeAndWait(anvil, params) {
|
|
32
32
|
const hash = await anvil.writeContract(params);
|
|
@@ -145,7 +145,7 @@ async function claimDSToken(props) {
|
|
|
145
145
|
adminPrivateKey,
|
|
146
146
|
token,
|
|
147
147
|
marketConfigurators,
|
|
148
|
-
|
|
148
|
+
rwaFactories,
|
|
149
149
|
usdAmount: usdAmountProp = "100000"
|
|
150
150
|
} = props;
|
|
151
151
|
const account = (0, import_accounts.privateKeyToAccount)(adminPrivateKey);
|
|
@@ -161,7 +161,7 @@ async function claimDSToken(props) {
|
|
|
161
161
|
client: anvil,
|
|
162
162
|
timeout: 12e4
|
|
163
163
|
});
|
|
164
|
-
await sdk.attach({ marketConfigurators,
|
|
164
|
+
await sdk.attach({ marketConfigurators, rwaFactories });
|
|
165
165
|
let amount = 0n;
|
|
166
166
|
for (const market of sdk.marketRegister.markets) {
|
|
167
167
|
try {
|
|
@@ -64,7 +64,7 @@ class OnchainSDK extends import_base.ChainContractsRegister {
|
|
|
64
64
|
#syncing = false;
|
|
65
65
|
#attached = false;
|
|
66
66
|
#addressProvider;
|
|
67
|
-
#
|
|
67
|
+
#rwa;
|
|
68
68
|
#marketRegister;
|
|
69
69
|
#priceFeeds;
|
|
70
70
|
/**
|
|
@@ -100,7 +100,7 @@ class OnchainSDK extends import_base.ChainContractsRegister {
|
|
|
100
100
|
super(client, options?.logger);
|
|
101
101
|
this.strictContractTypes = options?.strictContractTypes ?? false;
|
|
102
102
|
this.plugins = options?.plugins ?? {};
|
|
103
|
-
this.#
|
|
103
|
+
this.#rwa = new import_market.RWARegistry(this);
|
|
104
104
|
for (const plugin of Object.values(this.plugins)) {
|
|
105
105
|
plugin.sdk = this;
|
|
106
106
|
}
|
|
@@ -132,7 +132,7 @@ class OnchainSDK extends import_base.ChainContractsRegister {
|
|
|
132
132
|
const marketConfigurators = mcs ?? import_utils.TypedObjectUtils.keys(
|
|
133
133
|
this.client.chain.defaultMarketConfigurators
|
|
134
134
|
);
|
|
135
|
-
const
|
|
135
|
+
const rwaFactories = options?.rwaFactories ?? this.client.chain.rwaFactories;
|
|
136
136
|
this.logger?.info(
|
|
137
137
|
{
|
|
138
138
|
networkType: this.networkType,
|
|
@@ -177,7 +177,7 @@ class OnchainSDK extends import_base.ChainContractsRegister {
|
|
|
177
177
|
} else {
|
|
178
178
|
const delegated = [
|
|
179
179
|
...this.#marketRegister.getLoadMulticalls(marketConfigurators),
|
|
180
|
-
...this.#
|
|
180
|
+
...this.#rwa.getLoadMulticalls(marketConfigurators, rwaFactories)
|
|
181
181
|
];
|
|
182
182
|
let txs = [];
|
|
183
183
|
if (!ignoreUpdateablePrices) {
|
|
@@ -249,8 +249,8 @@ class OnchainSDK extends import_base.ChainContractsRegister {
|
|
|
249
249
|
);
|
|
250
250
|
this.#marketRegister = new import_MarketRegister.MarketRegister(this, ignoreMarkets);
|
|
251
251
|
this.#marketRegister.hydrate(state.markets);
|
|
252
|
-
this.#
|
|
253
|
-
this.#
|
|
252
|
+
this.#rwa = new import_market.RWARegistry(this);
|
|
253
|
+
this.#rwa.setState(state.rwa);
|
|
254
254
|
for (const [name, plugin] of import_utils.TypedObjectUtils.entries(this.plugins)) {
|
|
255
255
|
const pluginState = state.plugins[name];
|
|
256
256
|
if (plugin.hydrate && pluginState) {
|
|
@@ -294,7 +294,7 @@ class OnchainSDK extends import_base.ChainContractsRegister {
|
|
|
294
294
|
addressProviderV3: this.addressProvider.stateHuman(raw)
|
|
295
295
|
},
|
|
296
296
|
tokens: this.tokensMeta.values(),
|
|
297
|
-
|
|
297
|
+
rwa: this.#rwa.stateHuman(raw),
|
|
298
298
|
plugins: Object.fromEntries(
|
|
299
299
|
import_utils.TypedObjectUtils.entries(this.plugins).map(([name, plugin]) => [
|
|
300
300
|
name,
|
|
@@ -314,7 +314,7 @@ class OnchainSDK extends import_base.ChainContractsRegister {
|
|
|
314
314
|
timestamp: this.timestamp,
|
|
315
315
|
addressProvider: this.addressProvider.state,
|
|
316
316
|
markets: this.marketRegister.state,
|
|
317
|
-
|
|
317
|
+
rwa: this.#rwa.state,
|
|
318
318
|
plugins: Object.fromEntries(
|
|
319
319
|
import_utils.TypedObjectUtils.entries(this.plugins).map(([name, plugin]) => [
|
|
320
320
|
name,
|
|
@@ -482,15 +482,15 @@ class OnchainSDK extends import_base.ChainContractsRegister {
|
|
|
482
482
|
return this.#marketRegister;
|
|
483
483
|
}
|
|
484
484
|
/**
|
|
485
|
-
*
|
|
485
|
+
* RWA register for RWA-wrapped underlying tokens and factories.
|
|
486
486
|
*
|
|
487
487
|
* @throws If the SDK has not been attached or hydrated yet.
|
|
488
488
|
**/
|
|
489
|
-
get
|
|
490
|
-
if (this.#
|
|
489
|
+
get rwa() {
|
|
490
|
+
if (this.#rwa === void 0) {
|
|
491
491
|
throw new import_core.SdkNotAttachedError();
|
|
492
492
|
}
|
|
493
|
-
return this.#
|
|
493
|
+
return this.#rwa;
|
|
494
494
|
}
|
|
495
495
|
/**
|
|
496
496
|
* @internal
|