@verified-network/verified-sdk 0.8.6 → 0.8.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/BalancerManager.json +9496 -9629
- package/dist/abi/assetmanager/Client.json +1170 -1170
- package/dist/abi/custody/Vault.json +7044 -9720
- package/dist/contract/custody/index.js +19 -26
- package/dist/contractAddress/index.js +4 -4
- package/package.json +1 -1
|
@@ -27,59 +27,52 @@ class CustodyContract extends index_1.VerifiedContract {
|
|
|
27
27
|
async createVault(_creator, _id, options) {
|
|
28
28
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
29
29
|
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
30
|
-
return this.callContract(FUNCTIONS.CREATEVAULT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator),
|
|
30
|
+
return this.callContract(FUNCTIONS.CREATEVAULT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, options);
|
|
31
31
|
}
|
|
32
32
|
async getCreator(_creator, options) {
|
|
33
33
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
34
34
|
return this.callContract(FUNCTIONS.GETCREATOR, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), options);
|
|
35
35
|
}
|
|
36
|
-
async addParticipant(_creator,
|
|
36
|
+
async addParticipant(_creator, _participant, _shard, options) {
|
|
37
37
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
38
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
39
38
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
40
|
-
|
|
39
|
+
await this.validateInput(index_1.DATATYPES.STRING, _shard);
|
|
40
|
+
return this.callContract(FUNCTIONS.ADDPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _shard, options);
|
|
41
41
|
}
|
|
42
|
-
async removeParticipant(_creator,
|
|
42
|
+
async removeParticipant(_creator, _participant, options) {
|
|
43
43
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
44
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
45
44
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
46
|
-
return this.callContract(FUNCTIONS.REMOVEPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32,
|
|
45
|
+
return this.callContract(FUNCTIONS.REMOVEPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), options);
|
|
47
46
|
}
|
|
48
|
-
async confirmParticipant(_creator, _participant,
|
|
47
|
+
async confirmParticipant(_creator, _participant, _pin, options) {
|
|
49
48
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
50
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
51
49
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
52
|
-
|
|
53
|
-
return this.callContract(FUNCTIONS.CONFIRMPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), _shard, _pin, options);
|
|
50
|
+
return this.callContract(FUNCTIONS.CONFIRMPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _pin, options);
|
|
54
51
|
}
|
|
55
|
-
async defineQuorum(_creator,
|
|
52
|
+
async defineQuorum(_creator, _minParticipants, options) {
|
|
56
53
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
57
|
-
await this.validateInput(index_1.DATATYPES.
|
|
58
|
-
return this.callContract(FUNCTIONS.DEFINEQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator),
|
|
54
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, _minParticipants);
|
|
55
|
+
return this.callContract(FUNCTIONS.DEFINEQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _minParticipants, options);
|
|
59
56
|
}
|
|
60
|
-
async promptSignatures(_creator,
|
|
57
|
+
async promptSignatures(_creator, options) {
|
|
61
58
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
62
|
-
|
|
63
|
-
return this.callContract(FUNCTIONS.PROMPTSIGNATURES, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _id), options);
|
|
59
|
+
return this.callContract(FUNCTIONS.PROMPTSIGNATURES, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), options);
|
|
64
60
|
}
|
|
65
|
-
async signTransaction(_creator, _participant,
|
|
61
|
+
async signTransaction(_creator, _participant, _tx, _pin, options) {
|
|
66
62
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
67
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
68
63
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
69
|
-
return this.callContract(FUNCTIONS.SIGNTRANSACTION, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant),
|
|
64
|
+
return this.callContract(FUNCTIONS.SIGNTRANSACTION, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _tx, _pin, options);
|
|
70
65
|
}
|
|
71
|
-
async checkQuorum(_creator,
|
|
66
|
+
async checkQuorum(_creator, _participant, _txid, options) {
|
|
72
67
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
73
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
74
68
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
75
69
|
await this.validateInput(index_1.DATATYPES.STRING, _txid);
|
|
76
|
-
return this.callContract(FUNCTIONS.CHECKQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32,
|
|
70
|
+
return this.callContract(FUNCTIONS.CHECKQUORUM, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), this.sanitiseInput(index_1.DATATYPES.BYTE32, _txid), options);
|
|
77
71
|
}
|
|
78
|
-
async getShards(_creator,
|
|
72
|
+
async getShards(_creator, _txid, options) {
|
|
79
73
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
80
|
-
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
81
74
|
await this.validateInput(index_1.DATATYPES.STRING, _txid);
|
|
82
|
-
return this.callContract(FUNCTIONS.GETSHARDS, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32,
|
|
75
|
+
return this.callContract(FUNCTIONS.GETSHARDS, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), this.sanitiseInput(index_1.DATATYPES.BYTE32, _txid), options);
|
|
83
76
|
}
|
|
84
77
|
}
|
|
85
78
|
exports.default = CustodyContract;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const contractAddress = {
|
|
4
4
|
'L1-goerli': {
|
|
5
|
-
'Client': '
|
|
5
|
+
'Client': '0xEF52B2289BE5eaf61100c59f529B42ba8d6022F1',
|
|
6
6
|
'KYC': '',
|
|
7
7
|
'System': '',
|
|
8
8
|
'Holder': '',
|
|
@@ -25,9 +25,9 @@ const contractAddress = {
|
|
|
25
25
|
'Bonds': '',
|
|
26
26
|
'Liquidity': '0xE3B74659a6464519987DEe03F17696690BF3Ae10',
|
|
27
27
|
'Distribution': '0x5c3171AFEC854f8B6FD138ee9533629ABd8A5365',
|
|
28
|
-
'BalancerManager': '
|
|
29
|
-
'PrimaryIssuePoolFactory': '
|
|
30
|
-
'Custody': '',
|
|
28
|
+
'BalancerManager': '0x607080F3dB562aE9aFf0b3f2189798b873E2bB62',
|
|
29
|
+
'PrimaryIssuePoolFactory': '0xA84965eDDF405B76ea8fA9d902396562B9fd9AA1',
|
|
30
|
+
'Custody': '0x2D36DBD05580BF946fFf959DC5Af882F641edADc',
|
|
31
31
|
'CASH': {
|
|
32
32
|
'VCUSD': '0x64EA01fF7e9A0986Cd70b4d19CEDB26a9f99F0c1',
|
|
33
33
|
'VCEUR': '0x5f678B12C4a5fc2136CC9060B10BB2a8AFdfA5b6',
|