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

feat: integrate new nodes contract with xmtpd #550

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/dev/generate
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function main() {
# Define contracts (pass as arguments or use a default list)
local contracts=("$@")
if [ "${#contracts[@]}" -eq 0 ]; then
contracts=("Nodes" "GroupMessages" "IdentityUpdates" "NodesV2")
contracts=("Nodes" "GroupMessages" "IdentityUpdates")
fi

# Generate bindings for each contract
Expand Down
3,970 changes: 3,495 additions & 475 deletions contracts/pkg/nodes/Nodes.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {Script, console} from "forge-std/src/Script.sol";
import {Environment} from "./utils/Environment.sol";
import {Utils} from "./utils/Utils.sol";
import "src/interfaces/INodes.sol";
import "src/NodesV2.sol";
import "src/Nodes.sol";

contract DeployXMTPNodeRegistry is Script, Environment, Utils {
NodesV2 nodes;
Nodes nodes;

address admin;
address deployer;
Expand All @@ -23,7 +23,7 @@ contract DeployXMTPNodeRegistry is Script, Environment, Utils {
deployer = vm.addr(privateKey);
vm.startBroadcast(privateKey);

nodes = new NodesV2(admin);
nodes = new Nodes(admin);
require(address(nodes) != address(0), "Nodes deployment failed");

vm.stopBroadcast();
Expand Down
15 changes: 0 additions & 15 deletions contracts/script/DeployNodeRegistryV1.s.sol

This file was deleted.

Loading
Loading