@keplr-wallet/stores 0.12.271 → 0.12.273-alpha.0
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/build/account/base.d.ts +8 -6
- package/build/account/base.js +24 -7
- package/build/account/base.js.map +1 -1
- package/build/account/cosmos.js +5 -66
- package/build/account/cosmos.js.map +1 -1
- package/build/account/store.d.ts +5 -5
- package/build/account/store.js.map +1 -1
- package/build/account/types.d.ts +4 -0
- package/build/chain/base.d.ts +1 -2
- package/build/chain/base.js +2 -14
- package/build/chain/base.js.map +1 -1
- package/build/query/cosmos/evm/feemarket/index.d.ts +11 -0
- package/build/query/cosmos/evm/feemarket/index.js +24 -0
- package/build/query/cosmos/evm/feemarket/index.js.map +1 -0
- package/build/query/cosmos/evm/feemarket/types.d.ts +3 -0
- package/build/query/cosmos/evm/feemarket/types.js +3 -0
- package/build/query/cosmos/evm/feemarket/types.js.map +1 -0
- package/build/query/cosmos/queries.d.ts +2 -0
- package/build/query/cosmos/queries.js +4 -2
- package/build/query/cosmos/queries.js.map +1 -1
- package/package.json +11 -11
- package/src/account/base.ts +25 -10
- package/src/account/cosmos.ts +14 -82
- package/src/account/store.ts +4 -4
- package/src/account/types.ts +5 -0
- package/src/chain/base.ts +2 -17
- package/src/query/cosmos/evm/feemarket/index.ts +37 -0
- package/src/query/cosmos/evm/feemarket/types.ts +3 -0
- package/src/query/cosmos/queries.ts +7 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ObservableChainQuery } from "../../../chain-query";
|
|
2
|
+
import { BaseFee } from "./types";
|
|
3
|
+
import { QuerySharedContext } from "../../../../common";
|
|
4
|
+
import { ChainGetter } from "../../../../chain";
|
|
5
|
+
import { makeObservable } from "mobx";
|
|
6
|
+
import { Dec } from "@keplr-wallet/unit";
|
|
7
|
+
|
|
8
|
+
export class ObservableQueryEvmFeeMarketBaseFee extends ObservableChainQuery<BaseFee> {
|
|
9
|
+
constructor(
|
|
10
|
+
sharedContext: QuerySharedContext,
|
|
11
|
+
chainId: string,
|
|
12
|
+
chainGetter: ChainGetter
|
|
13
|
+
) {
|
|
14
|
+
super(
|
|
15
|
+
sharedContext,
|
|
16
|
+
chainId,
|
|
17
|
+
chainGetter,
|
|
18
|
+
"/cosmos/evm/feemarket/v1/base_fee"
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
makeObservable(this);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get baseFee(): {
|
|
25
|
+
amount: Dec | null;
|
|
26
|
+
} {
|
|
27
|
+
if (!this.response || !this.response.data.base_fee) {
|
|
28
|
+
return {
|
|
29
|
+
amount: null,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
amount: new Dec(this.response.data.base_fee),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -24,6 +24,7 @@ import { ObservableQueryDistributionParams } from "./distribution";
|
|
|
24
24
|
import { ObservableQueryRPCStatus } from "./status";
|
|
25
25
|
import { ObservableQueryAuthZGranter } from "./authz";
|
|
26
26
|
import { QuerySharedContext } from "../../common";
|
|
27
|
+
import { ObservableQueryEvmFeeMarketBaseFee } from "./evm/feemarket";
|
|
27
28
|
import { ObservableQueryFeeMarketGasPrices } from "./feemarket";
|
|
28
29
|
import { ObservableQueryIBCClientStateV2 } from "./ibc/client-state-v2";
|
|
29
30
|
import { ObservableQueryInitiaUnbondingDelegations } from "./staking/initia-unbonding-delegations";
|
|
@@ -84,6 +85,7 @@ export class CosmosQueriesImpl {
|
|
|
84
85
|
public readonly queryAuthZGranter: DeepReadonly<ObservableQueryAuthZGranter>;
|
|
85
86
|
|
|
86
87
|
public readonly queryFeeMarketGasPrices: DeepReadonly<ObservableQueryFeeMarketGasPrices>;
|
|
88
|
+
public readonly queryEvmFeeMarketBaseFee: DeepReadonly<ObservableQueryEvmFeeMarketBaseFee>;
|
|
87
89
|
|
|
88
90
|
constructor(
|
|
89
91
|
base: QueriesSetBase,
|
|
@@ -202,5 +204,10 @@ export class CosmosQueriesImpl {
|
|
|
202
204
|
chainId,
|
|
203
205
|
chainGetter
|
|
204
206
|
);
|
|
207
|
+
this.queryEvmFeeMarketBaseFee = new ObservableQueryEvmFeeMarketBaseFee(
|
|
208
|
+
sharedContext,
|
|
209
|
+
chainId,
|
|
210
|
+
chainGetter
|
|
211
|
+
);
|
|
205
212
|
}
|
|
206
213
|
}
|