Enum evm_utils::SubCommands[][src]

pub(crate) enum SubCommands {
    SendRawTx {
        raw_tx: String,
    },
    TransferToEvm {
        amount: u64,
        ether_address: Hex<Address>,
    },
    FindBlockHeader {
        expected_block_hash: Hex<H256>,
        range: u64,
        file: String,
    },
    PrintEvmAddress {
        secret_key: SecretKey,
    },
    GetEvmBalance {
        secret_key: Option<SecretKey>,
        address: Option<Hex<Address>>,
    },
    CreateDummy {
        tx_file: String,
        contract_code: Option<String>,
    },
    CallDummy {
        create_tx: String,
        tx_file: String,
        abi: Option<String>,
    },
    ParseArray {
        array: String,
    },
}

Variants

SendRawTx

Broadcast raw ethereum transaction.

Fields of SendRawTx

raw_tx: String

A path to a file where raw transaction is stored in bincode encoding.

TransferToEvm

Transfer native chain token to EVM world.

Fields of TransferToEvm

amount: u64

Amount in plancks

ether_address: Hex<Address>

Address in EVM, that will receive tokens

FindBlockHeader

At some point in our history, in database was found incorrect blocks (native chain slots was changed). In order to recover that blocks from database, we found a solution.

Fields of FindBlockHeader

expected_block_hash: Hex<H256>range: u64file: String
PrintEvmAddress

Print EVM address.

Fields of PrintEvmAddress

secret_key: SecretKey

HEX representated private key.

GetEvmBalance

Print EVM address.

Fields of GetEvmBalance

secret_key: Option<SecretKey>

HEX representated private key.

address: Option<Hex<Address>>
CreateDummy

DEBUG: Create dummy “CREATE” transaction.

Fields of CreateDummy

tx_file: Stringcontract_code: Option<String>
CallDummy

DEBUG: Create dummy “CALL” transaction.

Fields of CallDummy

create_tx: Stringtx_file: Stringabi: Option<String>
ParseArray

DEBUG: Parse binary array as hex/utf8.

Fields of ParseArray

array: String

Trait Implementations

impl Debug for SubCommands[src]

impl ParseArgs for SubCommands[src]

type Error = Error

Error type. Read more

impl StructOpt for SubCommands[src]

impl StructOptInternal for SubCommands[src]

Auto Trait Implementations

impl RefUnwindSafe for SubCommands

impl Send for SubCommands

impl Sync for SubCommands

impl Unpin for SubCommands

impl UnwindSafe for SubCommands

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]