forked from safe-global/safe-core-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(relay-kit): Add tx service compatibility to
Safe4337Pack
(safe…
- Loading branch information
Showing
22 changed files
with
633 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { SafeOperation } from '@safe-global/safe-core-sdk-types' | ||
|
||
export const getAddSafeOperationProps = async (safeOperation: SafeOperation) => { | ||
const userOperation = safeOperation.toUserOperation() | ||
userOperation.signature = safeOperation.encodedSignatures() // Without validity dates | ||
|
||
return { | ||
entryPoint: safeOperation.data.entryPoint, | ||
moduleAddress: safeOperation.moduleAddress, | ||
safeAddress: safeOperation.data.safe, | ||
userOperation, | ||
options: { | ||
validAfter: safeOperation.data.validAfter, | ||
validUntil: safeOperation.data.validUntil | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.