@verified-network/verified-sdk 2.2.0 → 2.2.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.
@@ -35,7 +35,7 @@ class Client extends index_1.VerifiedContract {
35
35
  async _getMeeQuote(paymentTokenAddress, functionName, args) {
36
36
  return await this.getQuote(paymentTokenAddress, functionName, args);
37
37
  }
38
- setSigner(_address, options) {
38
+ async setSigner(_address, options) {
39
39
  await this.validateInput(index_1.DATATYPES.ADDRESS, _address);
40
40
  return this.callContract(FUNCTIONS.SETSIGNER, _address, options);
41
41
  }
@@ -35,5 +35,6 @@ export default class PoolContract extends VerifiedContract {
35
35
  swap(_swap: SingleSwap, _funds: Funds, _limit: string, _deadline: string, options?: Options): any;
36
36
  batchSwap(_kind: string, _swaps: Swap[], _assests: string[], _funds: Funds, _limits: string[], _deadline: string, options?: Options): any;
37
37
  getPoolTokens(_poolId: string, options?: Options): any;
38
+ getPool(_poolId: string, options?: Options): any;
38
39
  }
39
40
  export {};
@@ -13,6 +13,7 @@ var FUNCTIONS;
13
13
  FUNCTIONS["SWAP"] = "swap";
14
14
  FUNCTIONS["BATCHSWAP"] = "batchSwap";
15
15
  FUNCTIONS["GETPOOLTOKENS"] = "getPoolTokens";
16
+ FUNCTIONS["GETPOOL"] = "getPool";
16
17
  })(FUNCTIONS || (FUNCTIONS = {}));
17
18
  class PoolContract extends index_1.VerifiedContract {
18
19
  constructor(signer) {
@@ -57,7 +58,12 @@ class PoolContract extends index_1.VerifiedContract {
57
58
  return this.callContract(FUNCTIONS.BATCHSWAP, _kind, _swaps, _assests, _funds, _limits, _deadline, options);
58
59
  }
59
60
  async getPoolTokens(_poolId, options) {
61
+ await this.validateInput(index_1.DATATYPES.BYTE32, _poolId);
60
62
  return this.callContract(FUNCTIONS.GETPOOLTOKENS, _poolId, options);
61
63
  }
64
+ async getPool(_poolId, options) {
65
+ await this.validateInput(index_1.DATATYPES.BYTE32, _poolId);
66
+ return this.callContract(FUNCTIONS.GETPOOL, _poolId, options);
67
+ }
62
68
  }
63
69
  exports.default = PoolContract;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verified-network/verified-sdk",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "An SDK to develop applications on the Verified Network",
5
5
  "repository": {
6
6
  "type": "git",