11syntax = "proto3" ;
22package forge_abi ;
33
4- import "google/protobuf/any.proto" ;
54import "vendor.proto" ;
65import "enum.proto" ;
76import "type.proto" ;
@@ -10,35 +9,6 @@ import "trace_type.proto";
109
1110// Request / Response message definition
1211
13- // create_tx(itx, wallet, token)
14- message RequestCreateTx {
15- google.protobuf.Any itx = 1 ;
16- string from = 2 ;
17- uint64 nonce = 3 ;
18- WalletInfo wallet = 4 ;
19- string token = 5 ;
20- }
21-
22- message ResponseCreateTx {
23- StatusCode code = 1 ;
24- Transaction tx = 2 ;
25- }
26-
27- // multisig(tx, wallet, token)
28- message RequestMultisig {
29- Transaction tx = 1 ;
30- // extra data for multisig
31- google.protobuf.Any data = 2 ;
32- WalletInfo wallet = 3 ;
33- string token = 4 ;
34- string delegatee = 5 ;
35- }
36-
37- message ResponseMultisig {
38- StatusCode code = 1 ;
39- Transaction tx = 2 ;
40- }
41-
4212// send_tx(tx, wallet, token, commit \\ false)
4313message RequestSendTx {
4414 Transaction tx = 1 ;
@@ -80,60 +50,6 @@ message ResponseGetBlocks {
8050 repeated BlockInfoSimple blocks = 3 ;
8151}
8252
83- // create_wallet(moniker, passphrase): create an account locally
84- message RequestCreateWallet {
85- string passphrase = 1 ;
86- WalletType type = 2 ;
87- string moniker = 3 ;
88- }
89-
90- message ResponseCreateWallet {
91- StatusCode code = 1 ;
92- string token = 2 ;
93- WalletInfo wallet = 3 ;
94- }
95-
96- // load_wallet(address, passphrase): load account to memory with given
97- // passphrase
98- message RequestLoadWallet {
99- string address = 1 ;
100- string passphrase = 2 ;
101- }
102-
103- message ResponseLoadWallet {
104- StatusCode code = 1 ;
105- string token = 2 ;
106- WalletInfo wallet = 3 ;
107- }
108-
109- // recover_wallet(data, passphrase): recover to a keystore with given
110- // passphrase. data could be seed words or bytes of secret key.
111- message RequestRecoverWallet {
112- bytes data = 1 ;
113- WalletType type = 2 ;
114- string passphrase = 3 ;
115- string moniker = 4 ;
116- }
117-
118- message ResponseRecoverWallet {
119- StatusCode code = 1 ;
120- string token = 2 ;
121- WalletInfo wallet = 3 ;
122- }
123-
124- // list_wallet(): list accounts stored in this node
125- message RequestListWallet {}
126-
127- message ResponseListWallet {
128- StatusCode code = 1 ;
129- string address = 2 ;
130- }
131-
132- // remove_wallet(hash): remove account by hash for this node
133- message RequestRemoveWallet { string address = 1 ; }
134-
135- message ResponseRemoveWallet { StatusCode code = 1 ; }
136-
13753message RequestDeclareNode { bool validator = 1 ; }
13854
13955message ResponseDeclareNode {
@@ -200,17 +116,6 @@ message ResponseGetForgeState {
200116 ForgeState state = 2 ;
201117}
202118
203- message RequestGetTetherState {
204- string address = 1 ;
205- repeated string keys = 2 ;
206- uint64 height = 3 ;
207- }
208-
209- message ResponseGetTetherState {
210- StatusCode code = 1 ;
211- TetherState state = 2 ;
212- }
213-
214119message RequestGetSwapState {
215120 string address = 1 ;
216121 repeated string keys = 2 ;
@@ -321,32 +226,42 @@ message ResponseSubscribe {
321226 Transaction confirm = 5 ;
322227 Transaction create_asset = 6 ;
323228 Transaction exchange = 7 ;
324- Transaction revoke = 8 ;
229+ Transaction revoke = 8 [ deprecated = true ] ;
325230
326231 abci_vendor.RequestBeginBlock begin_block = 16 ;
327232 abci_vendor.RequestEndBlock end_block = 17 ;
328233
329234 Transaction declare = 19 ;
330235 Transaction update_asset = 20 ;
331236 Transaction consensus_upgrade = 21 ;
332- Transaction declare_file = 22 ;
237+ Transaction declare_file = 22 [ deprecated = true ] ;
333238 Transaction sys_upgrade = 23 ;
334239 Transaction stake = 24 ;
335240 Transaction delegate = 25 ;
336- Transaction activate_protocol = 26 ;
337- Transaction deactivate_protocol = 27 ;
338- Transaction revoke_delegate = 28 ;
339- Transaction deposit_token = 29 ;
340- Transaction withdraw_token = 30 ;
341- Transaction approve_withdraw = 31 ;
342- Transaction revoke_withdraw = 32 ;
241+ Transaction activate_protocol = 26 ;
242+ Transaction deactivate_protocol = 27 ;
243+ Transaction revoke_delegate = 28 ;
244+ Transaction deposit_token = 29 ;
245+ Transaction withdraw_token = 30 ;
246+ Transaction approve_withdraw = 31 ;
247+ Transaction revoke_withdraw = 32 ;
248+ Transaction setup_swap = 33 ;
249+ Transaction revoke_swap = 34 ;
250+ Transaction retrieve_swap = 35 ;
251+ Transaction poke = 36 ;
252+ Transaction deploy_protocol = 37 ;
253+ Transaction consume_asset = 38 ;
254+ Transaction acquire_asset = 39 ;
255+ Transaction upgrade_node = 40 ;
256+
343257
344258 AccountState account_state = 129 ;
345259 AssetState asset_state = 130 ;
346260 ForgeState forge_state = 131 ;
347261 StakeState stake_state = 132 ;
348262 ProtocolState protocol_state = 133 ;
349263 DelegateState delegate_state = 134 ;
264+ SwapState swap_state = 135 ;
350265 }
351266}
352267
@@ -457,20 +372,6 @@ message ResponseListBlocks {
457372 repeated IndexedBlock blocks = 3 ;
458373}
459374
460- message RequestListTethers {
461- PageInput paging = 1 ;
462- string depositor = 2 ;
463- string withdrawer = 3 ;
464- string custodian = 4 ;
465- bool available = 5 ;
466- }
467-
468- message ResponseListTethers {
469- StatusCode code = 1 ;
470- PageInfo page = 2 ;
471- repeated TetherState tethers = 3 ;
472- }
473-
474375message RequestListSwap {
475376 PageInput paging = 1 ;
476377 string sender = 2 ;
0 commit comments