-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search userContract when is unknown (#278)
* Search userContract when is unknown * Removing duplicated ContractDetailsInteraction
- Loading branch information
1 parent
9f395e7
commit 6d315e4
Showing
11 changed files
with
43 additions
and
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { ChainId } from '@/services/useink/chains' | ||
import { TokenType } from '../TokenType' | ||
import { UserContractDetailsDraft } from '../UserContractDetails' | ||
import { | ||
UserContractDetails, | ||
UserContractDetailsDraft | ||
} from '../UserContractDetails' | ||
|
||
export type ContractType = TokenType | 'custom' | ||
export type ContractType = TokenType | 'custom' // custom contracts are generally deployed outside the PCW | ||
export type UpdateDeployment = Partial<UserContractDetailsDraft> | ||
|
||
export interface IDeploymentsRepository<A, B> { | ||
add: (deployment: UserContractDetailsDraft) => Promise<A> | ||
findBy: (userAddress: string, network?: ChainId) => Promise<B> | ||
updateBy: (deployment: UpdateDeployment) => Promise<A> | ||
get(uuid: string): Promise<UserContractDetails | undefined> | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 was deleted.
Oops, something went wrong.