@0xsequence/core
Advanced tools
Comparing version
@@ -54,2 +54,3 @@ import { BigNumberish, BytesLike, ethers } from "ethers"; | ||
export declare function subdigestOfTransactions(address: string, chainId: BigNumberish, nonce: ethers.BigNumberish, txs: Transaction[]): string; | ||
export declare function subdigestOfGuestModuleTransactions(guestModule: string, chainId: BigNumberish, txs: Transaction[]): string; | ||
export declare function toSequenceTransactions(wallet: string, txs: (Transaction | ethers.providers.TransactionRequest)[]): { | ||
@@ -56,0 +57,0 @@ nonce?: ethers.BigNumberish; |
{ | ||
"name": "@0xsequence/core", | ||
"version": "0.0.0-20230505164841", | ||
"version": "0.0.0-20230512143315", | ||
"description": "core primitives for interacting with the sequence wallet contracts", | ||
@@ -23,3 +23,3 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/core", | ||
"dependencies": { | ||
"@0xsequence/abi": "0.0.0-20230505164841" | ||
"@0xsequence/abi": "0.0.0-20230512143315" | ||
}, | ||
@@ -26,0 +26,0 @@ "scripts": { |
@@ -108,2 +108,15 @@ import { BigNumberish, BytesLike, ethers } from "ethers" | ||
export function subdigestOfGuestModuleTransactions(guestModule: string, chainId: BigNumberish, txs: Transaction[]): string { | ||
return subdigestOf({ | ||
address: guestModule, | ||
chainId, | ||
digest: ethers.utils.keccak256( | ||
ethers.utils.defaultAbiCoder.encode( | ||
['string', MetaTransactionsType], | ||
['guest:', sequenceTxAbiEncode(txs)] | ||
) | ||
) | ||
}) | ||
} | ||
export function toSequenceTransactions( | ||
@@ -110,0 +123,0 @@ wallet: string, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
328060
0.5%8974
0.41%+ Added
- Removed