Skip to content

Latest commit

 

History

History
274 lines (155 loc) · 4.89 KB

File metadata and controls

274 lines (155 loc) · 4.89 KB

EVM

Acala Developers

EVM Predeploy Contract

You can use this predeploy contract to call evm pallet

This contracts will interact with evm pallet

Methods

developerDeposit

function developerDeposit() external view returns (uint256)

Get deposit for the developer.

Returns

Name Type Description
_0 uint256 Returns the const of DeveloperDeposit.

developerDisable

function developerDisable() external nonpayable returns (bool)

Disables account for development mode, returns deposit.

It'll emit an {DeveloperDisabled} event.

Returns

Name Type Description
_0 bool Returns a boolean value indicating whether the operation succeeded.

developerEnable

function developerEnable() external nonpayable returns (bool)

Enables account for development mode, taking a deposit.

It'll emit an {DeveloperEnabled} event.

Returns

Name Type Description
_0 bool Returns a boolean value indicating whether the operation succeeded.

developerStatus

function developerStatus(address account) external view returns (bool)

Get developer status.

Parameters

Name Type Description
account address The developer account.

Returns

Name Type Description
_0 bool Returns if the account is enabled for developer mode.

maintainerOf

function maintainerOf(address contractAddress) external view returns (address)

Get the maintainer of the contract.

Parameters

Name Type Description
contractAddress address The contract address.

Returns

Name Type Description
_0 address Returns the maintainer of the contract.

newContractExtraBytes

function newContractExtraBytes() external view returns (uint256)

Get the extra bytes for creating a contract.

Returns

Name Type Description
_0 uint256 Returns the const of NewContractExtraBytes.

publicationFee

function publicationFee() external view returns (uint256)

Get the fee for publishing the contract.

Returns

Name Type Description
_0 uint256 Returns the const of PublicationFee.

publishContract

function publishContract(address contractAddress) external nonpayable returns (bool)

Publish contract.

It'll emit an {ContractPublished} event.

Parameters

Name Type Description
contractAddress address The contract address.

Returns

Name Type Description
_0 bool Returns a boolean value indicating whether the operation succeeded.

storageDepositPerByte

function storageDepositPerByte() external view returns (uint256)

Get the storage required for per byte.

Returns

Name Type Description
_0 uint256 Returns the const of StorageDepositPerByte.

transferMaintainer

function transferMaintainer(address contractAddress, address newMaintainer) external nonpayable returns (bool)

Transfer the maintainer of the contract.

It'll emit an {TransferredMaintainer} event.

Parameters

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.

Returns

Name Type Description
_0 bool Returns a boolean value indicating whether the operation succeeded.

Events

ContractPublished

event ContractPublished(address indexed contractAddress)

Contract published event.

Parameters

Name Type Description
contractAddress indexed address The published contract address.

DeveloperDisabled

event DeveloperDisabled(address indexed accountAddress)

Disabled developer event.

Parameters

Name Type Description
accountAddress indexed address The disabled developer account address.

DeveloperEnabled

event DeveloperEnabled(address indexed accountAddress)

Enabled developer event.

Parameters

Name Type Description
accountAddress indexed address The enabled developer account address.

TransferredMaintainer

event TransferredMaintainer(address indexed contractAddress, address indexed newMaintainer)

Transferred maintainer event.

Parameters

Name Type Description
contractAddress indexed address The contract address of the transferred maintainer.
newMaintainer indexed address The new maintainer.