@verified-network/verified-sdk 2.7.5 → 2.7.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.
@@ -11,6 +11,28 @@
11
11
  "name": "NotInitializing",
12
12
  "type": "error"
13
13
  },
14
+ {
15
+ "inputs": [
16
+ {
17
+ "internalType": "address",
18
+ "name": "owner",
19
+ "type": "address"
20
+ }
21
+ ],
22
+ "name": "OwnableInvalidOwner",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "inputs": [
27
+ {
28
+ "internalType": "address",
29
+ "name": "account",
30
+ "type": "address"
31
+ }
32
+ ],
33
+ "name": "OwnableUnauthorizedAccount",
34
+ "type": "error"
35
+ },
14
36
  {
15
37
  "anonymous": false,
16
38
  "inputs": [
@@ -24,13 +46,85 @@
24
46
  "name": "Initialized",
25
47
  "type": "event"
26
48
  },
49
+ {
50
+ "anonymous": false,
51
+ "inputs": [
52
+ {
53
+ "indexed": true,
54
+ "internalType": "address",
55
+ "name": "previousOwner",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "indexed": true,
60
+ "internalType": "address",
61
+ "name": "newOwner",
62
+ "type": "address"
63
+ }
64
+ ],
65
+ "name": "OwnershipTransferred",
66
+ "type": "event"
67
+ },
27
68
  {
28
69
  "inputs": [],
70
+ "name": "owner",
71
+ "outputs": [
72
+ {
73
+ "internalType": "address",
74
+ "name": "",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "stateMutability": "view",
79
+ "type": "function",
80
+ "constant": true
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "renounceOwnership",
85
+ "outputs": [],
86
+ "stateMutability": "nonpayable",
87
+ "type": "function"
88
+ },
89
+ {
90
+ "inputs": [
91
+ {
92
+ "internalType": "address",
93
+ "name": "newOwner",
94
+ "type": "address"
95
+ }
96
+ ],
97
+ "name": "transferOwnership",
98
+ "outputs": [],
99
+ "stateMutability": "nonpayable",
100
+ "type": "function"
101
+ },
102
+ {
103
+ "inputs": [
104
+ {
105
+ "internalType": "address",
106
+ "name": "_owner",
107
+ "type": "address"
108
+ }
109
+ ],
29
110
  "name": "initialize",
30
111
  "outputs": [],
31
112
  "stateMutability": "nonpayable",
32
113
  "type": "function"
33
114
  },
115
+ {
116
+ "inputs": [
117
+ {
118
+ "internalType": "address",
119
+ "name": "newOwner",
120
+ "type": "address"
121
+ }
122
+ ],
123
+ "name": "setOwner",
124
+ "outputs": [],
125
+ "stateMutability": "nonpayable",
126
+ "type": "function"
127
+ },
34
128
  {
35
129
  "inputs": [
36
130
  {
@@ -100,6 +194,19 @@
100
194
  "stateMutability": "nonpayable",
101
195
  "type": "function"
102
196
  },
197
+ {
198
+ "inputs": [
199
+ {
200
+ "internalType": "address",
201
+ "name": "_distributor",
202
+ "type": "address"
203
+ }
204
+ ],
205
+ "name": "setDistributor",
206
+ "outputs": [],
207
+ "stateMutability": "nonpayable",
208
+ "type": "function"
209
+ },
103
210
  {
104
211
  "inputs": [],
105
212
  "name": "getFeeToSetter",
@@ -127,6 +234,20 @@
127
234
  "stateMutability": "view",
128
235
  "type": "function",
129
236
  "constant": true
237
+ },
238
+ {
239
+ "inputs": [],
240
+ "name": "getDistributor",
241
+ "outputs": [
242
+ {
243
+ "internalType": "address",
244
+ "name": "",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "stateMutability": "view",
249
+ "type": "function",
250
+ "constant": true
130
251
  }
131
252
  ]
132
253
  }
@@ -14,7 +14,9 @@ export default class Rates extends VerifiedContract {
14
14
  setFeeTo(_feeTo: string, _fee: string, _feeType: string, options?: Options): any;
15
15
  setFeeToSetter(_feeToSetter: string, options?: Options): any;
16
16
  setCustodian(_custodian: string, options?: Options): any;
17
+ setDistributor(_distributor: string, options?: Options): any;
17
18
  getFee(_feeType: string, options?: Options): any;
18
19
  getFeeToSetter(): any;
19
20
  getCustodian(): any;
21
+ getDistributor(): any;
20
22
  }
@@ -10,8 +10,10 @@ var FUNCTIONS;
10
10
  FUNCTIONS["GETFEE"] = "getFee";
11
11
  FUNCTIONS["SETFEETOSETTER"] = "setFeeToSetter";
12
12
  FUNCTIONS["SETCUSTODIAN"] = "setCustodian";
13
+ FUNCTIONS["SETDISTRIBUTOR"] = "setDistributor";
13
14
  FUNCTIONS["GETFEETOSETTER"] = "getFeeToSetter";
14
15
  FUNCTIONS["GETCUSTODIAN"] = "getCustodian";
16
+ FUNCTIONS["GETDISTRIBUTOR"] = "getDistributor";
15
17
  })(FUNCTIONS || (FUNCTIONS = {}));
16
18
  class Rates extends index_1.VerifiedContract {
17
19
  constructor(signer, contractNetworkAddress) {
@@ -36,6 +38,10 @@ class Rates extends index_1.VerifiedContract {
36
38
  await this.validateInput(index_1.DATATYPES.ADDRESS, _custodian);
37
39
  return this.callContract(FUNCTIONS.SETCUSTODIAN, _custodian, options);
38
40
  }
41
+ async setDistributor(_distributor, options) {
42
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _distributor);
43
+ return this.callContract(FUNCTIONS.SETCUSTODIAN, _distributor, options);
44
+ }
39
45
  async getFee(_feeType, options) {
40
46
  await this.validateInput(index_1.DATATYPES.STRING, _feeType);
41
47
  return this.callContract(FUNCTIONS.GETFEE, this.sanitiseInput(index_1.DATATYPES.BYTE32, _feeType), options);
@@ -46,5 +52,8 @@ class Rates extends index_1.VerifiedContract {
46
52
  async getCustodian() {
47
53
  return this.callContract(FUNCTIONS.GETCUSTODIAN);
48
54
  }
55
+ async getDistributor() {
56
+ return this.callContract(FUNCTIONS.GETDISTRIBUTOR);
57
+ }
49
58
  }
50
59
  exports.default = Rates;
@@ -316,36 +316,36 @@ const contractAddress = {
316
316
  },
317
317
  11155111: {
318
318
  Client: "0x20346E44d8600Ad5e2cad81E9c2c559B0C6511c9",
319
- Factory: "0x8199f22D0B19F354a187284Cca1d29A5107f7b8f",
320
- Cash: "0xC92D0FD70c2ce5fEC856Db44988547C7df8F33A4",
321
- Bond: "0xd63d94eFe6FC519ED81B99777ff19b9b7Df44D75",
322
- Token: "0xb115306f2358ae0348d481e9cc9B1e2B4D946069",
323
- Oracle: "0x3Eee6be853009e14ADd93B325E754C4E9e2737e9",
324
- Rates: "0xEC641Caf8506a344046AcD12A771079d62f348ff",
319
+ Factory: "0x2Fd96F538FfdD0e0CD32F6628547A9AE9fB274Dc",
320
+ Cash: "0xF413eABF339d8A88df8bfB6eBf7092372cd95F1d",
321
+ Bond: "0x43D084bA68C9f202F98dFA87ae9b9106067765DD",
322
+ Token: "0x5a9Ea86ec84575010403B757A54cfDC223fbF0E4",
323
+ Oracle: "0xEC9CeED31c3f77b0607f03767d677374E8b73359",
324
+ Rates: "0xC54F5625cB1eb75a5055d213F9bbff2464ebcd47",
325
325
  Security: "0x8C5026eF10861adBdbBbc540401dE4D453769fCE",
326
326
  SecuritiesFactory: "0xA6220cDbE81a8BA3BF4eb8b2648A7557cD2b2Ff4",
327
327
  Vitta: "0x39b4B94eE7FC9571723DaCbA14531EAC5Fd6E024",
328
- Liquidity: "0x5bbc2748B7f6e067E7C28Ba584dB2b8abc4C8a62",
329
- Distribution: "0x21f72409c46f2E0fd0D527181A00cA2E0Ee476Bb",
328
+ Liquidity: "0xdAac4948E4a9C441229E09d07e4b7D0c2e9ff95d",
329
+ Distribution: "0xC52bFCe4D5021914dAB43f3fA2dB45471aD27696",
330
330
  PrimaryIssuePoolFactory: "0xDA13BC71FEe08FfD523f10458B0e2c2D8427BBD5",
331
- BalancerPrimaryIssueManager: "0x7f73c95ABA350444710E6Bbb7E2A79c9dD1FFd00",
331
+ BalancerPrimaryIssueManager: "0x1De161D44665F028c38216FA1D2bBbDAC6f24470",
332
332
  SecondaryIssuePoolFactory: "0x4519148Cc4030c2e3573f1f886ed4071Fa35d62B",
333
- BalancerSecondaryIssueManager: "0x3583D3240FDbd3d78f40e39Cbae4b60D53eBBfbE",
333
+ BalancerSecondaryIssueManager: "0xE2B16c9d8Cf0F7A05eBBaD2f47cAEE42c3041873",
334
334
  MarginTradingPoolFactory: "0xB1ae3Fc5B16d3736bf0db20606fB9a10b435392c",
335
- BalancerMarginIssueManager: "0x40F31e6Ad0a2EB3a80c97D55325533B4C2Efac9A",
335
+ BalancerMarginIssueManager: "",
336
336
  Custody: "0x594DC49A7C2B4b0f279247239cb6F1d943a99e7F",
337
337
  Compound: "0x4b3CBDB8FBe5fcdDF796cd42d3749f8AcD53DA73",
338
338
  CASH: {
339
- VCUSD: "0x96300c2A5Bf68f1d481911AaF878A61C15AAd029",
340
- VCEUR: "0x1ECB580227c74ffD0c981107CB6458033cD983B0",
341
- VCGBP: "0x0EaE1Aa080FdC2F72cf33C81c25FB76d3fED4138",
342
- VCJPY: "0x20652d4C8ABa772D9AdAFAC928B5cC1A102Ba595",
339
+ VCUSD: "0x50b79E3F18490Ec2aA97344eE7502Cf4cBA07Ef4",
340
+ VCEUR: "0x70fdb4Ca69b4dDC2CdB7D2Cc843C17374E946944",
341
+ VCGBP: "0xEe1DD4a2cbfBEE9268C0da9a9A709d06412c540A",
342
+ VCJPY: "0x47B02df02788023ea2C72f719eF0C59cc5a41dA9",
343
343
  },
344
344
  BOND: {
345
- VBUSD: "0xb8a7115434c1169C7CE68491031A958D2B65Ab0f",
346
- VBEUR: "0x71A7ecD3D3eAFc605417BF509197a869d312406b",
347
- VBGBP: "0x6b488c3A9C802d17A2BB7Dcb8feAc6F73dA901b7",
348
- VBJPY: "0x3030C6EaEA94d26F8058CbA71D0abD8A5F3CF30B",
345
+ VBUSD: "0xaf06AF6c26A4386eFde3AC805829659988b99256",
346
+ VBEUR: "0xCabF376555DcfC83e304A51e89CdA83d90CdEFA8",
347
+ VBGBP: "0xDe28de5D2e1A53997F97F0E64eA13F3710E47245",
348
+ VBJPY: "0xE51802A0e508033C51f99397bBEfdf87dc361cb1",
349
349
  },
350
350
  },
351
351
  balancerVault: "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "2.7.5",
3
+ "version": "2.7.7",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",