Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Sepolia contracts deployments artifacts #349

Merged
merged 8 commits into from
Apr 15, 2024

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented Apr 11, 2024

We redeployed the latest contracts version to Sepolia. Here we update the artifacts.

nkuba added 4 commits April 11, 2024 17:35
We redeployed the latest version of contracts to sepolia.
We don't need to duplicate the contracts artifacts by copying them to
SDK module, we can import them from the contracts module.
We don't need to import the types for contracts initialization as we can
simplify them by removing the deployedAtBlockNumber property which is
not used in our SDK code.
@nkuba nkuba self-assigned this Apr 11, 2024
@nkuba nkuba requested review from r-czajkowski and ioay April 11, 2024 16:25
Copy link

netlify bot commented Apr 11, 2024

Deploy Preview for acre-dapp-testnet canceled.

Name Link
🔨 Latest commit 65d4452
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp-testnet/deploys/661d2226f02f910008f20da5

@nkuba nkuba requested a review from kkosiorowska April 11, 2024 16:25
We want to avoid ignoring the prefer-dfefault-export rule, so we define
a dedicated file to DepositState.
* from the contract deployment artifact. It can be overwritten by setting a
* {@link EthersContractConfig.deployedAtBlockNumber} property.
*/
protected readonly deployedAtBlockNumber: number
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we remove it? This is useful for fetching events.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The artifacts the deployment script produces with the upgradable deployments plugin don't contain the block number as per keep-network/hardhat-helpers@232b917.
Since we're not fetching the events in the dApp currently, I thought that for simplicity we could remove the deployedAtBlockNumber property, and resolve it later if we really need it.

@nkuba nkuba requested a review from r-czajkowski April 15, 2024 12:48
@r-czajkowski r-czajkowski merged commit d265ef5 into main Apr 15, 2024
24 checks passed
@r-czajkowski r-czajkowski deleted the sepolia-deployment-2 branch April 15, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants