@verified-network/verified-sdk 1.1.0 → 1.1.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.
@@ -19,8 +19,6 @@ var FUNCTIONS;
19
19
  class Distribution extends index_1.VerifiedContract {
20
20
  constructor(signer, contractNetworkAddress) {
21
21
  const address = contractNetworkAddress;
22
- //const chainId: string = Object.keys(networks)
23
- //const address = networks[chainId].address
24
22
  super(address, JSON.stringify(Distribution_json_1.abi), signer);
25
23
  this.contractAddress = address;
26
24
  }
@@ -56,8 +54,8 @@ class Distribution extends index_1.VerifiedContract {
56
54
  */
57
55
  async getRevenueShareholders(_type, _currency, options) {
58
56
  await this.validateInput(index_1.DATATYPES.STRING, _type);
59
- await this.validateInput(index_1.DATATYPES.STRING, _currency);
60
- return this.callContract(FUNCTIONS.GETREVENUESHAREHOLDER, this.sanitiseInput(index_1.DATATYPES.BYTE32, _type), this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), options);
57
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _currency);
58
+ return this.callContract(FUNCTIONS.GETREVENUESHAREHOLDER, this.sanitiseInput(index_1.DATATYPES.BYTE32, _type), _currency, options);
61
59
  }
62
60
  /**
63
61
  Add revenue shareholders
@@ -68,8 +66,8 @@ class Distribution extends index_1.VerifiedContract {
68
66
  async addRevenueShareholder(_type, _shareholder, _currency, options) {
69
67
  await this.validateInput(index_1.DATATYPES.STRING, _type);
70
68
  await this.validateInput(index_1.DATATYPES.STRING, _shareholder);
71
- await this.validateInput(index_1.DATATYPES.STRING, _currency);
72
- return this.callContract(FUNCTIONS.ADDREVENUESHAREHOLDER, this.sanitiseInput(index_1.DATATYPES.BYTE32, _type), _shareholder, this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), options);
69
+ await this.validateInput(index_1.DATATYPES.ADDRESS, _currency);
70
+ return this.callContract(FUNCTIONS.ADDREVENUESHAREHOLDER, this.sanitiseInput(index_1.DATATYPES.BYTE32, _type), _shareholder, _currency, options);
73
71
  }
74
72
  async getIssuingFeeCollected(_platform, _token, options) {
75
73
  await this.validateInput(index_1.DATATYPES.ADDRESS, _platform);
@@ -13,10 +13,10 @@ const contractAddress = {
13
13
  'SecuritiesFactory': '0x92d3dCaDaa95eB02eD54ea9e4c20f9012c7f332C',
14
14
  'Vitta': '0x25A8d6fB9eF3c0aD327113f994Ed087dA26f66b3',
15
15
  'Liquidity': '0xad3003bafc712aCe31dc401CF4E047CB58C76634',
16
- 'Distribution': '0x8141Bf5FD3A7F75C0dEEa416cC339f7f9dA18704',
17
- 'BalancerPrimaryIssueManager': '0x00C71Ac1247749A72Bb3401BECBd9eB11e990E18',
18
- 'BalancerSecondaryIssueManager': '0xE504Ca93B935ac1eB82765C404892430962A8207',
19
- 'BalancerMarginIssueManager': '0xC15fA5fa3CbF9573bEBbFe7bb6C57047B42D421D',
16
+ 'Distribution': '0x81E045858ACc78A0B303739d5010b8454EDC7116',
17
+ 'BalancerPrimaryIssueManager': '0xE1632bB1dD878521645e4e1d3492f91435593C7e',
18
+ 'BalancerSecondaryIssueManager': '0xee74396d7BB2b6035C0FF99912D93C84F3ED0b3A',
19
+ 'BalancerMarginIssueManager': '0x5ba8e58e3FB6dE7533DD708c83d5fDe9f5a653C7',
20
20
  'Custody': '0x60aEDad13a34b1DC45bDeA9eD6a66d639563e917',
21
21
  'CASH': {
22
22
  'VCUSD': '0xB5fb79a493852f0601f711b58AB10Cca0EC154E1',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",