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

Mode viction testnets #346

Merged
merged 26 commits into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
912d38a
fix: use Ownable
ameeshaagrawal Dec 7, 2023
93c9231
feat: mode and viction testnet support
arthcp Dec 7, 2023
3027292
Merge remote-tracking branch 'origin/fix/counter-example' into mode-v…
arthcp Dec 7, 2023
155f454
feat: deployed addresses
arthcp Dec 7, 2023
ddca12e
feat: version bump
arthcp Dec 7, 2023
cc886ff
Merge remote-tracking branch 'origin/feat/fastChainAddS3' into mode-v…
arthcp Dec 7, 2023
63c6b23
feat: s3 script new chains
arthcp Dec 7, 2023
ce4351c
Merge remote-tracking branch 'origin/master' into mode-viction-testnets
arthcp Dec 7, 2023
0412401
feat: misc scripts
arthcp Dec 13, 2023
48ede81
fix: setup scripts
arthcp Dec 13, 2023
6a9432a
feat: base and mode support
arthcp Dec 13, 2023
2dc1dd0
feat: deployments
arthcp Dec 13, 2023
5113903
feat: missed changes
arthcp Dec 13, 2023
a810577
feat: missed changes
arthcp Dec 13, 2023
d9bea3b
chore: version bump
arthcp Dec 13, 2023
292a347
fix: add sibling and block number in rpc config
ameeshaagrawal Dec 13, 2023
6f9bbe3
2.4.15-test.1
ameeshaagrawal Dec 13, 2023
ba54f5e
fix: rpc config
ameeshaagrawal Dec 13, 2023
a49f58b
fix: s3 config type
ameeshaagrawal Dec 14, 2023
ef6d7dd
2.4.15-test.2
ameeshaagrawal Dec 14, 2023
e7f981f
fix: dev config
ameeshaagrawal Dec 14, 2023
2716278
feat: optimistic registers
arthcp Dec 21, 2023
336bb37
feat: check roles sleep and core version
arthcp Dec 21, 2023
c627288
feat: ancient8 testnet support
arthcp Dec 21, 2023
7bd0647
feat: ancient8 testnet contracts deployed
arthcp Dec 21, 2023
1256b34
feat: core version
arthcp Dec 21, 2023
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
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ BSCSCAN_API_KEY=xxx
AEVO_API_KEY=xxx
LYRA_API_KEY=xxx
XAI_API_KEY=xxx
BASESCAN_API_KEY=xxx

# rpc
ARBITRUM_RPC='https://arb1.arbitrum.io/rpc'
Expand Down Expand Up @@ -49,6 +50,11 @@ LYRA_TESTNET_RPC=''
LYRA_RPC=''
XAI_TESTNET_RPC=''
SX_NETWORK_TESTNET_RPC=''
MODE_TESTNET_RPC=''
VICTION_TESTNET_RPC=''
BASE_RPC=''
MODE_RPC=''
ANCIENT8_TESTNET_RPC=''

# update these settings
# DEPLOYMENT_MODE="dev | surge | prod"
Expand Down
44 changes: 44 additions & 0 deletions chainConfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{
"8453": {
"roleOwners": {
"ownerAddress": "0x5fD7D0d6b91CC4787Bcb86ca47e0Bd4ea0346d34",
"executorAddress": "0x42639d8fd154b72472e149a7d5ac13fa280303d9",
"transmitterAddress": "0xfbc5ea2525bb827979e4c33b237cd47bcb8f81c5",
"watcherAddress": "0x75ddddf61b8180d3837b7d8b98c062ca442e0e14",
"feeUpdaterAddress": "0xfbc5ea2525bb827979e4c33b237cd47bcb8f81c5"
},
"siblings": [1, 137, 42161, 10, 56, 34443],
"overrides": {
"type": 1,
"gasLimit": 3000000,
"gasPrice": 10000000
}
},
"31337": {
"siblings": [],
"timeout": 7200,
Expand All @@ -8,5 +23,34 @@
"gasLimit": 20000000,
"gasPrice": 1000000000000
}
},
"34443": {
"roleOwners": {
"ownerAddress": "0x5fD7D0d6b91CC4787Bcb86ca47e0Bd4ea0346d34",
"executorAddress": "0x42639d8fd154b72472e149a7d5ac13fa280303d9",
"transmitterAddress": "0xfbc5ea2525bb827979e4c33b237cd47bcb8f81c5",
"watcherAddress": "0x75ddddf61b8180d3837b7d8b98c062ca442e0e14",
"feeUpdaterAddress": "0xfbc5ea2525bb827979e4c33b237cd47bcb8f81c5"
},
"overrides": {
"type": 1,
"gasLimit": 3000000,
"gasPrice": 10000000
},
"siblings": [1, 42161, 10, 8453]
},
"2863311531": {
"roleOwners": {
"ownerAddress": "0x5fD7D0d6b91CC4787Bcb86ca47e0Bd4ea0346d34",
"executorAddress": "0x42639d8fd154b72472e149a7d5ac13fa280303d9",
"transmitterAddress": "0xfbc5ea2525bb827979e4c33b237cd47bcb8f81c5",
"watcherAddress": "0x75ddddf61b8180d3837b7d8b98c062ca442e0e14",
"feeUpdaterAddress": "0xfbc5ea2525bb827979e4c33b237cd47bcb8f81c5"
},
"siblings": [421614, 11155420],
"overrides": {
"type": 1,
"gasPrice": 100000000
}
}
}
16 changes: 2 additions & 14 deletions contracts/examples/Counter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,25 @@ pragma solidity 0.8.19;

import "../interfaces/IPlug.sol";
import "../interfaces/ISocket.sol";
import "../utils/Ownable.sol";
import "../libraries/RescueFundsLib.sol";

contract Counter is IPlug {
contract Counter is IPlug, Ownable(msg.sender) {
// immutables
address public immutable socket;

address public owner;

// application state
uint256 public counter;

// application ops
bytes32 public constant OP_ADD = keccak256("OP_ADD");
bytes32 public constant OP_SUB = keccak256("OP_SUB");

error OnlyOwner();
error OnlySocket();
error InvalidAmount();

constructor(address socket_) {
socket = socket_;
owner = msg.sender;
}

modifier onlyOwner() {
if (msg.sender != owner) revert OnlyOwner();
_;
}

function localAddOperation(uint256 amount_) external {
Expand Down Expand Up @@ -136,10 +128,6 @@ contract Counter is IPlug {
);
}

function setupComplete() external {
owner = address(0);
}

/**
* @notice Rescues funds from the contract if they are locked by mistake.
* @param token_ The address of the token contract.
Expand Down
Loading
Loading