aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-07-03 21:01:04 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-07-05 21:56:31 +0800
commit6b379a8a0fe0895a5352f79d8d57a88b9ee5bc4a (patch)
treed9f347cdf5187504ef76343592f73c7990500a87 /packages/contract-wrappers/src
parentd1d636f1ca2f1b91c7ac16de7315f0e9566a3080 (diff)
downloaddexon-sol-tools-6b379a8a0fe0895a5352f79d8d57a88b9ee5bc4a.tar
dexon-sol-tools-6b379a8a0fe0895a5352f79d8d57a88b9ee5bc4a.tar.gz
dexon-sol-tools-6b379a8a0fe0895a5352f79d8d57a88b9ee5bc4a.tar.bz2
dexon-sol-tools-6b379a8a0fe0895a5352f79d8d57a88b9ee5bc4a.tar.lz
dexon-sol-tools-6b379a8a0fe0895a5352f79d8d57a88b9ee5bc4a.tar.xz
dexon-sol-tools-6b379a8a0fe0895a5352f79d8d57a88b9ee5bc4a.tar.zst
dexon-sol-tools-6b379a8a0fe0895a5352f79d8d57a88b9ee5bc4a.zip
Add contractWrappers.erc721Proxy.getproxyIdAsync
Diffstat (limited to 'packages/contract-wrappers/src')
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts
index fba995395..648c150df 100644
--- a/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts
+++ b/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts
@@ -20,6 +20,15 @@ export class ERC721ProxyWrapper extends ContractWrapper {
this._contractAddressIfExists = contractAddressIfExists;
}
/**
+ * Get the 4 bytes ID of this asset proxy
+ * @return Proxy id
+ */
+ public async getProxyIdAsync(): Promise<string> {
+ const ERC721ProxyContractInstance = await this._getERC721ProxyContractAsync();
+ const proxyId = await ERC721ProxyContractInstance.getProxyId.callAsync();
+ return proxyId;
+ }
+ /**
* Check if the Exchange contract address is authorized by the ERC721Proxy contract.
* @param exchangeContractAddress The hex encoded address of the Exchange contract to call.
* @return Whether the exchangeContractAddress is authorized.