Skip to content

Commit

Permalink
update airdrop workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacky.li committed Feb 9, 2024
1 parent 577b304 commit 44288fc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions codecs/runtime-codec/proto/actor-tappstore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ message QueryReferenceRewardAccountRequest {
}
message QueryAirdropTaskRequest {
string acct = 1;
bytes teaId = 2;
}

message CommonSqlQueryResponse {
Expand Down
2 changes: 2 additions & 0 deletions codecs/runtime-codec/src/tapp/fluencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ pub struct AirdropTaskInfo {
pub r#type: String,
pub balance: Option<Balance>,
pub description: String,
pub game_url: String,
pub doc_url: String,
}
15 changes: 15 additions & 0 deletions system-actors/src/tappstore/txns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,21 @@ pub enum TappstoreTxn {
reward_type: String,
reward_text: String,
description: String,
tea_id: Vec<u8>,
game_url: String,
doc_url: String,
},
AirdropUpdateTask {
token_id: TokenId,
owner: Account,
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,
Expand Down

0 comments on commit 44288fc

Please sign in to comment.