@initia/initia.js 0.2.30 → 0.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ const serializedNone = bcs.option(bcs.u64()).serialize(null)
|
|
|
86
86
|
|
|
87
87
|
### Msg 
|
|
88
88
|
|
|
89
|
-
Msgs are
|
|
89
|
+
Msgs are objects whose end-goal is to trigger state-transitions. They are wrapped in transactions, which may contain one or more of them.
|
|
90
90
|
|
|
91
91
|
* `MsgSend()` 
|
|
92
92
|
|
|
@@ -185,7 +185,7 @@ const signedTx = await wallet.createAndSignTx({
|
|
|
185
185
|
})
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
When sending coins with `MsgSend`, sender address should be same
|
|
188
|
+
When sending coins with `MsgSend`, sender address should be the same as wallet address.
|
|
189
189
|
|
|
190
190
|
* `broadcast()`
|
|
191
191
|
|
|
@@ -18,6 +18,7 @@ export declare class MstakingAPI extends BaseAPI {
|
|
|
18
18
|
unbondingDelegation(delegator?: AccAddress, validator?: ValAddress): Promise<UnbondingDelegation>;
|
|
19
19
|
redelegations(delegator: AccAddress, src_validator_addr?: ValAddress, dst_validator_addr?: ValAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Redelegation[], Pagination]>;
|
|
20
20
|
bondedValidators(delegator: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Validator[], Pagination]>;
|
|
21
|
+
totalDelegationBalance(delegator: AccAddress, params?: APIParams): Promise<Coins>;
|
|
21
22
|
validators(params?: Partial<PaginationOptions & APIParams>): Promise<[Validator[], Pagination]>;
|
|
22
23
|
validator(validator: ValAddress, params?: APIParams): Promise<Validator>;
|
|
23
24
|
pool(params?: APIParams): Promise<MstakingPool>;
|
|
@@ -41,7 +41,7 @@ export declare namespace StakeAuthorization {
|
|
|
41
41
|
type Type = AuthorizationType;
|
|
42
42
|
const Type: typeof AuthorizationType;
|
|
43
43
|
interface Amino {
|
|
44
|
-
type: '
|
|
44
|
+
type: 'mstaking/StakeAuthorization';
|
|
45
45
|
value: {
|
|
46
46
|
max_tokens: Coins.Amino;
|
|
47
47
|
allow_list: StakeAuthorizationValidators.Amino;
|