@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.
- package/dist/abi/assetmanager/balancer/MarginIssueManager.json +3 -3
- package/dist/abi/assetmanager/balancer/PrimaryIssueManager.json +3 -3
- package/dist/abi/assetmanager/balancer/SecondaryIssueManager.json +3 -3
- package/dist/abi/distribution/Distribution.json +5682 -7360
- package/dist/contract/distribution/index.js +4 -6
- package/dist/contractAddress/index.js +4 -4
- package/package.json +1 -1
|
@@ -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.
|
|
60
|
-
return this.callContract(FUNCTIONS.GETREVENUESHAREHOLDER, this.sanitiseInput(index_1.DATATYPES.BYTE32, _type),
|
|
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.
|
|
72
|
-
return this.callContract(FUNCTIONS.ADDREVENUESHAREHOLDER, this.sanitiseInput(index_1.DATATYPES.BYTE32, _type), _shareholder,
|
|
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': '
|
|
17
|
-
'BalancerPrimaryIssueManager': '
|
|
18
|
-
'BalancerSecondaryIssueManager': '
|
|
19
|
-
'BalancerMarginIssueManager': '
|
|
16
|
+
'Distribution': '0x81E045858ACc78A0B303739d5010b8454EDC7116',
|
|
17
|
+
'BalancerPrimaryIssueManager': '0xE1632bB1dD878521645e4e1d3492f91435593C7e',
|
|
18
|
+
'BalancerSecondaryIssueManager': '0xee74396d7BB2b6035C0FF99912D93C84F3ED0b3A',
|
|
19
|
+
'BalancerMarginIssueManager': '0x5ba8e58e3FB6dE7533DD708c83d5fDe9f5a653C7',
|
|
20
20
|
'Custody': '0x60aEDad13a34b1DC45bDeA9eD6a66d639563e917',
|
|
21
21
|
'CASH': {
|
|
22
22
|
'VCUSD': '0xB5fb79a493852f0601f711b58AB10Cca0EC154E1',
|