diff --git a/index.d.ts b/index.d.ts index 429e55c..c6c9298 100644 --- a/index.d.ts +++ b/index.d.ts @@ -150,9 +150,9 @@ declare namespace Connex { /** * set gas price - * @param gp gas price in hex string + * @param gp gas price in number or hex/dec string */ - gasPrice(gp: string): this + gasPrice(gp: string | number): this /** * Turn on caching for result of method call @@ -261,9 +261,9 @@ declare namespace Connex { /** * set gas price - * @param gp gas price in hex string + * @param gp gas price in number or hex/dec string */ - gasPrice(gp: string): this + gasPrice(gp: string | number): this /** * execute clauses @@ -352,7 +352,7 @@ declare namespace Connex { type Clause = { to: string | null value: string | number - data: string + data?: string } namespace Transaction { @@ -368,7 +368,11 @@ declare namespace Connex { chainTag: number blockRef: string expiration: number - clauses: Clause[] + clauses: Array<{ + to: string | null + value: string + data: string + }> gasPriceCoef: number gas: number origin: string @@ -555,7 +559,7 @@ declare namespace Connex { type TxMessage = Array<{ to: string | null value: string | number - data: string + data?: string /** * comment to the clause */ diff --git a/package.json b/package.json index a559f52..a6c013d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vechain/connex", - "version": "1.2.3", + "version": "1.3.0", "description": "Standard interface to connect DApp with VeChain and user", "main": "index.js", "types": "index.d.ts",