Update CHANGELOGs

This commit is contained in:
Jacob Evans
2018-04-19 16:54:42 +10:00
parent 4bee63afc6
commit 5c232b6a8d
6 changed files with 31 additions and 15 deletions

View File

@@ -1,4 +1,13 @@
[
{
"version": "0.3.0",
"changes": [
{
"note": "Update ethers-contracts to ethers.js",
"pr": 540
}
]
},
{
"timestamp": 1524044013,
"version": "0.2.1",

View File

@@ -18,12 +18,10 @@ async callAsync(
}
)
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;
result = BaseContract._formatABIDataItemList(outputAbi, result, BaseContract._lowercaseAddress.bind(this));
result = BaseContract._formatABIDataItemList(outputAbi, result, BaseContract._bnToBigNumber.bind(this));
return result{{#singleReturnValue}}[0]{{/singleReturnValue}};
resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
return resultArray{{#singleReturnValue}}[0]{{/singleReturnValue}};
},
{{/hasReturnValue}}

View File

@@ -1,4 +1,13 @@
[
{
"version": "0.3.0",
"changes": [
{
"note": "Add types for `ethers.js`",
"pr": 540
}
]
},
{
"version": "0.2.0",
"changes": [

View File

@@ -23,17 +23,9 @@ declare module 'ethers' {
export class Interface {
public functions: { [functionName: string]: FunctionDescription };
public events: { [eventName: string]: EventDescription };
// public static decodeParams(types: string[], data: string): any[];
constructor(abi: any);
}
export class Contract {
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;
}
}

View File

@@ -1,4 +1,13 @@
[
{
"version": "0.6.0",
"changes": [
{
"note": "Update ethers-contracts to ethers.js",
"pr": 540
}
]
},
{
"version": "0.5.2",
"changes": [

View File

@@ -61,7 +61,6 @@
"@0xproject/types": "^0.6.1",
"@0xproject/typescript-typings": "^0.2.0",
"@0xproject/utils": "^0.5.2",
"ethers-contracts": "^2.2.1",
"ethers": "^3.0.15",
"lodash": "^4.17.4",
"web3": "^0.20.0"