File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ export const getOffchainAllocatorForChain = async (chainId: string) => {
8989
9090 const chain = await getChain ( chainId ) ;
9191 switch ( chain . vmType ) {
92- case "ethereum-vm" : {
92+ case "ethereum-vm" :
93+ case "hyperliquid-vm" : {
9394 return privateKeyToAccount ( ecdsaPk as any ) . address . toLowerCase ( ) ;
9495 }
9596
Original file line number Diff line number Diff line change @@ -179,12 +179,15 @@ export const getSigner = async (chainId: string) => {
179179 let domainId : number | undefined ;
180180 switch ( vmType ) {
181181 case "ethereum-vm" :
182+ case "hyperliquid-vm" : {
182183 domainId = 0 ;
183184 break ;
185+ }
184186
185- case "solana-vm" :
187+ case "solana-vm" : {
186188 domainId = 1 ;
187189 break ;
190+ }
188191
189192 default : {
190193 throw externalError ( "Vm type not implemented" ) ;
@@ -210,7 +213,8 @@ export const getSigner = async (chainId: string) => {
210213
211214 const [ , publicKey ] = result ! . toString ( ) . split ( ":" ) ;
212215 switch ( vmType ) {
213- case "ethereum-vm" : {
216+ case "ethereum-vm" :
217+ case "hyperliquid-vm" : {
214218 _getSignerCache . set (
215219 vmType ,
216220 publicKeyToAddress (
@@ -261,7 +265,8 @@ export const getSignature = async (id: string) => {
261265 const payloadBuilder = await getPayloadBuilder ( payloadBuilderAddress ) ;
262266
263267 switch ( chain . vmType ) {
264- case "ethereum-vm" : {
268+ case "ethereum-vm" :
269+ case "hyperliquid-vm" : {
265270 const hashToSign = await payloadBuilder . contract . read . hashToSign ( [
266271 BigInt ( chain . metadata . allocatorChainId ) ,
267272 chain . depository ,
You can’t perform that action at this time.
0 commit comments