@verified-network/verified-sdk 0.8.5 → 0.8.6
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 +42853 -46083
- package/dist/abi/assetmanager/Client.json +1170 -1170
- package/dist/abi/deposits/Bond.json +222 -222
- package/dist/abi/deposits/Cash.json +421 -421
- package/dist/abi/deposits/Factory.json +6783 -5678
- package/dist/abi/deposits/Rates.json +1408 -1408
- package/dist/abi/deposits/Security.json +3417 -9505
- package/dist/contract/public/security/index.js +7 -27
- package/dist/contractAddress/index.js +14 -16
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -6,39 +6,19 @@ const index_1 = require("../../index");
|
|
|
6
6
|
const Security_json_1 = require("../../../abi/deposits/Security.json");
|
|
7
7
|
var FUNCTIONS;
|
|
8
8
|
(function (FUNCTIONS) {
|
|
9
|
-
FUNCTIONS["
|
|
10
|
-
FUNCTIONS["ADDBALANCE"] = "addToBalance";
|
|
11
|
-
FUNCTIONS["TRANSFERBALANCE"] = "transferBalance";
|
|
12
|
-
FUNCTIONS["SECURITIESADDED"] = "securitiesAdded";
|
|
9
|
+
FUNCTIONS["APPROVETOKEN"] = "approveToken";
|
|
13
10
|
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
14
11
|
class VerifiedSecurity extends index_1.VerifiedContract {
|
|
15
|
-
constructor(signer) {
|
|
16
|
-
const
|
|
17
|
-
const address = Security_json_1.networks[chainId].address;
|
|
12
|
+
constructor(signer, tokenAddress) {
|
|
13
|
+
const address = tokenAddress;
|
|
18
14
|
super(address, JSON.stringify(Security_json_1.abi), signer);
|
|
19
15
|
this.contractAddress = address;
|
|
20
16
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
async setSigner(_signer, options) {
|
|
26
|
-
await this.validateInput(index_1.DATATYPES.ADDRESS, _signer);
|
|
27
|
-
return this.callContract(FUNCTIONS.SETSIGNER, _signer, options);
|
|
28
|
-
}
|
|
29
|
-
async addToBalance(_isin, _amount, _tokenHolder, _currency, _hashedMessage, _v, _r, _s, options) {
|
|
30
|
-
await this.validateInput(index_1.DATATYPES.ADDRESS, _tokenHolder);
|
|
31
|
-
await this.validateInput(index_1.DATATYPES.NUMBER, _amount);
|
|
32
|
-
return this.callContract(FUNCTIONS.ADDBALANCE, this.sanitiseInput(index_1.DATATYPES.BYTE32, _isin), _amount, _tokenHolder, this.sanitiseInput(index_1.DATATYPES.BYTE32, _currency), _hashedMessage, _v, _r, _s, options);
|
|
33
|
-
}
|
|
34
|
-
async transferBalance(_isin, _transferor, _amount, _transferee, _currency, _hashedMessage, _v, _r, _s, options) {
|
|
35
|
-
await this.validateInput(index_1.DATATYPES.ADDRESS, _transferee);
|
|
36
|
-
await this.validateInput(index_1.DATATYPES.ADDRESS, _transferor);
|
|
17
|
+
async approveToken(_owner, _spender, _amount, _hashedMessage, _v, _r, _s, options) {
|
|
18
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _owner);
|
|
19
|
+
await this.validateInput(index_1.DATATYPES.ADDRESS, _spender);
|
|
37
20
|
await this.validateInput(index_1.DATATYPES.NUMBER, _amount);
|
|
38
|
-
return this.callContract(FUNCTIONS.
|
|
39
|
-
}
|
|
40
|
-
notifySecuritiesAdded(callback) {
|
|
41
|
-
this.getEvent(FUNCTIONS.SECURITIESADDED, callback);
|
|
21
|
+
return this.callContract(FUNCTIONS.APPROVETOKEN, _owner, _spender, _amount, _hashedMessage, _v, _r, _s, options);
|
|
42
22
|
}
|
|
43
23
|
}
|
|
44
24
|
exports.default = VerifiedSecurity;
|
|
@@ -2,42 +2,41 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const contractAddress = {
|
|
4
4
|
'L1-goerli': {
|
|
5
|
-
'Client': '
|
|
5
|
+
'Client': '0xF1ECb20bce1B31ae61bd5dBf8decac0428942D18',
|
|
6
6
|
'KYC': '',
|
|
7
7
|
'System': '',
|
|
8
8
|
'Holder': '',
|
|
9
9
|
'Ledger': '',
|
|
10
10
|
'Account': '',
|
|
11
|
-
'Factory': '
|
|
12
|
-
'Cash': '
|
|
13
|
-
'Bond': '
|
|
11
|
+
'Factory': '0x31A0469B5B0941aCcf75643aAB81ae319AD07733',
|
|
12
|
+
'Cash': '0x13AAf050FD9BB16bb57A9D141515f789cD711004',
|
|
13
|
+
'Bond': '0xc97E5FFE71eE3dBf90a01917b154a20F6DfF6eb9',
|
|
14
14
|
'Token': '',
|
|
15
15
|
'Oracle': '',
|
|
16
|
-
'Rates': '
|
|
16
|
+
'Rates': '0xDccbBf85d4881f0BA8ea7c9Cb02f4Ed8a123A3fD',
|
|
17
17
|
'PreTrade': '',
|
|
18
18
|
'Trade': '',
|
|
19
19
|
'PostTrade': '',
|
|
20
20
|
'SecuritiesRegistry': '',
|
|
21
|
-
'Security': '
|
|
21
|
+
'Security': '0x6c09aA54F469052E29bBa80b632fDBc95Ea0a0e8',
|
|
22
22
|
'OrderPool': '',
|
|
23
23
|
'PoolFactory': '',
|
|
24
|
-
'Products': '0xdC51E8b0BaE85B134FfAf1E2a1d3ABdE14eF4927',
|
|
25
24
|
'Stocks': '',
|
|
26
25
|
'Bonds': '',
|
|
27
26
|
'Liquidity': '0xE3B74659a6464519987DEe03F17696690BF3Ae10',
|
|
28
27
|
'Distribution': '0x5c3171AFEC854f8B6FD138ee9533629ABd8A5365',
|
|
29
|
-
'BalancerManager': '
|
|
30
|
-
'PrimaryIssuePoolFactory': '
|
|
28
|
+
'BalancerManager': '0x4654FbF60b3e42Df6127451cAaC5CFeD86e2eA53',
|
|
29
|
+
'PrimaryIssuePoolFactory': '0x738731dbA0D01c8d6197d65437cc7B627fA687bD',
|
|
31
30
|
'Custody': '',
|
|
32
31
|
'CASH': {
|
|
33
|
-
'VCUSD': '
|
|
34
|
-
'VCEUR': '
|
|
35
|
-
'VCINR': '
|
|
32
|
+
'VCUSD': '0x64EA01fF7e9A0986Cd70b4d19CEDB26a9f99F0c1',
|
|
33
|
+
'VCEUR': '0x5f678B12C4a5fc2136CC9060B10BB2a8AFdfA5b6',
|
|
34
|
+
'VCINR': '0x74153fe9E896EC7067CC53c9533BFC00c45CD629'
|
|
36
35
|
},
|
|
37
36
|
'BOND': {
|
|
38
|
-
'VBUSD': '
|
|
39
|
-
'VBEUR': '
|
|
40
|
-
'VBINR': '
|
|
37
|
+
'VBUSD': '0x64a281e17b089aB8F0D50729b2C9C779B460e1fC',
|
|
38
|
+
'VBEUR': '0x220C22b1a292504afdA9FC0fE39D83e4bcBb834E',
|
|
39
|
+
'VBINR': '0x3cbaD48599a8EBfF275480E51ee03F9b1F63F0de'
|
|
41
40
|
},
|
|
42
41
|
},
|
|
43
42
|
'L2-goerli': {
|
|
@@ -60,7 +59,6 @@ const contractAddress = {
|
|
|
60
59
|
'Security': '0x324dfB528BEea8419eC96C6a54E0DA7744A4f8da',
|
|
61
60
|
'OrderPool': '0x69C61a08b46fdd75D6f000CCf2b85618AC7011a5',
|
|
62
61
|
'PoolFactory': '0xEE713f9e7d7D03267534C2628019C16dC1c41ecB',
|
|
63
|
-
'Products': '0xCA7C581d55E5025745C495D9be8EE6f8B22FD156',
|
|
64
62
|
'Stocks': '0xA02119054272E52f6b6380c358E995f95Db2E9B2',
|
|
65
63
|
'Bonds': '0xBa0daEBb3D325e6cE3401ff2FF913a5FEe20181D',
|
|
66
64
|
'Liquidity': '',
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.contractAddress = exports.utils = exports.VerifiedClient = exports.
|
|
7
|
+
exports.contractAddress = exports.utils = exports.VerifiedClient = exports.VerifiedRates = exports.VerifiedDistribution = exports.VerifiedFactory = exports.VerifiedSecurity = exports.VerifiedBond = exports.VerifiedCash = exports.AssetManager = exports.RatesContract = exports.LiquidityContract = exports.CustodyContract = exports.BondsContract = exports.StocksContract = exports.ProductContract = exports.DistributionContract = exports.OracleContract = exports.SecurityContract = exports.TokenContract = exports.FactoryContract = exports.TradeContract = exports.SecuritiesRegistryContract = exports.PreTradeContract = exports.PostTradeContract = exports.PoolFactoryContract = exports.OrderPoolContract = exports.CashContract = exports.BondContract = exports.AccountContract = exports.LedgerContract = exports.HolderContract = exports.SystemContract = exports.KYCContract = exports.ClientContract = exports.Provider = exports.VerifiedWallet = void 0;
|
|
8
8
|
const wallet_1 = require("./wallet");
|
|
9
9
|
Object.defineProperty(exports, "VerifiedWallet", { enumerable: true, get: function () { return wallet_1.VerifiedWallet; } });
|
|
10
10
|
const utils_1 = require("./utils");
|
|
@@ -65,14 +65,14 @@ const cash_2 = __importDefault(require("./contract/public/cash"));
|
|
|
65
65
|
exports.VerifiedCash = cash_2.default;
|
|
66
66
|
const bond_2 = __importDefault(require("./contract/public/bond"));
|
|
67
67
|
exports.VerifiedBond = bond_2.default;
|
|
68
|
+
const security_2 = __importDefault(require("./contract/public/security"));
|
|
69
|
+
exports.VerifiedSecurity = security_2.default;
|
|
68
70
|
const factory_2 = __importDefault(require("./contract/public/factory"));
|
|
69
71
|
exports.VerifiedFactory = factory_2.default;
|
|
70
72
|
const distribution_2 = __importDefault(require("./contract/public/distribution"));
|
|
71
73
|
exports.VerifiedDistribution = distribution_2.default;
|
|
72
74
|
const rates_2 = __importDefault(require("./contract/public/rates"));
|
|
73
75
|
exports.VerifiedRates = rates_2.default;
|
|
74
|
-
const product_2 = __importDefault(require("./contract/public/product"));
|
|
75
|
-
exports.VerifiedProducts = product_2.default;
|
|
76
76
|
const client_2 = __importDefault(require("./contract/public/client"));
|
|
77
77
|
exports.VerifiedClient = client_2.default;
|
|
78
78
|
const ethers_1 = require("ethers");
|