Skip to content

Commit afd5480

Browse files
authored
Merge pull request #58 from skip-mev/jw/expose-gas-methods
Expose gas methods in router
2 parents 3c8d0ef + 35aa11b commit afd5480

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.changeset/twenty-weeks-rescue.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@skip-router/core": patch
3+
---
4+
5+
Expose gas methods in SkipRouter

packages/core/src/client.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,15 @@ export class SkipRouter {
972972
return response.venues.map((venue) => swapVenueFromJSON(venue));
973973
}
974974

975-
private async getAccountNumberAndSequence(address: string, chainID: string) {
975+
async getGasAmountForMessage(
976+
client: SigningCosmWasmClient,
977+
signerAddress: string,
978+
message: MultiChainMsg,
979+
): Promise<string> {
980+
return getGasAmountForMessage(client, signerAddress, message);
981+
}
982+
983+
async getAccountNumberAndSequence(address: string, chainID: string) {
976984
if (chainID.includes("evmos")) {
977985
return this.getAccountNumberAndSequenceEvmos(address, chainID);
978986
}
@@ -1098,7 +1106,7 @@ export class SkipRouter {
10981106
return endpoint;
10991107
}
11001108

1101-
private getFeeInfoForChain(chainID: string) {
1109+
getFeeInfoForChain(chainID: string) {
11021110
const chain = chains().find((chain) => chain.chain_id === chainID);
11031111
if (!chain) {
11041112
throw new Error(`Failed to find chain with ID ${chainID} in registry`);

0 commit comments

Comments
 (0)