Enum tea_sdk::actors::tappstore::txns::TappstoreTxn
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
GenSessionKey
TransferTea
Topup
Fields
§
item: TopupEventItem
Withdraw
PayToApp
SqlTest
ExtendAuthkey
NewTApp
UpdateTApp
Fields
BuyTappToken
SellTappToken
SellAllToken
ConsumeTappToken
ExpenseTappToken
ScheduledExpenseTappToken
StartMining
StopMining
ResumeMining
CmlScheduleDown
CmlScheduleUp
CmlMigrate
UpdateNodeProfile
UpdateSeatProfile
RaResponse
Fields
ResetTappStartup
RAReward
UniversalBasicIncome
FavTapp
UnFavTapp
SeatInit
BuySeat
UpdateSeatEstimate
GiveupSeatOwnership
RefillUsdtDeposit
AdminAddSeat
AdminDeleteSeat
InternalCronjobAction
RegisterMachine
TransferMachine
RegisterForLeaderboard
SetAllowance
PaymentGasFromBillingActor
AdminGenerateNewSeed
BidForSeed
ClaimForSeed
TwitterRetweetFaucetForAccount
FluencerAddCandidate
ScheduledArrangeRaStatus
CacheOtpForEmailLogin
LoginWithEmailAndOtp
UpgradeEnclaveVersion
Fields
UpgradeClientVersion
RegisterMultisigInfo
UpdateMutisigInfo
UnregisterMultisigInfo
FreezeState
CancelLastFreeze
ResetVersionExpiration
AddVersionPcrs
RemoveVersionPcrs
DoubleCheckTopup
AdminUpdateTxnGasFee
UpdateTAppForDevportal
Fields
ActivateActor
AddErrorLogForTApp
RemoveErrorLogForTApp
AdminStartCreditEvent
CheckToEndCreditSystem
PaymentGasSecondStep
AdminAddGlobalCredit
AdminTransferBalance
AddReferenceAccountForReward
BurnTeaCarefully
AirdropAddTask
Fields
AirdropUpdateTask
Fields
AirdropRemoveTask
AirdropLoadTokenWithCredit
AirdropLoadToken
AirdropUnloadToken
AirdropUnloadBatchToken
TransferToken
Trait Implementations§
§impl Debug for TappstoreTxn
impl Debug for TappstoreTxn
§impl<'de> Deserialize<'de> for TappstoreTxn
impl<'de> Deserialize<'de> for TappstoreTxn
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TappstoreTxn, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
impl Display for TappstoreTxn
§impl IntoSerial for TappstoreTxn
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
impl Serialize for TappstoreTxn
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
impl Transferable for TappstoreTxn
§fn get_handler_actor() -> Vec<u8> ⓘ
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§
impl RefUnwindSafe for TappstoreTxn
impl Send for TappstoreTxn
impl Sync for TappstoreTxn
impl Unpin for TappstoreTxn
impl UnwindSafe for TappstoreTxn
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more