@skip-go/client 0.14.8 → 0.15.1
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 +5 -3
- package/dist/index.js +6 -5
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1774,7 +1774,7 @@ type ExecuteRouteOptions = SignerGetters & GasOptions & TransactionCallbacks & {
|
|
|
1774
1774
|
* Addresses should be in the same order with the `chainIDs` in the `route`
|
|
1775
1775
|
*/
|
|
1776
1776
|
userAddresses: UserAddress[];
|
|
1777
|
-
|
|
1777
|
+
simulate?: boolean;
|
|
1778
1778
|
slippageTolerancePercent?: string;
|
|
1779
1779
|
/**
|
|
1780
1780
|
* Arbitrary Tx to be executed before or after route msgs
|
|
@@ -1975,24 +1975,26 @@ declare class SkipClient {
|
|
|
1975
1975
|
getFeeInfoForChain(chainID: string): Promise<FeeAsset | undefined>;
|
|
1976
1976
|
private getDefaultGasTokenForChain;
|
|
1977
1977
|
private getStakingTokensForChain;
|
|
1978
|
-
validateGasBalances({ txs, getOfflineSigner, onValidateGasBalance, getFallbackGasAmount, }: {
|
|
1978
|
+
validateGasBalances({ txs, getOfflineSigner, onValidateGasBalance, getFallbackGasAmount, simulate, }: {
|
|
1979
1979
|
txs: Tx[];
|
|
1980
1980
|
getOfflineSigner?: (chainID: string) => Promise<OfflineSigner>;
|
|
1981
1981
|
onValidateGasBalance?: ExecuteRouteOptions['onValidateGasBalance'];
|
|
1982
1982
|
getFallbackGasAmount?: GetFallbackGasAmount;
|
|
1983
|
+
simulate?: ExecuteRouteOptions['simulate'];
|
|
1983
1984
|
}): Promise<Gas[]>;
|
|
1984
1985
|
/**
|
|
1985
1986
|
*
|
|
1986
1987
|
* Validate gas balance for cosmos messages returns a fee asset and StdFee to be used
|
|
1987
1988
|
*
|
|
1988
1989
|
*/
|
|
1989
|
-
validateCosmosGasBalance({ chainID, signerAddress, client, messages, getFallbackGasAmount, txIndex, }: {
|
|
1990
|
+
validateCosmosGasBalance({ chainID, signerAddress, client, messages, getFallbackGasAmount, txIndex, simulate }: {
|
|
1990
1991
|
chainID: string;
|
|
1991
1992
|
signerAddress: string;
|
|
1992
1993
|
client: SigningStargateClient;
|
|
1993
1994
|
messages?: CosmosMsg[];
|
|
1994
1995
|
getFallbackGasAmount?: GetFallbackGasAmount;
|
|
1995
1996
|
txIndex?: number;
|
|
1997
|
+
simulate?: ExecuteRouteOptions['simulate'];
|
|
1996
1998
|
}): Promise<{
|
|
1997
1999
|
error: string;
|
|
1998
2000
|
asset?: undefined;
|