-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
414 contract deployment facilitate usage (#497)
* feat: adding contract factory * refactor: removing previous deploy contract function * test: adding ERC721 contract factory * refactor: moving empty string check in regex * docs: updating contract examples * refactor: adding address in contract constructor * refactor: updating numeric regex * docs: adding contract comments * test: failed contract deployment * test: wait for a contract deployment not started * refactor: making abi public in contract * docs: setting contract factory to a const in the examples --------- Co-authored-by: Rodolfo Pietro Calabrò <[email protected]>
- Loading branch information
1 parent
9656c22
commit b7d60dd
Showing
15 changed files
with
451 additions
and
214 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
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
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,19 @@ | ||
import { type DefaultErrorData } from '../../types'; | ||
import { ErrorBase } from '../base'; | ||
|
||
/** | ||
* Error to be thrown when the contract deployment failed. | ||
*/ | ||
class ContractDeploymentFailedError extends ErrorBase< | ||
CONTRACT.CONTRACT_DEPLOYMENT_FAILED, | ||
DefaultErrorData | ||
> {} | ||
|
||
/** | ||
* Errors enum. | ||
*/ | ||
enum CONTRACT { | ||
CONTRACT_DEPLOYMENT_FAILED = 'CONTRACT_DEPLOYMENT_FAILED' | ||
} | ||
|
||
export { ContractDeploymentFailedError, CONTRACT }; |
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.