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

Removes web3 dependency. Using ethersjs in the html tools. Refactors. #85

Merged
merged 4 commits into from
Feb 5, 2025

Conversation

jeremy-then
Copy link
Contributor

No description provided.

@jeremy-then jeremy-then self-assigned this Jan 29, 2025
@jeremy-then jeremy-then requested a review from a team as a code owner January 29, 2025 20:44
tools/PrecompiledAbis.html Fixed Show fixed Hide fixed
<option selected value='lovell'>Lovell</option>
<option value='arrowhead'>Arrowhead</option>
<option value='lovell'>Lovell</option>
<option selected value='arrowhead'>Arrowhead</option>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd leave Lovell as the selected option, these chanes are planned for the release of Lovell version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@@ -10,10 +9,4 @@ describe('Bridge', () => {
it('has all the expected signatures', () => {
assert.equal(bridge.abi.length, 83);
});

it('builds a valid contract', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it make sense to keep like this building a contract with the different library options? In that case we could have the dependencies as dev dependencies only

Not sure if it adds value really, let me know what you think

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean, exposing a build function so the use can send their client to get a Bridge contract instance? I'm not sure that's a good idea. If I understood correctly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I mean in the tests.

Have a test where the precompiled is used with ethers and one where it is used with viem. Since it will only be used in tests it's enough to add them as dev dependencies

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added one for Ethers.
Viem got very complicated. Out of the scope for now.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
julia-zack
julia-zack previously approved these changes Jan 30, 2025
nathanieliov
nathanieliov previously approved these changes Jan 30, 2025
@@ -272,8 +272,7 @@ <h5 class="modal-title" id="exampleModalLabel">Abi</h5>
selectedAbisUrl.href = selectedAbiForkInfo.url;
selectedAbisUrl.textContent = selectedAbiForkInfo.url;

const testnetRskUrl = 'https://public-node.testnet.rsk.co/';
let web3;
const testnetRskUrl = 'https://public-node.rsk.co/';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const testnetRskUrl = 'https://public-node.rsk.co/';
const mainnetRskUrl = 'https://public-node.rsk.co/';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@@ -139,11 +139,10 @@ <h5 class='text-center'>Simple html page to interact with the Rootstock (RSK) Bl
];

const bridgeAddress = '0x0000000000000000000000000000000001000006';
const testnetRskUrl = 'https://public-node.testnet.rsk.co/';
const testnetRskUrl = 'https://public-node.rsk.co/';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const testnetRskUrl = 'https://public-node.rsk.co/';
const mainnetRskUrl = 'https://public-node.rsk.co/';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@jeremy-then jeremy-then merged commit 44355a6 into master Feb 5, 2025
5 checks passed
@jeremy-then jeremy-then deleted the replace-web3-with-ethers-and-refactor branch February 5, 2025 13:41
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.

4 participants