Rename txData to callData

This commit is contained in:
Fabio Berger 2019-05-20 14:03:58 +01:00
parent c58306cd49
commit 740fd6f5d9

View File

@ -92,8 +92,8 @@ export class ExchangeWrapper extends ContractWrapper {
assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema);
const exchangeContract = await this._getExchangeContractAsync(); const exchangeContract = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const assetProxy = await exchangeContract.getAssetProxy.callAsync(proxyId, txData, methodOpts.defaultBlock); const assetProxy = await exchangeContract.getAssetProxy.callAsync(proxyId, callData, methodOpts.defaultBlock);
return assetProxy; return assetProxy;
} }
/** /**
@ -107,10 +107,10 @@ export class ExchangeWrapper extends ContractWrapper {
assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema);
const exchangeContract = await this._getExchangeContractAsync(); const exchangeContract = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const filledTakerAssetAmountInBaseUnits = await exchangeContract.filled.callAsync( const filledTakerAssetAmountInBaseUnits = await exchangeContract.filled.callAsync(
orderHash, orderHash,
txData, callData,
methodOpts.defaultBlock, methodOpts.defaultBlock,
); );
return filledTakerAssetAmountInBaseUnits; return filledTakerAssetAmountInBaseUnits;
@ -124,8 +124,8 @@ export class ExchangeWrapper extends ContractWrapper {
assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema);
const exchangeContract = await this._getExchangeContractAsync(); const exchangeContract = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const version = await exchangeContract.VERSION.callAsync(txData, methodOpts.defaultBlock); const version = await exchangeContract.VERSION.callAsync(callData, methodOpts.defaultBlock);
return version; return version;
} }
/** /**
@ -146,11 +146,11 @@ export class ExchangeWrapper extends ContractWrapper {
assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema);
const exchangeContract = await this._getExchangeContractAsync(); const exchangeContract = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const orderEpoch = await exchangeContract.orderEpoch.callAsync( const orderEpoch = await exchangeContract.orderEpoch.callAsync(
makerAddress, makerAddress,
senderAddress, senderAddress,
txData, callData,
methodOpts.defaultBlock, methodOpts.defaultBlock,
); );
return orderEpoch; return orderEpoch;
@ -166,8 +166,8 @@ export class ExchangeWrapper extends ContractWrapper {
assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema);
const exchangeContract = await this._getExchangeContractAsync(); const exchangeContract = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const isCancelled = await exchangeContract.cancelled.callAsync(orderHash, txData, methodOpts.defaultBlock); const isCancelled = await exchangeContract.cancelled.callAsync(orderHash, callData, methodOpts.defaultBlock);
return isCancelled; return isCancelled;
} }
/** /**
@ -836,12 +836,12 @@ export class ExchangeWrapper extends ContractWrapper {
assert.isHexString('signature', signature); assert.isHexString('signature', signature);
assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema);
const exchangeInstance = await this._getExchangeContractAsync(); const exchangeInstance = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const isValidSignature = await exchangeInstance.isValidSignature.callAsync( const isValidSignature = await exchangeInstance.isValidSignature.callAsync(
hash, hash,
signerAddress, signerAddress,
signature, signature,
txData, callData,
methodOpts.defaultBlock, methodOpts.defaultBlock,
); );
return isValidSignature; return isValidSignature;
@ -867,11 +867,11 @@ export class ExchangeWrapper extends ContractWrapper {
const normalizedSignerAddress = signerAddress.toLowerCase(); const normalizedSignerAddress = signerAddress.toLowerCase();
const normalizedValidatorAddress = validatorAddress.toLowerCase(); const normalizedValidatorAddress = validatorAddress.toLowerCase();
const exchangeInstance = await this._getExchangeContractAsync(); const exchangeInstance = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const isValidSignature = await exchangeInstance.allowedValidators.callAsync( const isValidSignature = await exchangeInstance.allowedValidators.callAsync(
normalizedSignerAddress, normalizedSignerAddress,
normalizedValidatorAddress, normalizedValidatorAddress,
txData, callData,
methodOpts.defaultBlock, methodOpts.defaultBlock,
); );
return isValidSignature; return isValidSignature;
@ -892,11 +892,11 @@ export class ExchangeWrapper extends ContractWrapper {
} }
const exchangeInstance = await this._getExchangeContractAsync(); const exchangeInstance = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const isPreSigned = await exchangeInstance.preSigned.callAsync( const isPreSigned = await exchangeInstance.preSigned.callAsync(
hash, hash,
signerAddress, signerAddress,
txData, callData,
methodOpts.defaultBlock, methodOpts.defaultBlock,
); );
return isPreSigned; return isPreSigned;
@ -915,10 +915,10 @@ export class ExchangeWrapper extends ContractWrapper {
assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema);
} }
const exchangeInstance = await this._getExchangeContractAsync(); const exchangeInstance = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const isExecuted = await exchangeInstance.transactions.callAsync( const isExecuted = await exchangeInstance.transactions.callAsync(
transactionHash, transactionHash,
txData, callData,
methodOpts.defaultBlock, methodOpts.defaultBlock,
); );
return isExecuted; return isExecuted;
@ -936,8 +936,8 @@ export class ExchangeWrapper extends ContractWrapper {
assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema);
} }
const exchangeInstance = await this._getExchangeContractAsync(); const exchangeInstance = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const orderInfo = await exchangeInstance.getOrderInfo.callAsync(order, txData, methodOpts.defaultBlock); const orderInfo = await exchangeInstance.getOrderInfo.callAsync(order, callData, methodOpts.defaultBlock);
return orderInfo; return orderInfo;
} }
/** /**
@ -956,8 +956,8 @@ export class ExchangeWrapper extends ContractWrapper {
assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema);
} }
const exchangeInstance = await this._getExchangeContractAsync(); const exchangeInstance = await this._getExchangeContractAsync();
const txData = undefined; const callData = {};
const ordersInfo = await exchangeInstance.getOrdersInfo.callAsync(orders, txData, methodOpts.defaultBlock); const ordersInfo = await exchangeInstance.getOrdersInfo.callAsync(orders, callData, methodOpts.defaultBlock);
return ordersInfo; return ordersInfo;
} }
/** /**