@verified-network/verified-sdk 1.3.6 → 1.3.8
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/abi/assetmanager/balancer/MarginIssueManager.json +9859 -9596
- package/dist/abi/custody/Vault.json +5179 -4901
- package/dist/abi/loans/compound/VerifiedMarkets.json +1953 -1533
- package/dist/contract/custody/index.js +29 -20
- package/dist/contractAddress/index.js +27 -3
- package/package.json +1 -1
|
@@ -36,55 +36,64 @@ class Custody extends index_1.VerifiedContract {
|
|
|
36
36
|
async getVaults() {
|
|
37
37
|
return this.callContract(FUNCTIONS.GETVAULTS);
|
|
38
38
|
}
|
|
39
|
-
async transferVault(_creator, _transferee, options) {
|
|
39
|
+
async transferVault(_creator, _id, _transferee, options) {
|
|
40
40
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
41
|
+
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
41
42
|
await this.validateInput(index_1.DATATYPES.ADDRESS, _transferee);
|
|
42
|
-
return this.callContract(FUNCTIONS.TRANSFERVAULT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _transferee, options);
|
|
43
|
+
return this.callContract(FUNCTIONS.TRANSFERVAULT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, _transferee, options);
|
|
43
44
|
}
|
|
44
|
-
async getCreator(_creator, options) {
|
|
45
|
+
async getCreator(_creator, _pin, options) {
|
|
45
46
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
46
|
-
return this.callContract(FUNCTIONS.GETCREATOR, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), options);
|
|
47
|
+
return this.callContract(FUNCTIONS.GETCREATOR, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _pin, options);
|
|
47
48
|
}
|
|
48
|
-
async addParticipant(_creator, _participant, _shard, options) {
|
|
49
|
+
async addParticipant(_creator, _id, _participant, _shard, options) {
|
|
49
50
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
51
|
+
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
50
52
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
51
53
|
await this.validateInput(index_1.DATATYPES.STRING, _shard);
|
|
52
|
-
return this.callContract(FUNCTIONS.ADDPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _shard, options);
|
|
54
|
+
return this.callContract(FUNCTIONS.ADDPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _shard, options);
|
|
53
55
|
}
|
|
54
|
-
async removeParticipant(_creator, _participant, options) {
|
|
56
|
+
async removeParticipant(_creator, _id, _participant, options) {
|
|
55
57
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
58
|
+
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
56
59
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
57
|
-
return this.callContract(FUNCTIONS.REMOVEPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), options);
|
|
60
|
+
return this.callContract(FUNCTIONS.REMOVEPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), options);
|
|
58
61
|
}
|
|
59
|
-
async confirmParticipant(_creator, _participant, _pin, options) {
|
|
62
|
+
async confirmParticipant(_creator, _id, _participant, _pin, options) {
|
|
60
63
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
64
|
+
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
61
65
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
62
|
-
return this.callContract(FUNCTIONS.CONFIRMPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _pin, options);
|
|
66
|
+
return this.callContract(FUNCTIONS.CONFIRMPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _pin, options);
|
|
63
67
|
}
|
|
64
|
-
async defineQuorum(_creator, _minParticipants, options) {
|
|
68
|
+
async defineQuorum(_creator, _id, _minParticipants, options) {
|
|
65
69
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
70
|
+
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
66
71
|
await this.validateInput(index_1.DATATYPES.NUMBER, _minParticipants);
|
|
67
|
-
return this.callContract(FUNCTIONS.DEFINEQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _minParticipants, options);
|
|
72
|
+
return this.callContract(FUNCTIONS.DEFINEQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, _minParticipants, options);
|
|
68
73
|
}
|
|
69
|
-
async promptSignatures(_creator, options) {
|
|
74
|
+
async promptSignatures(_creator, _id, options) {
|
|
70
75
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
71
|
-
|
|
76
|
+
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
77
|
+
return this.callContract(FUNCTIONS.PROMPTSIGNATURES, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, options);
|
|
72
78
|
}
|
|
73
|
-
async signTransaction(_creator, _participant, _tx, _pin, options) {
|
|
79
|
+
async signTransaction(_creator, _id, _participant, _tx, _pin, options) {
|
|
74
80
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
81
|
+
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
75
82
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
76
|
-
return this.callContract(FUNCTIONS.SIGNTRANSACTION, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _tx, _pin, options);
|
|
83
|
+
return this.callContract(FUNCTIONS.SIGNTRANSACTION, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _tx, _pin, options);
|
|
77
84
|
}
|
|
78
|
-
async checkQuorum(_creator, _participant, _txid, options) {
|
|
85
|
+
async checkQuorum(_creator, _id, _participant, _txid, options) {
|
|
79
86
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
87
|
+
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
80
88
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
81
89
|
await this.validateInput(index_1.DATATYPES.STRING, _txid);
|
|
82
|
-
return this.callContract(FUNCTIONS.CHECKQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _txid, options);
|
|
90
|
+
return this.callContract(FUNCTIONS.CHECKQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _txid, options);
|
|
83
91
|
}
|
|
84
|
-
async getShards(_creator, _txid, options) {
|
|
92
|
+
async getShards(_creator, _id, _txid, options) {
|
|
85
93
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
94
|
+
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
86
95
|
await this.validateInput(index_1.DATATYPES.STRING, _txid);
|
|
87
|
-
return this.callContract(FUNCTIONS.GETSHARDS, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _txid, options);
|
|
96
|
+
return this.callContract(FUNCTIONS.GETSHARDS, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, _txid, options);
|
|
88
97
|
}
|
|
89
98
|
notifyNewParticipant(callback) {
|
|
90
99
|
this.getEvent(FUNCTIONS.NEWPARTICIPANT, callback);
|
|
@@ -14,11 +14,14 @@ const contractAddress = {
|
|
|
14
14
|
'Vitta': '0x8aa063d709A7Ec84086A0b5330c75D73af528cD3',
|
|
15
15
|
'Liquidity': '0xce6FD14dD748F5f371BB226a3FdF6fEA3a4C423B',
|
|
16
16
|
'Distribution': '0x22Af8F976f34a5f91A333bcc2bBe82826e517B12',
|
|
17
|
+
'PrimaryIssuePoolFactory': '0x4823be69546f9e1Ab8a87f315108c19dDC8E48b4',
|
|
17
18
|
'BalancerPrimaryIssueManager': '0xa1582D9848cd72cfd001b32Ae7872A9de4E8f695',
|
|
19
|
+
'SecondaryIssuePoolFactory': '0xe3e79e4106327e6eAeFBD03C1fD3A4A531c59b10',
|
|
18
20
|
'BalancerSecondaryIssueManager': '0xd99eaA9786050dab5c3332E1E6eD9d6C4fB6cb6e',
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
21
|
+
'MarginTradingPoolFactory': '0x435f26ca4EF4709C4BB46a53424DAA2cD4D0e899',
|
|
22
|
+
'BalancerMarginIssueManager': '0xB99B085AC98E6836CD206d3379436f2987F7330c',
|
|
23
|
+
'Custody': '0x5fafb140f86FFd21C2C772Ea4b23225faA00ecE6',
|
|
24
|
+
'Compound': '0xe7da2f6c05040765660cd20f5defc69ce7df2309',
|
|
22
25
|
'CASH': {
|
|
23
26
|
'VCUSD': '0xed40C75d273a8f9c746536b86d7B849871970E9D',
|
|
24
27
|
'VCEUR': '0xeFbDD964114aECf26fBAc495551697C1B20016b5',
|
|
@@ -45,8 +48,11 @@ const contractAddress = {
|
|
|
45
48
|
'Vitta': '',
|
|
46
49
|
'Liquidity': '',
|
|
47
50
|
'Distribution': '',
|
|
51
|
+
'PrimaryIssuePoolFactory': '',
|
|
48
52
|
'BalancerPrimaryIssueManager': '',
|
|
53
|
+
'SecondaryIssuePoolFactory': '',
|
|
49
54
|
'BalancerSecondaryIssueManager': '',
|
|
55
|
+
'MarginTradingPoolFactory': '',
|
|
50
56
|
'BalancerMarginIssueManager': '',
|
|
51
57
|
'Custody': '',
|
|
52
58
|
'Compound': '',
|
|
@@ -76,8 +82,11 @@ const contractAddress = {
|
|
|
76
82
|
'Vitta': '0xAb26871f689241758F42627d812E2A3eda7c630e',
|
|
77
83
|
'Liquidity': '0x2E6F17DF38B4686D17C6ec63eF3Ee8f926b1769a',
|
|
78
84
|
'Distribution': '0x96De7417058Dff11D570011eA100e6F0B6Af98eC',
|
|
85
|
+
'PrimaryIssuePoolFactory': '',
|
|
79
86
|
'BalancerPrimaryIssueManager': '0x30fE817317Ffc5A45e8cB457fD1AC8ca0CE068D4',
|
|
87
|
+
'SecondaryIssuePoolFactory': '',
|
|
80
88
|
'BalancerSecondaryIssueManager': '0xb9AD11aC80AD0BE1B83ba6b83E4E27C110c18a33',
|
|
89
|
+
'MarginTradingPoolFactory': '',
|
|
81
90
|
'BalancerMarginIssueManager': '',
|
|
82
91
|
'Custody': '',
|
|
83
92
|
'Compound': '',
|
|
@@ -107,8 +116,11 @@ const contractAddress = {
|
|
|
107
116
|
'Vitta': '',
|
|
108
117
|
'Liquidity': '',
|
|
109
118
|
'Distribution': '',
|
|
119
|
+
'PrimaryIssuePoolFactory': '',
|
|
110
120
|
'BalancerPrimaryIssueManager': '',
|
|
121
|
+
'SecondaryIssuePoolFactory': '',
|
|
111
122
|
'BalancerSecondaryIssueManager': '',
|
|
123
|
+
'MarginTradingPoolFactory': '',
|
|
112
124
|
'BalancerMarginIssueManager': '',
|
|
113
125
|
'Custody': '',
|
|
114
126
|
'Compound': '',
|
|
@@ -138,8 +150,11 @@ const contractAddress = {
|
|
|
138
150
|
'Vitta': '',
|
|
139
151
|
'Liquidity': '',
|
|
140
152
|
'Distribution': '',
|
|
153
|
+
'PrimaryIssuePoolFactory': '',
|
|
141
154
|
'BalancerPrimaryIssueManager': '',
|
|
155
|
+
'SecondaryIssuePoolFactory': '',
|
|
142
156
|
'BalancerSecondaryIssueManager': '',
|
|
157
|
+
'MarginTradingPoolFactory': '',
|
|
143
158
|
'BalancerMarginIssueManager': '',
|
|
144
159
|
'Custody': '',
|
|
145
160
|
'Compound': '',
|
|
@@ -169,8 +184,11 @@ const contractAddress = {
|
|
|
169
184
|
'Vitta': '',
|
|
170
185
|
'Liquidity': '',
|
|
171
186
|
'Distribution': '',
|
|
187
|
+
'PrimaryIssuePoolFactory': '',
|
|
172
188
|
'BalancerPrimaryIssueManager': '',
|
|
189
|
+
'SecondaryIssuePoolFactory': '',
|
|
173
190
|
'BalancerSecondaryIssueManager': '',
|
|
191
|
+
'MarginTradingPoolFactory': '',
|
|
174
192
|
'BalancerMarginIssueManager': '',
|
|
175
193
|
'Custody': '',
|
|
176
194
|
'Compound': '',
|
|
@@ -200,8 +218,11 @@ const contractAddress = {
|
|
|
200
218
|
'Vitta': '',
|
|
201
219
|
'Liquidity': '',
|
|
202
220
|
'Distribution': '',
|
|
221
|
+
'PrimaryIssuePoolFactory': '',
|
|
203
222
|
'BalancerPrimaryIssueManager': '',
|
|
223
|
+
'SecondaryIssuePoolFactory': '',
|
|
204
224
|
'BalancerSecondaryIssueManager': '',
|
|
225
|
+
'MarginTradingPoolFactory': '',
|
|
205
226
|
'BalancerMarginIssueManager': '',
|
|
206
227
|
'Custody': '',
|
|
207
228
|
'Compound': '',
|
|
@@ -231,8 +252,11 @@ const contractAddress = {
|
|
|
231
252
|
'Vitta': '0x1B95D408DE85e07d0De5d5b545202E32a023772E',
|
|
232
253
|
'Liquidity': '0xBD5A0178C276d1553Eb388AdA03F6Cb79Eb6F67D',
|
|
233
254
|
'Distribution': '0x8acBeFF5F1F2e0A4298A6449494C0aA6Dd830d3D',
|
|
255
|
+
'PrimaryIssuePoolFactory': '',
|
|
234
256
|
'BalancerPrimaryIssueManager': '0x2A46d8Ca28F0b84D58d20b5158C2417E6F9CE76F',
|
|
257
|
+
'SecondaryIssuePoolFactory': '',
|
|
235
258
|
'BalancerSecondaryIssueManager': '0x2c6F953dfc7b922ef3101c65c62f9349fCd65e1A',
|
|
259
|
+
'MarginTradingPoolFactory': '',
|
|
236
260
|
'BalancerMarginIssueManager': '0x0d062A0064b762ed8AEe7DE9E79b532e6215c77a',
|
|
237
261
|
'Custody': '0x4A59d0A82A9e1196c7789a25b0F302A683b220E7',
|
|
238
262
|
'Compound': '',
|