Creates a new SmartContract instance.
The SmartContract model from the API.
Private
modelReturns whether the SmartContract is external.
True if the SmartContract is external, false otherwise.
Broadcasts the SmartContract deployment to the Network.
The SmartContract object
if the API request to broadcast a SmartContract deployment fails.
Returns the Options of the smart contract.
The Smart Contract Options.
Returns the Transaction of the smart contract deployment.
The Transaction.
Returns the Type of the smart contract.
The Smart Contract Type.
Private
isERC1155Type guard for checking if the smart contract is an ERC1155.
The type of the smart contract.
The options of the smart contract.
True if the smart contract is an ERC1155, false otherwise.
Private
isERC20Type guard for checking if the smart contract is an ERC20.
The type of the smart contract.
The options of the smart contract.
True if the smart contract is an ERC20, false otherwise.
Private
isERC721Type guard for checking if the smart contract is an ERC721.
The type of the smart contract.
The options of the smart contract.
True if the smart contract is an ERC721, false otherwise.
Update a smart contract.
The options to update a smart contract.
The smart contract.
Waits for the SmartContract deployment to be confirmed on the Network or fail on chain. Waits until the SmartContract deployment is completed or failed on-chain by polling at the given interval. Raises an error if the SmartContract deployment takes longer than the given timeout.
The options to configure the wait function.
The interval to check the status of the SmartContract deployment.
The maximum time to wait for the SmartContract deployment to be confirmed.
The SmartContract object in a terminal state.
if the SmartContract deployment times out.
Static
fromConverts a SmartContractModel into a SmartContract object.
The SmartContract model object.
The SmartContract object.
Static
listLists Smart Contracts.
The pagination options.
The paginated list response of Smart Contracts.
Static
listReturns a list of ContractEvents for the provided network, contract, and event details.
The network ID.
The protocol name.
The contract address.
The contract name.
The event name.
The start block height.
The end block height.
The contract events.
Static
registerRegister a smart contract.
The options to register a smart contract.
The smart contract.
A representation of a SmartContract on the blockchain.