-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api-kit): 4337 API functions (#777)
* Implement functions to call 4337 api endpoints * e2e tests for addSafeOperation function * e2e tests for getSafeOperation function * e2e tests for getSafeOperationsByAddress function * Endpoint tests for 4337 api functions * Move shared types to `safe-core-sdk-types` * Mock bundler client calls for addSafeOperation endpoint tests * Use mock data in realistic format for unit test * Assert length of SafeOperations in the getSafeOperation e2e test * Extend getSafeOperationsByAddress parameters * Refactor `addSafeOperation` function params to remove internal coupling with Safe4337 module * Rename master-copies * Rename `SafeOperation` class to `EthSafeOperation` This is for better differentiation with the corresponding interface. --------- Co-authored-by: Yago Pérez Vázquez <[email protected]>
- Loading branch information
Showing
18 changed files
with
706 additions
and
82 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 @@ | ||
export const EMPTY_DATA = '0x' |
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,3 @@ | ||
import { EMPTY_DATA } from './constants' | ||
|
||
export const isEmptyData = (input: string) => !input || input === EMPTY_DATA |
Oops, something went wrong.