@skip-go/client 0.16.4 → 0.16.6

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
@@ -879,7 +879,7 @@ type ChainAffiliatesJSON = {
879
879
  type ChainAffiliates = {
880
880
  affiliates: Affiliate[];
881
881
  };
882
- type Reason = 'UNKNOWN' | 'BASE_TOKEN' | 'MOST_LIQUID' | 'DIRECT';
882
+ type Reason = "UNKNOWN" | "BASE_TOKEN" | "MOST_LIQUID" | "DIRECT";
883
883
  type CosmWasmContractMsgJSON = {
884
884
  contract_address: string;
885
885
  msg: string;
@@ -888,7 +888,7 @@ type CosmWasmContractMsg = {
888
888
  contractAddress: string;
889
889
  msg: string;
890
890
  };
891
- type AutopilotAction = 'LIQUID_STAKE' | 'CLAIM';
891
+ type AutopilotAction = "LIQUID_STAKE" | "CLAIM";
892
892
  type AutopilotMsg = {
893
893
  receiver: string;
894
894
  action: AutopilotAction;
@@ -1139,9 +1139,9 @@ type RouteRequestGivenOut = RouteRequestBase & {
1139
1139
  amountOut: string;
1140
1140
  };
1141
1141
  type RouteRequest = RouteRequestGivenIn | RouteRequestGivenOut;
1142
- type RouteWarningType = 'LOW_INFO_WARNING' | 'BAD_PRICE_WARNING';
1143
- type MsgsWarningType = 'INSUFFICIENT_GAS_AT_DEST_EOA' | 'INSUFFICIENT_GAS_AT_INTERMEDIATE';
1144
- type ExperimentalFeature = 'cctp' | 'hyperlane' | 'stargate';
1142
+ type RouteWarningType = "LOW_INFO_WARNING" | "BAD_PRICE_WARNING";
1143
+ type MsgsWarningType = "INSUFFICIENT_GAS_AT_DEST_EOA" | "INSUFFICIENT_GAS_AT_INTERMEDIATE";
1144
+ type ExperimentalFeature = "cctp" | "hyperlane" | "stargate";
1145
1145
  type RouteWarning = {
1146
1146
  type: RouteWarningType;
1147
1147
  message: string;
@@ -1420,7 +1420,7 @@ type MsgsResponse = {
1420
1420
  txs: Tx[];
1421
1421
  warning?: MsgsWarning;
1422
1422
  };
1423
- type BridgeType = 'IBC' | 'AXELAR' | 'CCTP' | 'HYPERLANE' | 'OPINIT' | 'GO_FAST' | 'STARGATE';
1423
+ type BridgeType = "IBC" | "AXELAR" | "CCTP" | "HYPERLANE" | "OPINIT" | "GO_FAST" | "STARGATE";
1424
1424
  declare enum ChainType {
1425
1425
  Cosmos = "cosmos",
1426
1426
  EVM = "evm",
@@ -1810,7 +1810,7 @@ type Gas = {
1810
1810
  /** Signer Getters */
1811
1811
  interface SignerGetters {
1812
1812
  getEVMSigner?: (chainID: string) => Promise<WalletClient>;
1813
- getCosmosSigner?: (chainID: string) => Promise<OfflineAminoSigner & OfflineDirectSigner | OfflineAminoSigner | OfflineDirectSigner>;
1813
+ getCosmosSigner?: (chainID: string) => Promise<(OfflineAminoSigner & OfflineDirectSigner) | OfflineAminoSigner | OfflineDirectSigner>;
1814
1814
  getSVMSigner?: () => Promise<Adapter>;
1815
1815
  }
1816
1816
  /** Gas Options */
@@ -1851,8 +1851,8 @@ type ExecuteRouteOptions = SignerGetters & GasOptions & TransactionCallbacks & {
1851
1851
  simulate?: boolean;
1852
1852
  slippageTolerancePercent?: string;
1853
1853
  /**
1854
- * Arbitrary Tx to be executed before or after route msgs
1855
- */
1854
+ * Arbitrary Tx to be executed before or after route msgs
1855
+ */
1856
1856
  beforeMsg?: CosmosMsg;
1857
1857
  afterMsg?: CosmosMsg;
1858
1858
  };
@@ -1864,12 +1864,12 @@ type ExecuteCosmosMessageOptions = {
1864
1864
  };
1865
1865
  type ExecuteCosmosMessage = GasOptions & {
1866
1866
  signerAddress: string;
1867
- getCosmosSigner?: SignerGetters['getCosmosSigner'];
1867
+ getCosmosSigner?: SignerGetters["getCosmosSigner"];
1868
1868
  chainID: string;
1869
1869
  messages: CosmosMsg[];
1870
1870
  gas: Gas;
1871
- onTransactionSigned?: TransactionCallbacks['onTransactionSigned'];
1872
- onTransactionBroadcast?: TransactionCallbacks['onTransactionBroadcast'];
1871
+ onTransactionSigned?: TransactionCallbacks["onTransactionSigned"];
1872
+ onTransactionBroadcast?: TransactionCallbacks["onTransactionBroadcast"];
1873
1873
  };
1874
1874
  interface SignCosmosMessageOptionsBase {
1875
1875
  signerAddress: string;
@@ -1895,10 +1895,10 @@ declare class SkipClient {
1895
1895
  getRpcEndpointForChain?: (chainID: string) => Promise<string>;
1896
1896
  getRestEndpointForChain?: (chainID: string) => Promise<string>;
1897
1897
  };
1898
- protected getCosmosSigner?: SignerGetters['getCosmosSigner'];
1899
- protected getEVMSigner?: SignerGetters['getEVMSigner'];
1900
- protected getSVMSigner?: SignerGetters['getSVMSigner'];
1901
- protected chainIDsToAffiliates?: SkipClientOptions['chainIDsToAffiliates'];
1898
+ protected getCosmosSigner?: SignerGetters["getCosmosSigner"];
1899
+ protected getEVMSigner?: SignerGetters["getEVMSigner"];
1900
+ protected getSVMSigner?: SignerGetters["getSVMSigner"];
1901
+ protected chainIDsToAffiliates?: SkipClientOptions["chainIDsToAffiliates"];
1902
1902
  protected cumulativeAffiliateFeeBPS?: string;
1903
1903
  protected cacheDurationMs?: number;
1904
1904
  private cache;
@@ -2052,23 +2052,23 @@ declare class SkipClient {
2052
2052
  validateGasBalances({ txs, getOfflineSigner, onValidateGasBalance, getFallbackGasAmount, simulate, }: {
2053
2053
  txs: Tx[];
2054
2054
  getOfflineSigner?: (chainID: string) => Promise<OfflineSigner>;
2055
- onValidateGasBalance?: ExecuteRouteOptions['onValidateGasBalance'];
2055
+ onValidateGasBalance?: ExecuteRouteOptions["onValidateGasBalance"];
2056
2056
  getFallbackGasAmount?: GetFallbackGasAmount;
2057
- simulate?: ExecuteRouteOptions['simulate'];
2057
+ simulate?: ExecuteRouteOptions["simulate"];
2058
2058
  }): Promise<Gas[]>;
2059
2059
  /**
2060
2060
  *
2061
2061
  * Validate gas balance for cosmos messages returns a fee asset and StdFee to be used
2062
2062
  *
2063
2063
  */
2064
- validateCosmosGasBalance({ chainID, signerAddress, client, messages, getFallbackGasAmount, txIndex, simulate }: {
2064
+ validateCosmosGasBalance({ chainID, signerAddress, client, messages, getFallbackGasAmount, txIndex, simulate, }: {
2065
2065
  chainID: string;
2066
2066
  signerAddress: string;
2067
2067
  client: SigningStargateClient;
2068
2068
  messages?: CosmosMsg[];
2069
2069
  getFallbackGasAmount?: GetFallbackGasAmount;
2070
2070
  txIndex?: number;
2071
- simulate?: ExecuteRouteOptions['simulate'];
2071
+ simulate?: ExecuteRouteOptions["simulate"];
2072
2072
  }): Promise<{
2073
2073
  error: string;
2074
2074
  asset?: undefined;