You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: golang/cosmos/x/vbank/README.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,11 @@ the bridge to act upon the bank account. Updates to the bank account balance are
9
9
sent over the bridge to update the bank purse, whose balance can be queried
10
10
entirely at the ERTP level.
11
11
12
+
## Parameters
13
+
14
+
-`feeCollectorName`: the module which handles fee distribution to stakers.
15
+
-`feeEpochDuration`: the duration (in seconds) over which fees should be given to the fee collector.
16
+
12
17
## State
13
18
14
19
The Vbank module maintains no significant state, but will access stored state through the bank module.
@@ -29,8 +34,9 @@ The following fields are common to the Vbank messages:
29
34
30
35
Downcalls from JS to Cosmos (by `type`):
31
36
-`VBANK_GET_BALANCE (type, address, denom)`: gets the account balance in the given denomination from the bank. Returns the amount as a string.
32
-
-`VBANK_GRAB (type, sender, denom, amount)`: burns amount of denomination from account balance to reflect withdrawal from virtual purse. Returns a `VBANK_BALANCE_UPDATE` message restricted to the sender account and denomination.
33
37
-`VBANK_GIVE (type, recipeient, denom, amount)`: adds amount of denomination to account balance to reflect a deposit to the virtual purse. Returns a `VBANK_BALANCE_UPDATE` message restricted to the recipient account and denomination.
38
+
-`VBANK_GIVE_TO_FEE_COLLECTOR (type, denom, amount)`: stores rewards which will be gradually sent to the fee collector
39
+
-`VBANK_GRAB (type, sender, denom, amount)`: burns amount of denomination from account balance to reflect withdrawal from virtual purse. Returns a `VBANK_BALANCE_UPDATE` message restricted to the sender account and denomination.
34
40
35
41
Upcalls from Cosmos to JS: (by `type`)
36
42
-`VBANK_BALANCE_UPDATE (type, nonce, updated)`: inform virtual purse of change to the account balance (including a change initiated by VBANK_GRAB or VBANK_GIVE).
0 commit comments