@eluvio/elv-client-js 4.0.66 → 4.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ElvClient-min.js +1 -1
- package/dist/ElvClient-node-min.js +1 -1
- package/dist/ElvFrameClient-min.js +1 -1
- package/dist/ElvWalletClient-min.js +1 -1
- package/dist/ElvWalletClient-node-min.js +1 -1
- package/dist/src/FrameClient.js +1 -1
- package/dist/src/client/Contracts.js +233 -201
- package/package.json +1 -1
- package/src/FrameClient.js +1 -0
- package/src/client/Contracts.js +14 -0
package/package.json
CHANGED
package/src/FrameClient.js
CHANGED
package/src/client/Contracts.js
CHANGED
|
@@ -51,6 +51,20 @@ exports.ContractAbi = async function({contractAddress, id}) {
|
|
|
51
51
|
return contractInfo.abi;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Retrieve the ABI, access type, and whether V3 is used for a given contract via its address or a Fabric ID.
|
|
56
|
+
*
|
|
57
|
+
* @methodGroup Contracts
|
|
58
|
+
* @namedParams
|
|
59
|
+
* @param {string=} id - The Fabric ID of the contract
|
|
60
|
+
* @param {string=} address - The address of the contract
|
|
61
|
+
*
|
|
62
|
+
* @return {Promise<Object>} - The ABI, access type, and isV3 for the given contract
|
|
63
|
+
*/
|
|
64
|
+
exports.ContractInfo = async function({id, address}) {
|
|
65
|
+
return this.authClient.ContractInfo({id, address});
|
|
66
|
+
};
|
|
67
|
+
|
|
54
68
|
/**
|
|
55
69
|
* Format the arguments to be used for the specified method of the contract
|
|
56
70
|
*
|