@verified-network/verified-sdk 1.3.2 → 1.3.4

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.
@@ -53,22 +53,22 @@ class MarginIssueManager extends index_1.VerifiedContract {
53
53
  async onMatch(party, counterparty, orderRef, security, securityTraded, currency, cashTraded, options) {
54
54
  await this.validateInput(index_1.DATATYPES.ADDRESS, party);
55
55
  await this.validateInput(index_1.DATATYPES.ADDRESS, counterparty);
56
- await this.validateInput(index_1.DATATYPES.STRING, orderRef);
56
+ //await this.validateInput(DATATYPES.STRING, orderRef);
57
57
  await this.validateInput(index_1.DATATYPES.ADDRESS, security);
58
58
  await this.validateInput(index_1.DATATYPES.NUMBER, securityTraded);
59
59
  await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
60
60
  await this.validateInput(index_1.DATATYPES.NUMBER, cashTraded);
61
- return this.callContract(FUNCTIONS.ONMATCH, party, counterparty, this.sanitiseInput(index_1.DATATYPES.BYTE32, orderRef), security, securityTraded, currency, cashTraded, options);
61
+ return this.callContract(FUNCTIONS.ONMATCH, party, counterparty, orderRef, security, securityTraded, currency, cashTraded, options);
62
62
  }
63
63
  async onTrade(ref, cref, security, securityTraded, currency, currencyTraded, executionTime, options) {
64
- await this.validateInput(index_1.DATATYPES.STRING, ref);
65
- await this.validateInput(index_1.DATATYPES.STRING, cref);
64
+ //await this.validateInput(DATATYPES.STRING, ref);
65
+ //await this.validateInput(DATATYPES.STRING, cref);
66
66
  await this.validateInput(index_1.DATATYPES.ADDRESS, security);
67
67
  await this.validateInput(index_1.DATATYPES.NUMBER, securityTraded);
68
68
  await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
69
69
  await this.validateInput(index_1.DATATYPES.NUMBER, currencyTraded);
70
70
  await this.validateInput(index_1.DATATYPES.NUMBER, executionTime);
71
- return this.callContract(FUNCTIONS.ONTRADE, this.sanitiseInput(index_1.DATATYPES.BYTE32, ref), this.sanitiseInput(index_1.DATATYPES.BYTE32, cref), security, securityTraded, currency, currencyTraded, executionTime, options);
71
+ return this.callContract(FUNCTIONS.ONTRADE, ref, cref, security, securityTraded, currency, currencyTraded, executionTime, options);
72
72
  }
73
73
  async onSettle(security, currency, financingPerSec, charge, dividendPerSec, payout, settlementTime, options) {
74
74
  await this.validateInput(index_1.DATATYPES.ADDRESS, security);
@@ -16,7 +16,7 @@ const contractAddress = {
16
16
  'Distribution': '0x22Af8F976f34a5f91A333bcc2bBe82826e517B12',
17
17
  'BalancerPrimaryIssueManager': '0x63D95635938857Ad202f0684dfd91dc71C9d111e',
18
18
  'BalancerSecondaryIssueManager': '0xe1f45e7104069F998b919C26435c4aaBAeD68fEd',
19
- 'BalancerMarginIssueManager': '0x990e06f853B2EC48a3773572951D099c015BA900',
19
+ 'BalancerMarginIssueManager': '0x6Aaee8a95a364e208E6915805537437463EF2Cdd',
20
20
  'Custody': '0x60aEDad13a34b1DC45bDeA9eD6a66d639563e917',
21
21
  'Compound': '0xf8287e8D37863Db0Cabd25B55f77652d5d6aEb83',
22
22
  'CASH': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",
package/tsconfig.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "target": "ES2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8
8
  "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
9
9
  "lib": ["es5","DOM"], /* Specify library files to be included in the compilation. */
10
- // "allowJs": true, /* Allow javascript files to be compiled. */
10
+ //"allowJs": true, /* Allow javascript files to be compiled. */
11
11
  // "checkJs": true, /* Report errors in .js files. */
12
12
  // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
13
13
  // "declaration": true, /* Generates corresponding '.d.ts' file. */