Update CHANGELOGs
This commit is contained in:
@@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "0.3.0",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Update ethers-contracts to ethers.js",
|
||||||
|
"pr": 540
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"timestamp": 1524044013,
|
"timestamp": 1524044013,
|
||||||
"version": "0.2.1",
|
"version": "0.2.1",
|
||||||
|
|||||||
@@ -18,12 +18,10 @@ async callAsync(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
|
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
|
||||||
let result = ethersFunction.parse(rawCallResult);
|
let resultArray = ethersFunction.parse(rawCallResult);
|
||||||
|
|
||||||
const outputAbi = (_.find(self.abi, {name: '{{this.name}}'}) as MethodAbi).outputs;
|
const outputAbi = (_.find(self.abi, {name: '{{this.name}}'}) as MethodAbi).outputs;
|
||||||
result = BaseContract._formatABIDataItemList(outputAbi, result, BaseContract._lowercaseAddress.bind(this));
|
resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
|
||||||
result = BaseContract._formatABIDataItemList(outputAbi, result, BaseContract._bnToBigNumber.bind(this));
|
resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
|
||||||
|
return resultArray{{#singleReturnValue}}[0]{{/singleReturnValue}};
|
||||||
return result{{#singleReturnValue}}[0]{{/singleReturnValue}};
|
|
||||||
},
|
},
|
||||||
{{/hasReturnValue}}
|
{{/hasReturnValue}}
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "0.3.0",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Add types for `ethers.js`",
|
||||||
|
"pr": 540
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
|||||||
@@ -23,17 +23,9 @@ declare module 'ethers' {
|
|||||||
export class Interface {
|
export class Interface {
|
||||||
public functions: { [functionName: string]: FunctionDescription };
|
public functions: { [functionName: string]: FunctionDescription };
|
||||||
public events: { [eventName: string]: EventDescription };
|
public events: { [eventName: string]: EventDescription };
|
||||||
// public static decodeParams(types: string[], data: string): any[];
|
|
||||||
constructor(abi: any);
|
constructor(abi: any);
|
||||||
}
|
}
|
||||||
export class Contract {
|
export class Contract {
|
||||||
constructor(address: string, abi: any, provider: any);
|
constructor(address: string, abi: any, provider: any);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'ethers/utils/abi-coder' {
|
|
||||||
export class Coder {
|
|
||||||
public decode(names: any[], types: any[], data?: any[]): any[];
|
|
||||||
defaultCoder: Coder;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "0.6.0",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Update ethers-contracts to ethers.js",
|
||||||
|
"pr": 540
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "0.5.2",
|
"version": "0.5.2",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
|||||||
@@ -61,7 +61,6 @@
|
|||||||
"@0xproject/types": "^0.6.1",
|
"@0xproject/types": "^0.6.1",
|
||||||
"@0xproject/typescript-typings": "^0.2.0",
|
"@0xproject/typescript-typings": "^0.2.0",
|
||||||
"@0xproject/utils": "^0.5.2",
|
"@0xproject/utils": "^0.5.2",
|
||||||
"ethers-contracts": "^2.2.1",
|
|
||||||
"ethers": "^3.0.15",
|
"ethers": "^3.0.15",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.4",
|
||||||
"web3": "^0.20.0"
|
"web3": "^0.20.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user