@initia/interwovenkit-react 2.0.2 → 2.0.3
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 +36 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +10 -0
- package/dist/index.js +2524 -2426
- package/dist/styles.css +1 -1
- package/dist/styles.js +1 -1
- package/package.json +1 -1
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;
|
|
@@ -150,6 +158,8 @@ export declare function useInterwovenKit(): {
|
|
|
150
158
|
simulateTx: ({ messages, memo, chainId }: TxRequest) => Promise<SimulateResponse>;
|
|
151
159
|
requestTxSync: (txRequest: TxRequest) => Promise<string>;
|
|
152
160
|
requestTxBlock: (txRequest: TxRequest) => Promise<DeliverTxResponse>;
|
|
161
|
+
submitTxSync: (txParams: TxParams) => Promise<string>;
|
|
162
|
+
submitTxBlock: (txParams: TxParams) => Promise<DeliverTxResponse>;
|
|
153
163
|
waitForTxConfirmation: ({ chainId, ...params }: {
|
|
154
164
|
txHash: string;
|
|
155
165
|
chainId?: string;
|