Acala Developers
EVM Predeploy Contract
You can use this predeploy contract to call evm pallet
This contracts will interact with evm pallet
function developerDeposit() external view returns (uint256)
Get deposit for the developer.
Name | Type | Description |
---|---|---|
_0 | uint256 | Returns the const of DeveloperDeposit. |
function developerDisable() external nonpayable returns (bool)
Disables account for development mode, returns deposit.
It'll emit an {DeveloperDisabled} event.
Name | Type | Description |
---|---|---|
_0 | bool | Returns a boolean value indicating whether the operation succeeded. |
function developerEnable() external nonpayable returns (bool)
Enables account for development mode, taking a deposit.
It'll emit an {DeveloperEnabled} event.
Name | Type | Description |
---|---|---|
_0 | bool | Returns a boolean value indicating whether the operation succeeded. |
function developerStatus(address account) external view returns (bool)
Get developer status.
Name | Type | Description |
---|---|---|
account | address | The developer account. |
Name | Type | Description |
---|---|---|
_0 | bool | Returns if the account is enabled for developer mode. |
function maintainerOf(address contractAddress) external view returns (address)
Get the maintainer of the contract.
Name | Type | Description |
---|---|---|
contractAddress | address | The contract address. |
Name | Type | Description |
---|---|---|
_0 | address | Returns the maintainer of the contract. |
function newContractExtraBytes() external view returns (uint256)
Get the extra bytes for creating a contract.
Name | Type | Description |
---|---|---|
_0 | uint256 | Returns the const of NewContractExtraBytes. |
function publicationFee() external view returns (uint256)
Get the fee for publishing the contract.
Name | Type | Description |
---|---|---|
_0 | uint256 | Returns the const of PublicationFee. |
function publishContract(address contractAddress) external nonpayable returns (bool)
Publish contract.
It'll emit an {ContractPublished} event.
Name | Type | Description |
---|---|---|
contractAddress | address | The contract address. |
Name | Type | Description |
---|---|---|
_0 | bool | Returns a boolean value indicating whether the operation succeeded. |
function storageDepositPerByte() external view returns (uint256)
Get the storage required for per byte.
Name | Type | Description |
---|---|---|
_0 | uint256 | Returns the const of StorageDepositPerByte. |
function transferMaintainer(address contractAddress, address newMaintainer) external nonpayable returns (bool)
Transfer the maintainer of the contract.
It'll emit an {TransferredMaintainer} event.
Name | Type | Description |
---|---|---|
contractAddress | address | The contract address of the transfer maintainer. It cannot be the zero address. The caller must be the contract's maintainer. |
newMaintainer | address | The address of the new maintainer. |
Name | Type | Description |
---|---|---|
_0 | bool | Returns a boolean value indicating whether the operation succeeded. |
event ContractPublished(address indexed contractAddress)
Contract published event.
Name | Type | Description |
---|---|---|
contractAddress indexed |
address | The published contract address. |
event DeveloperDisabled(address indexed accountAddress)
Disabled developer event.
Name | Type | Description |
---|---|---|
accountAddress indexed |
address | The disabled developer account address. |
event DeveloperEnabled(address indexed accountAddress)
Enabled developer event.
Name | Type | Description |
---|---|---|
accountAddress indexed |
address | The enabled developer account address. |
event TransferredMaintainer(address indexed contractAddress, address indexed newMaintainer)
Transferred maintainer event.
Name | Type | Description |
---|---|---|
contractAddress indexed |
address | The contract address of the transferred maintainer. |
newMaintainer indexed |
address | The new maintainer. |