@verified-network/verified-sdk 1.3.6 → 1.3.7
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/contract/custody/index.js +29 -20
- package/dist/contractAddress/index.js +5 -2
- 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,10 +14,13 @@ 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
|
+
'MarginTradingPoolFactory': '0x435f26ca4EF4709C4BB46a53424DAA2cD4D0e899',
|
|
22
|
+
'BalancerMarginIssueManager': '0xc675973E36eCa34aad2e9fF2A7205CD6B189f30d',
|
|
23
|
+
'Custody': '0x5fafb140f86FFd21C2C772Ea4b23225faA00ecE6',
|
|
21
24
|
'Compound': '0xf8287e8D37863Db0Cabd25B55f77652d5d6aEb83',
|
|
22
25
|
'CASH': {
|
|
23
26
|
'VCUSD': '0xed40C75d273a8f9c746536b86d7B849871970E9D',
|