@initia/interwovenkit-react 2.0.2 → 2.0.4

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/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ import { JSX } from 'react/jsx-runtime';
15
15
  import { OfflineAminoSigner } from '@cosmjs/amino';
16
16
  import { PropsWithChildren } from 'react';
17
17
  import { SimulateResponse } from 'cosmjs-types/cosmos/tx/v1beta1/service';
18
+ import { StdFee } from '@cosmjs/stargate';
18
19
  import { StdSignDoc } from '@cosmjs/amino';
19
20
  import { UseQueryResult } from '@tanstack/react-query';
20
21
  import { Wallet } from '@rainbow-me/rainbowkit';
@@ -127,6 +128,13 @@ declare interface PortfolioChainItem extends PortfolioChainInfo {
127
128
 
128
129
  export declare const TESTNET: Config;
129
130
 
131
+ declare interface TxParams {
132
+ messages: EncodeObject[];
133
+ memo?: string;
134
+ chainId?: string;
135
+ fee: StdFee;
136
+ }
137
+
130
138
  declare interface TxRequest {
131
139
  messages: EncodeObject[];
132
140
  memo?: string;
@@ -149,12 +157,14 @@ export declare function useInterwovenKit(): {
149
157
  estimateGas: ({ messages, memo, chainId }: TxRequest) => Promise<number>;
150
158
  simulateTx: ({ messages, memo, chainId }: TxRequest) => Promise<SimulateResponse>;
151
159
  requestTxSync: (txRequest: TxRequest) => Promise<string>;
152
- requestTxBlock: (txRequest: TxRequest) => Promise<DeliverTxResponse>;
160
+ requestTxBlock: (txRequest: TxRequest, timeoutMs?: number, intervalMs?: number) => Promise<DeliverTxResponse>;
161
+ submitTxSync: (txParams: TxParams) => Promise<string>;
162
+ submitTxBlock: (txParams: TxParams, timeoutMs?: number, intervalMs?: number) => Promise<DeliverTxResponse>;
153
163
  waitForTxConfirmation: ({ chainId, ...params }: {
154
164
  txHash: string;
155
165
  chainId?: string;
156
- timeoutSeconds?: number;
157
- intervalSeconds?: number;
166
+ timeoutMs?: number;
167
+ intervalMs?: number;
158
168
  }) => Promise<IndexedTx>;
159
169
  address: string;
160
170
  initiaAddress: string;