File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @skip-router/core " : patch
3
+ ---
4
+
5
+ Expose gas methods in SkipRouter
Original file line number Diff line number Diff line change @@ -972,7 +972,15 @@ export class SkipRouter {
972
972
return response . venues . map ( ( venue ) => swapVenueFromJSON ( venue ) ) ;
973
973
}
974
974
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 ) {
976
984
if ( chainID . includes ( "evmos" ) ) {
977
985
return this . getAccountNumberAndSequenceEvmos ( address , chainID ) ;
978
986
}
@@ -1098,7 +1106,7 @@ export class SkipRouter {
1098
1106
return endpoint ;
1099
1107
}
1100
1108
1101
- private getFeeInfoForChain ( chainID : string ) {
1109
+ getFeeInfoForChain ( chainID : string ) {
1102
1110
const chain = chains ( ) . find ( ( chain ) => chain . chain_id === chainID ) ;
1103
1111
if ( ! chain ) {
1104
1112
throw new Error ( `Failed to find chain with ID ${ chainID } in registry` ) ;
You can’t perform that action at this time.
0 commit comments