@tezos-domains/taquito
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.3.0](https://gitlab.com/tezos-domains/client/compare/v1.2.0...v1.3.0) (2021-05-17) | ||
### Features | ||
* allow to override operation params (storageLimit, gasLimit, fee) ([d5fd6e0](https://gitlab.com/tezos-domains/client/commit/d5fd6e0ec45fad2bced29d1cf82ded5d5c6e21f3)) | ||
# [1.2.0](https://gitlab.com/tezos-domains/client/compare/v1.1.0...v1.2.0) (2021-05-12) | ||
@@ -8,0 +19,0 @@ |
import { TezosToolkit, BigMapAbstraction, TransactionWalletOperation, WalletTransferParams, WalletOperation } from '@taquito/taquito'; | ||
import { ConstantsResponse } from '@taquito/rpc'; | ||
import { Tracer, RpcResponseData, RpcRequestScalarData } from '@tezos-domains/core'; | ||
import { Tracer, RpcResponseData, RpcRequestScalarData, AdditionalOperationParams } from '@tezos-domains/core'; | ||
export declare class TaquitoClient { | ||
@@ -12,4 +12,3 @@ private tezos; | ||
call(params: WalletTransferParams): Promise<TransactionWalletOperation>; | ||
params(contractAddress: string, method: string, parameters: any[], transferParams?: { | ||
storageLimit?: number; | ||
params(contractAddress: string, method: string, parameters: any[], operationParams?: AdditionalOperationParams & { | ||
amount?: number; | ||
@@ -16,0 +15,0 @@ }): Promise<WalletTransferParams>; |
@@ -72,7 +72,7 @@ import { OpKind } from '@taquito/rpc'; | ||
} | ||
params(contractAddress, method, parameters, transferParams) { | ||
params(contractAddress, method, parameters, operationParams) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
this.tracer.trace(`=> Preparing call for entrypoint '${method}' at '${contractAddress}' with parameters '${JSON.stringify(parameters)}' and params '${JSON.stringify(transferParams)}.'`); | ||
this.tracer.trace(`=> Preparing call for entrypoint '${method}' at '${contractAddress}' with parameters '${JSON.stringify(parameters)}' and params '${JSON.stringify(operationParams)}.'`); | ||
const contract = yield this.tezos.wallet.at(contractAddress); | ||
const params = contract.methods[method](...parameters).toTransferParams(Object.assign(Object.assign({}, (transferParams || {})), { mutez: true })); | ||
const params = contract.methods[method](...parameters).toTransferParams(Object.assign({ mutez: true }, operationParams)); | ||
this.tracer.trace('<= Prepared params.', params); | ||
@@ -79,0 +79,0 @@ return params; |
@@ -76,7 +76,7 @@ (function (global, factory) { | ||
} | ||
params(contractAddress, method, parameters, transferParams) { | ||
params(contractAddress, method, parameters, operationParams) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
this.tracer.trace(`=> Preparing call for entrypoint '${method}' at '${contractAddress}' with parameters '${JSON.stringify(parameters)}' and params '${JSON.stringify(transferParams)}.'`); | ||
this.tracer.trace(`=> Preparing call for entrypoint '${method}' at '${contractAddress}' with parameters '${JSON.stringify(parameters)}' and params '${JSON.stringify(operationParams)}.'`); | ||
const contract = yield this.tezos.wallet.at(contractAddress); | ||
const params = contract.methods[method](...parameters).toTransferParams(Object.assign(Object.assign({}, (transferParams || {})), { mutez: true })); | ||
const params = contract.methods[method](...parameters).toTransferParams(Object.assign({ mutez: true }, operationParams)); | ||
this.tracer.trace('<= Prepared params.', params); | ||
@@ -83,0 +83,0 @@ return params; |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "A library for interacting with tezos blockchain using taquito.", | ||
@@ -33,3 +33,3 @@ "author": "Necroskillz <necroskillz@gmail.com>", | ||
"dependencies": { | ||
"@tezos-domains/core": "^1.2.0", | ||
"@tezos-domains/core": "^1.3.0", | ||
"bignumber.js": "^9.0.1", | ||
@@ -59,3 +59,3 @@ "node-cache": "^5.1.2" | ||
}, | ||
"gitHead": "1ce6e680f76878a924290e05054a2f7300b1e447" | ||
"gitHead": "2984f01c48cb8b66154f3e265740b12e18cd660d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
67574
403
Updated@tezos-domains/core@^1.3.0