aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-12-19 13:44:26 +0800
committerGreg Hysen <greg.hysen@gmail.com>2019-01-15 02:49:29 +0800
commit2f1454e90e5fd7d85c4deb3a8c674043e8a14564 (patch)
tree65ce021b55cf9e384e808bba94b2979d9c73f170 /packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts
parentb89f9869492e369370bcef593d69e59172f13da4 (diff)
downloaddexon-sol-tools-2f1454e90e5fd7d85c4deb3a8c674043e8a14564.tar
dexon-sol-tools-2f1454e90e5fd7d85c4deb3a8c674043e8a14564.tar.gz
dexon-sol-tools-2f1454e90e5fd7d85c4deb3a8c674043e8a14564.tar.bz2
dexon-sol-tools-2f1454e90e5fd7d85c4deb3a8c674043e8a14564.tar.lz
dexon-sol-tools-2f1454e90e5fd7d85c4deb3a8c674043e8a14564.tar.xz
dexon-sol-tools-2f1454e90e5fd7d85c4deb3a8c674043e8a14564.tar.zst
dexon-sol-tools-2f1454e90e5fd7d85c4deb3a8c674043e8a14564.zip
Working for almost every test
Diffstat (limited to 'packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts')
-rw-r--r--packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts67
1 files changed, 13 insertions, 54 deletions
diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts b/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts
index 37a0f4ae5..7205b7bf2 100644
--- a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts
+++ b/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts
@@ -70,12 +70,8 @@ export class ERC721TokenContract extends BaseContract {
);
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
BaseContract._throwIfRevertWithReasonCallResult(rawCallResult);
- const decodingRules = {structsAsObjects: false};
- let resultArray = abiEncoder.decodeReturnValues(rawCallResult, decodingRules);
- const outputAbi = (_.find(self.abi, {name: 'getApproved'}) as MethodAbi).outputs;
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
- return resultArray[0];
+ let resultArray = abiEncoder.decodeReturnValuesAsArray(rawCallResult, {structsAsObjects: true});
+ return resultArray[0];
},
};
public approve = {
@@ -166,12 +162,7 @@ export class ERC721TokenContract extends BaseContract {
);
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
BaseContract._throwIfRevertWithReasonCallResult(rawCallResult);
- const decodingRules = {structsAsObjects: false};
- let resultArray = abiEncoder.decodeReturnValues(rawCallResult, decodingRules);
- const outputAbi = (_.find(self.abi, {name: 'approve'}) as MethodAbi).outputs;
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
- return resultArray;
+ return;
},
};
public transferFrom = {
@@ -273,12 +264,7 @@ export class ERC721TokenContract extends BaseContract {
);
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
BaseContract._throwIfRevertWithReasonCallResult(rawCallResult);
- const decodingRules = {structsAsObjects: false};
- let resultArray = abiEncoder.decodeReturnValues(rawCallResult, decodingRules);
- const outputAbi = (_.find(self.abi, {name: 'transferFrom'}) as MethodAbi).outputs;
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
- return resultArray;
+ return;
},
};
public safeTransferFrom1 = {
@@ -380,12 +366,7 @@ export class ERC721TokenContract extends BaseContract {
);
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
BaseContract._throwIfRevertWithReasonCallResult(rawCallResult);
- const decodingRules = {structsAsObjects: false};
- let resultArray = abiEncoder.decodeReturnValues(rawCallResult, decodingRules);
- const outputAbi = (_.find(self.abi, {name: 'safeTransferFrom'}) as MethodAbi).outputs;
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
- return resultArray;
+ return;
},
};
public ownerOf = {
@@ -414,12 +395,8 @@ export class ERC721TokenContract extends BaseContract {
);
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
BaseContract._throwIfRevertWithReasonCallResult(rawCallResult);
- const decodingRules = {structsAsObjects: false};
- let resultArray = abiEncoder.decodeReturnValues(rawCallResult, decodingRules);
- const outputAbi = (_.find(self.abi, {name: 'ownerOf'}) as MethodAbi).outputs;
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
- return resultArray[0];
+ let resultArray = abiEncoder.decodeReturnValuesAsArray(rawCallResult, {structsAsObjects: true});
+ return resultArray[0];
},
};
public balanceOf = {
@@ -448,12 +425,8 @@ export class ERC721TokenContract extends BaseContract {
);
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
BaseContract._throwIfRevertWithReasonCallResult(rawCallResult);
- const decodingRules = {structsAsObjects: false};
- let resultArray = abiEncoder.decodeReturnValues(rawCallResult, decodingRules);
- const outputAbi = (_.find(self.abi, {name: 'balanceOf'}) as MethodAbi).outputs;
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
- return resultArray[0];
+ let resultArray = abiEncoder.decodeReturnValuesAsArray(rawCallResult, {structsAsObjects: true});
+ return resultArray[0];
},
};
public setApprovalForAll = {
@@ -544,12 +517,7 @@ export class ERC721TokenContract extends BaseContract {
);
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
BaseContract._throwIfRevertWithReasonCallResult(rawCallResult);
- const decodingRules = {structsAsObjects: false};
- let resultArray = abiEncoder.decodeReturnValues(rawCallResult, decodingRules);
- const outputAbi = (_.find(self.abi, {name: 'setApprovalForAll'}) as MethodAbi).outputs;
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
- return resultArray;
+ return;
},
};
public safeTransferFrom2 = {
@@ -662,12 +630,7 @@ export class ERC721TokenContract extends BaseContract {
);
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
BaseContract._throwIfRevertWithReasonCallResult(rawCallResult);
- const decodingRules = {structsAsObjects: false};
- let resultArray = abiEncoder.decodeReturnValues(rawCallResult, decodingRules);
- const outputAbi = (_.find(self.abi, {name: 'safeTransferFrom'}) as MethodAbi).outputs;
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
- return resultArray;
+ return;
},
};
public isApprovedForAll = {
@@ -700,12 +663,8 @@ export class ERC721TokenContract extends BaseContract {
);
const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock);
BaseContract._throwIfRevertWithReasonCallResult(rawCallResult);
- const decodingRules = {structsAsObjects: false};
- let resultArray = abiEncoder.decodeReturnValues(rawCallResult, decodingRules);
- const outputAbi = (_.find(self.abi, {name: 'isApprovedForAll'}) as MethodAbi).outputs;
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this));
- resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this));
- return resultArray[0];
+ let resultArray = abiEncoder.decodeReturnValuesAsArray(rawCallResult, {structsAsObjects: true});
+ return resultArray[0];
},
};
public static async deployFrom0xArtifactAsync(