pub enum TappstoreTxn {
Show 84 variants GenTappstoreKey, TAppStoreInit, GenAesKey { token_id: TokenId, }, GenSessionKey { token_id: TokenId, acct: H160, pk: Vec<u8>, tea_id: Vec<u8>, data: String, signature: String, }, TransferTea { token_id: TokenId, from: H160, to: H160, amount: U256, all: bool, }, Topup { item: TopupEventItem, }, Withdraw { token_id: TokenId, acct: H160, amount: U256, all: bool, }, PayToApp { token_id: TokenId, pay_to_token_id: TokenId, amount: U256, auth_b64: String, reference: Vec<u8>, }, SqlTest { token_id: TokenId, sql: String, }, ExtendAuthkey { auth_key: u128, new_expire: u128, }, NewTApp { entity_settings: EntitySettings, auth_b64: String, }, UpdateTApp { token_id: TokenId, ticker: String, detail: String, link: String, max_allowed_hosts: u32, tapp_type: String, auth_b64: String, cid: String, }, BuyTappToken { token_id: TokenId, account: H160, amount: U256, auth_b64: String, }, SellTappToken { token_id: TokenId, account: H160, amount: U256, auth_b64: String, }, SellAllToken { token_id: TokenId, account: H160, auth_b64: String, }, ConsumeTappToken { token_id: TokenId, account: H160, tea_amount: U256, auth_b64: String, }, ExpenseTappToken { token_id: TokenId, tea_amount: U256, timestamp: i64, }, ScheduledExpenseTappToken { timestamp: i64, }, StartMining { cml_id: u64, tea_id: Vec<u8>, owner: H160, miner_ip: String, orbitdb_id: Option<String>, }, StopMining { cml_id: u64, owner: H160, }, ResumeMining { cml_id: u64, owner: H160, }, CmlScheduleDown { cml_id: u64, owner: H160, }, CmlScheduleUp { cml_id: u64, owner: H160, }, CmlMigrate { cml_id: u64, owner: H160, tea_id: Option<Vec<u8>>, miner_ip: Option<String>, }, UpdateNodeProfile { profile: TeaNodeProfile, owner: H160, }, UpdateSeatProfile { profile: TeaNodeProfile, owner: H160, }, RaResponse { tea_id: Vec<u8>, profile: Option<TeaNodeProfile>, request_at: i64, valid: bool, is_seat: bool, validators: Vec<H160>, }, ResetTappStartup { items: Vec<TappStartupItem>, old_items: Vec<TappStartupItem>, owner: H160, timestamp: i64, }, RAReward { amount: U256, timestamp: i64, }, UniversalBasicIncome { amount: U256, timestamp: i64, }, FavTapp { user: String, token_id: TokenId, }, UnFavTapp { user: String, token_id: TokenId, }, SeatInit, BuySeat { seat_id: u64, user: H160, price: U256, }, UpdateSeatEstimate { seat_id: u64, user: H160, price: U256, }, GiveupSeatOwnership { seat_id: u64, user: H160, }, RefillUsdtDeposit { seat_id: u64, user: H160, amount: U256, }, AdminAddSeat { seat_id: u64, maintainer: H160, tea_id: Vec<u8>, auth_b64: String, }, AdminDeleteSeat { seat_id: u64, auth_b64: String, }, InternalCronjobAction { target: String, timestamp: i64, }, RegisterMachine { tea_id: Vec<u8>, issuer: H160, owner: H160, signature: Vec<u8>, timestamp: i64, }, TransferMachine { tea_id: Vec<u8>, user: H160, new_owner: H160, }, RegisterForLeaderboard { address: H160, ref_code: String, auth_b64: String, email: String, telegram: String, }, SetAllowance { address: H160, token_id: TokenId, amount: U256, }, PaymentGasFromBillingActor { list: Vec<(AccountId, U256)>, from_miner: bool, tea_id: Vec<u8>, }, AdminGenerateNewSeed { performance: u64, lifespan: u64, version: u64, base_price: U256, step_price: U256, }, BidForSeed { user: H160, cml_key: String, price: U256, auth_b64: String, }, ClaimForSeed { user: H160, cml_key: String, auth_b64: String, }, TwitterRetweetFaucetForAccount { target: H160, twitter_id: String, token_id: String, reward_credit: bool, }, FluencerAddCandidate { type: String, url: String, key: String, user: H160, token_id: String, reward_credit: bool, }, ScheduledArrangeRaStatus { timestamp: i64, }, CacheOtpForEmailLogin { email: String, otp: String, token_id: String, }, LoginWithEmailAndOtp { email: String, otp: String, token_id: String, data: Vec<u8>, }, UpgradeEnclaveVersion { url: String, version: String, modules: Vec<(String, String)>, pcrs: Vec<(PcrType, String)>, auth_b64: String, expire_at: i64, }, UpgradeClientVersion { url: String, version: String, auth_b64: String, expire_at: i64, }, RegisterMultisigInfo { send_at: Tsid, multisig_type: String, payload: Vec<u8>, validators: Vec<Vec<u8>>, }, UpdateMutisigInfo { txn_hash: [u8; 32], }, UnregisterMultisigInfo { txn_hash: [u8; 32], }, FreezeState { request: FreezeRequest, auth_b64: String, }, CancelLastFreeze { auth_b64: String, }, ResetVersionExpiration { auth_b64: String, }, AddVersionPcrs { version: String, pcrs: Vec<(PcrType, String)>, auth_b64: String, expire_at: Option<i64>, }, RemoveVersionPcrs { version: String, auth_b64: String, }, DoubleCheckTopup { timestamp: i64, }, AdminUpdateTxnGasFee { auth_b64: String, txn_name: String, fee: U256, }, UpdateTAppForDevportal { user: H160, auth_b64: String, token_id: TokenId, cid: Option<String>, actor_cid: Option<String>, state_actor_cid: Option<String>, actor_version: Option<u64>, state_actor_version: Option<u64>, dev_status: Option<String>, actor_name: Option<String>, state_actor_name: Option<String>, }, ActivateActor { token_id: TokenId, }, AddErrorLogForTApp { token_id: TokenId, actor_type: String, tea_id: Option<Vec<u8>>, details: String, }, RemoveErrorLogForTApp { token_id: TokenId, actor_type: String, }, AdminStartCreditEvent { amt: U256, end_time: i64, }, CheckToEndCreditSystem { timestamp: i64, }, PaymentGasSecondStep { timestamp: i64, }, AdminAddGlobalCredit { amt: U256, }, AdminTransferBalance { from: H160, to: H160, auth_b64: String, amt: U256, }, AddReferenceAccountForReward { acct: H160, reward_acct: H160, }, BurnTeaCarefully { token_id: TokenId, acct: H160, amt: U256, }, AirdropAddTask { token_id: TokenId, owner: H160, name: String, task_type: String, reward_type: String, reward_text: String, description: String, tea_id: Vec<u8>, game_url: String, doc_url: String, }, AirdropUpdateTask { token_id: TokenId, owner: H160, name: String, task_type: String, reward_type: String, reward_text: String, description: String, tea_id: Vec<u8>, game_url: String, doc_url: String, }, AirdropRemoveTask { token_id: TokenId, owner: H160, }, AirdropLoadTokenWithCredit { token_id: TokenId, from: H160, }, AirdropLoadToken { token_id: TokenId, from: H160, token_amount: U256, }, AirdropUnloadToken { token_id: TokenId, to: H160, token_amount: U256, }, AirdropUnloadBatchToken { token_id: TokenId, to_list: Vec<H160>, amount_list: Vec<U256>, }, TransferToken { token_id: TokenId, from: H160, to: H160, amount: U256, all: bool, },
}

Variants§

§

GenTappstoreKey

§

TAppStoreInit

§

GenAesKey

Fields

§token_id: TokenId
§

GenSessionKey

Fields

§token_id: TokenId
§acct: H160
§pk: Vec<u8>
§tea_id: Vec<u8>
§data: String
§signature: String
§

TransferTea

Fields

§token_id: TokenId
§from: H160
§to: H160
§amount: U256
§all: bool
§

Topup

Fields

§

Withdraw

Fields

§token_id: TokenId
§acct: H160
§amount: U256
§all: bool
§

PayToApp

Fields

§token_id: TokenId
§pay_to_token_id: TokenId
§amount: U256
§auth_b64: String
§reference: Vec<u8>
§

SqlTest

Fields

§token_id: TokenId
§

ExtendAuthkey

Fields

§auth_key: u128
§new_expire: u128
§

NewTApp

Fields

§entity_settings: EntitySettings
§auth_b64: String
§

UpdateTApp

Fields

§token_id: TokenId
§ticker: String
§detail: String
§link: String
§max_allowed_hosts: u32
§tapp_type: String
§auth_b64: String
§

BuyTappToken

Fields

§token_id: TokenId
§account: H160
§amount: U256
§auth_b64: String
§

SellTappToken

Fields

§token_id: TokenId
§account: H160
§amount: U256
§auth_b64: String
§

SellAllToken

Fields

§token_id: TokenId
§account: H160
§auth_b64: String
§

ConsumeTappToken

Fields

§token_id: TokenId
§account: H160
§tea_amount: U256
§auth_b64: String
§

ExpenseTappToken

Fields

§token_id: TokenId
§tea_amount: U256
§timestamp: i64
§

ScheduledExpenseTappToken

Fields

§timestamp: i64
§

StartMining

Fields

§cml_id: u64
§tea_id: Vec<u8>
§owner: H160
§miner_ip: String
§orbitdb_id: Option<String>
§

StopMining

Fields

§cml_id: u64
§owner: H160
§

ResumeMining

Fields

§cml_id: u64
§owner: H160
§

CmlScheduleDown

Fields

§cml_id: u64
§owner: H160
§

CmlScheduleUp

Fields

§cml_id: u64
§owner: H160
§

CmlMigrate

Fields

§cml_id: u64
§owner: H160
§tea_id: Option<Vec<u8>>
§miner_ip: Option<String>
§

UpdateNodeProfile

Fields

§profile: TeaNodeProfile
§owner: H160
§

UpdateSeatProfile

Fields

§profile: TeaNodeProfile
§owner: H160
§

RaResponse

Fields

§tea_id: Vec<u8>
§profile: Option<TeaNodeProfile>
§request_at: i64
§valid: bool
§is_seat: bool
§validators: Vec<H160>
§

ResetTappStartup

Fields

§items: Vec<TappStartupItem>
§old_items: Vec<TappStartupItem>
§owner: H160
§timestamp: i64
§

RAReward

Fields

§amount: U256
§timestamp: i64
§

UniversalBasicIncome

Fields

§amount: U256
§timestamp: i64
§

FavTapp

Fields

§user: String
§token_id: TokenId
§

UnFavTapp

Fields

§user: String
§token_id: TokenId
§

SeatInit

§

BuySeat

Fields

§seat_id: u64
§user: H160
§price: U256
§

UpdateSeatEstimate

Fields

§seat_id: u64
§user: H160
§price: U256
§

GiveupSeatOwnership

Fields

§seat_id: u64
§user: H160
§

RefillUsdtDeposit

Fields

§seat_id: u64
§user: H160
§amount: U256
§

AdminAddSeat

Fields

§seat_id: u64
§maintainer: H160
§tea_id: Vec<u8>
§auth_b64: String
§

AdminDeleteSeat

Fields

§seat_id: u64
§auth_b64: String
§

InternalCronjobAction

Fields

§target: String
§timestamp: i64
§

RegisterMachine

Fields

§tea_id: Vec<u8>
§issuer: H160
§owner: H160
§signature: Vec<u8>
§timestamp: i64
§

TransferMachine

Fields

§tea_id: Vec<u8>
§user: H160
§new_owner: H160
§

RegisterForLeaderboard

Fields

§address: H160
§ref_code: String
§auth_b64: String
§email: String
§telegram: String
§

SetAllowance

Fields

§address: H160
§token_id: TokenId
§amount: U256
§

PaymentGasFromBillingActor

Fields

§list: Vec<(AccountId, U256)>
§from_miner: bool
§tea_id: Vec<u8>
§

AdminGenerateNewSeed

Fields

§performance: u64
§lifespan: u64
§version: u64
§base_price: U256
§step_price: U256
§

BidForSeed

Fields

§user: H160
§cml_key: String
§price: U256
§auth_b64: String
§

ClaimForSeed

Fields

§user: H160
§cml_key: String
§auth_b64: String
§

TwitterRetweetFaucetForAccount

Fields

§target: H160
§twitter_id: String
§token_id: String
§reward_credit: bool
§

FluencerAddCandidate

Fields

§type: String
§user: H160
§token_id: String
§reward_credit: bool
§

ScheduledArrangeRaStatus

Fields

§timestamp: i64
§

CacheOtpForEmailLogin

Fields

§email: String
§token_id: String
§

LoginWithEmailAndOtp

Fields

§email: String
§token_id: String
§data: Vec<u8>
§

UpgradeEnclaveVersion

Fields

§version: String
§modules: Vec<(String, String)>
§pcrs: Vec<(PcrType, String)>
§auth_b64: String
§expire_at: i64
§

UpgradeClientVersion

Fields

§version: String
§auth_b64: String
§expire_at: i64
§

RegisterMultisigInfo

Fields

§send_at: Tsid
§multisig_type: String
§payload: Vec<u8>
§validators: Vec<Vec<u8>>
§

UpdateMutisigInfo

Fields

§txn_hash: [u8; 32]
§

UnregisterMultisigInfo

Fields

§txn_hash: [u8; 32]
§

FreezeState

Fields

§request: FreezeRequest
§auth_b64: String
§

CancelLastFreeze

Fields

§auth_b64: String
§

ResetVersionExpiration

Fields

§auth_b64: String
§

AddVersionPcrs

Fields

§version: String
§pcrs: Vec<(PcrType, String)>
§auth_b64: String
§expire_at: Option<i64>
§

RemoveVersionPcrs

Fields

§version: String
§auth_b64: String
§

DoubleCheckTopup

Fields

§timestamp: i64
§

AdminUpdateTxnGasFee

Fields

§auth_b64: String
§txn_name: String
§fee: U256
§

UpdateTAppForDevportal

Fields

§user: H160
§auth_b64: String
§token_id: TokenId
§actor_cid: Option<String>
§state_actor_cid: Option<String>
§actor_version: Option<u64>
§state_actor_version: Option<u64>
§dev_status: Option<String>
§actor_name: Option<String>
§state_actor_name: Option<String>
§

ActivateActor

Fields

§token_id: TokenId
§

AddErrorLogForTApp

Fields

§token_id: TokenId
§actor_type: String
§tea_id: Option<Vec<u8>>
§details: String
§

RemoveErrorLogForTApp

Fields

§token_id: TokenId
§actor_type: String
§

AdminStartCreditEvent

Fields

§amt: U256
§end_time: i64
§

CheckToEndCreditSystem

Fields

§timestamp: i64
§

PaymentGasSecondStep

Fields

§timestamp: i64
§

AdminAddGlobalCredit

Fields

§amt: U256
§

AdminTransferBalance

Fields

§from: H160
§to: H160
§auth_b64: String
§amt: U256
§

AddReferenceAccountForReward

Fields

§acct: H160
§reward_acct: H160
§

BurnTeaCarefully

Fields

§token_id: TokenId
§acct: H160
§amt: U256
§

AirdropAddTask

Fields

§token_id: TokenId
§owner: H160
§name: String
§task_type: String
§reward_type: String
§reward_text: String
§description: String
§tea_id: Vec<u8>
§game_url: String
§doc_url: String
§

AirdropUpdateTask

Fields

§token_id: TokenId
§owner: H160
§name: String
§task_type: String
§reward_type: String
§reward_text: String
§description: String
§tea_id: Vec<u8>
§game_url: String
§doc_url: String
§

AirdropRemoveTask

Fields

§token_id: TokenId
§owner: H160
§

AirdropLoadTokenWithCredit

Fields

§token_id: TokenId
§from: H160
§

AirdropLoadToken

Fields

§token_id: TokenId
§from: H160
§token_amount: U256
§

AirdropUnloadToken

Fields

§token_id: TokenId
§to: H160
§token_amount: U256
§

AirdropUnloadBatchToken

Fields

§token_id: TokenId
§to_list: Vec<H160>
§amount_list: Vec<U256>
§

TransferToken

Fields

§token_id: TokenId
§from: H160
§to: H160
§amount: U256
§all: bool

Trait Implementations§

§

impl Debug for TappstoreTxn

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for TappstoreTxn

§

fn deserialize<__D>( __deserializer: __D ) -> Result<TappstoreTxn, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for TappstoreTxn

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl IntoSerial for TappstoreTxn

§

type Error = Global

§

fn into_serial( self, nonce: u64, extra: u32, gas_limit: u64 ) -> Result<TxnSerial, <TappstoreTxn as IntoSerial>::Error>

§

impl Serialize for TappstoreTxn

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Transferable for TappstoreTxn

§

fn get_handler_actor() -> Vec<u8>

for each txn derived some_txn, this function will return an unique String. Thie String is the actor_name. the actor will execute this txn and generate the context the context will then commit to the state so make a change
§

impl Txn<'static> for TappstoreTxn

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<'a, T> FromBytes<'a> for Twhere T: IsFromBytes<'a>,

§

default fn from_bytes(buf: &'a [u8]) -> Result<T, Global>

§

impl<T> FromHttpBytes for Twhere T: DeserializeOwned, NotBytesWrapper<T>: NotBytes,

§

default fn from_http_bytes(input: Vec<u8>) -> Result<T, RuntimeCodec>

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoHttpBytes for Twhere T: Serialize, NotBytesWrapper<T>: NotBytes,

§

default fn into_http_bytes(self) -> Result<Vec<u8>, RuntimeCodec>

source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T> ToBytes for Twhere T: IsToBytes,

§

fn to_bytes(&self) -> Result<Vec<u8>, Global>

§

fn bytes_len(&self) -> Result<usize, Global>

§

fn write_to(&self, w: impl SerBuf) -> Result<(), Global>

source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,