Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
126 changes: 126 additions & 0 deletions addresses/monad_testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
{
"20210418-authorizer": {
"contracts": [
{
"name": "Authorizer",
"address": "0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5"
}
],
"status": "ACTIVE",
"version": "v2"
},
"20220325-test-balancer-token": {
"contracts": [
{
"name": "TestBalancerToken",
"address": "0x4132f7AcC9dB7A6cF7BE2Dd3A9DC8b30C7E6E6c8"
}
],
"status": "ACTIVE",
"version": "v2"
},
"20241204-v3-vault": {
"contracts": [
{
"name": "VaultFactory",
"address": "0xF24917fB88261a37Cc57F686eBC831a5c0B9fD39"
},
{
"name": "ProtocolFeeController",
"address": "0x1452b94e9E1D535a05d4C087a6428B512Af36D0F"
},
{
"name": "VaultAdmin",
"address": "0x9F1f11a414AF861bef8108B3cE2Cbc43DEBB3165"
},
{
"name": "VaultExtension",
"address": "0xcdB7d6554F54e6cb9a05ac87E69f0cd0B51a729c"
},
{
"name": "Vault",
"address": "0xd07101ebD191C366D5A177cA67826014B0E42Ae3"
}
],
"status": "ACTIVE",
"version": "v3"
},
"20241205-v3-batch-router": {
"contracts": [
{
"name": "BatchRouter",
"address": "0x956CCab09898C0AF2aCa5e6C229c3aD4E93d9288"
}
],
"status": "ACTIVE",
"version": "v3"
},
"20241205-v3-buffer-router": {
"contracts": [
{
"name": "BufferRouter",
"address": "0x9Ac3E70dB606659Bf32D4BdFbb687AD193FD1F5B"
}
],
"status": "ACTIVE",
"version": "v3"
},
"20241205-v3-composite-liquidity-router": {
"contracts": [
{
"name": "CompositeLiquidityRouter",
"address": "0x36caC20dd805d128c1a6Dd16eeA845C574b5A17C"
}
],
"status": "DEPRECATED",
"version": "v3"
},
"20241205-v3-router": {
"contracts": [
{
"name": "Router",
"address": "0x85a80afee867aDf27B50BdB7b76DA70f1E853062"
}
],
"status": "DEPRECATED",
"version": "v3"
},
"20241205-v3-stable-pool": {
"contracts": [
{
"name": "StablePoolFactory",
"address": "0xb9F8AB3ED3F3aCBa64Bc6cd2DcA74B7F38fD7B88"
},
{
"name": "MockStablePool",
"address": "0x67c2A650f6Eda2b448061c8cE6923571493C2aD2"
}
],
"status": "DEPRECATED",
"version": "v3"
},
"20241205-v3-vault-explorer": {
"contracts": [
{
"name": "VaultExplorer",
"address": "0x9805dcfD25e6De36bad8fe9D3Fe2c9b44B764102"
}
],
"status": "DEPRECATED",
"version": "v3"
},
"20241205-v3-weighted-pool": {
"contracts": [
{
"name": "WeightedPoolFactory",
"address": "0xf23b4DB826DbA14c0e857029dfF076b1c0264843"
},
{
"name": "MockWeightedPool",
"address": "0x482B7a3e1bfF909eEACA6bCBf08d1060B5A4433f"
}
],
"status": "ACTIVE",
"version": "v3"
}
}
18 changes: 18 additions & 0 deletions deployment-txs/monad_testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5": "0x69e5ca8ffce2bc76b710a6beacdeef3ce50e3cb298368bf1db10f30b81f943b9",
"0xF24917fB88261a37Cc57F686eBC831a5c0B9fD39": "0x5784720e40d101d78e9329afd6eb4748c1e30760f481edc52972769e6980b7e1",
"0x1452b94e9E1D535a05d4C087a6428B512Af36D0F": "0xa6bb832214fc3e148d37b8371f91b5ee5912a57b5d5268b8af495f980ed8a564",
"0x9F1f11a414AF861bef8108B3cE2Cbc43DEBB3165": "0xa6bb832214fc3e148d37b8371f91b5ee5912a57b5d5268b8af495f980ed8a564",
"0xcdB7d6554F54e6cb9a05ac87E69f0cd0B51a729c": "0xa6bb832214fc3e148d37b8371f91b5ee5912a57b5d5268b8af495f980ed8a564",
"0xd07101ebD191C366D5A177cA67826014B0E42Ae3": "0xa6bb832214fc3e148d37b8371f91b5ee5912a57b5d5268b8af495f980ed8a564",
"0x956CCab09898C0AF2aCa5e6C229c3aD4E93d9288": "0xf4121350f46d65af554b6acab8825d7bdcd69bdd0c7da385b25340f63fc5f039",
"0x9Ac3E70dB606659Bf32D4BdFbb687AD193FD1F5B": "0x154a3a9fb21d4e022029a63a2f6c0e65a3d10e1a8be3922ff8926ddc025c860f",
"0x36caC20dd805d128c1a6Dd16eeA845C574b5A17C": "0xc05c2f02c3edd4499df604fb7bb11c3d98d4d3dc8658c5e80d9ea3b577716676",
"0x85a80afee867aDf27B50BdB7b76DA70f1E853062": "0x4cf0fe978bb26c67e006db27b7424cf79c588d01ae12905ab42c15b28017b318",
"0x4132f7AcC9dB7A6cF7BE2Dd3A9DC8b30C7E6E6c8": "0x914b62536713c009f06c9c236fcfcacbaff45b3ba1deb2cf649ebd281d1f6a5a",
"0xf23b4DB826DbA14c0e857029dfF076b1c0264843": "0x01fc8c64d80e3bff28024e28448efb50f9e2619548afbc8774a57f1079a82f1e",
"0x482B7a3e1bfF909eEACA6bCBf08d1060B5A4433f": "0x7b58e11b080655de144e4e541268e982656732e0fdf2b09a1660abd51082c26a",
"0xb9F8AB3ED3F3aCBa64Bc6cd2DcA74B7F38fD7B88": "0x0fb44194a74caf72ebd8d2b3dd454365e3dd5b3ac30088ab8ac5391a8304b66b",
"0x67c2A650f6Eda2b448061c8cE6923571493C2aD2": "0x9a7cfa961dfb207f0852b56a9411b5972ed1f2327156e0e1a4efdfcc29ac8b4d",
"0x9805dcfD25e6De36bad8fe9D3Fe2c9b44B764102": "0x223b844f28a1a5bf512c63275ccd19142e3a02dfee31978c9bf3e96a88a273bd"
}
8 changes: 8 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,14 @@ export default {
browserURL: 'https://modescan.io',
},
},
{
network: 'monad_testnet',
chainId: 10143,
urls: {
apiURL: 'https://explorer.monad-testnet.category.xyz/api',
browserURL: 'https://explorer.monad-testnet.category.xyz/',
},
},
{
network: 'avalanche',
chainId: 43114,
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"check": "yarn check-artifacts && yarn check-deployments",
"check-artifacts": "hardhat check-artifacts",
"check-network-deployments": "hardhat check-deployments --network",
"check-deployments": "hardhat check-deployments --network mainnet && hardhat check-deployments --network polygon && hardhat check-deployments --network arbitrum && hardhat check-deployments --network optimism && hardhat check-deployments --network gnosis && hardhat check-deployments --network bsc && hardhat check-deployments --network avalanche && hardhat check-deployments --network zkevm && hardhat check-deployments --network base && hardhat check-deployments --network fraxtal && hardhat check-deployments --network mode && hardhat check-deployments --network hyperevm && hardhat check-deployments --network sepolia",
"check-deployments": "hardhat check-deployments --network mainnet && hardhat check-deployments --network polygon && hardhat check-deployments --network arbitrum && hardhat check-deployments --network optimism && hardhat check-deployments --network gnosis && hardhat check-deployments --network bsc && hardhat check-deployments --network avalanche && hardhat check-deployments --network zkevm && hardhat check-deployments --network base && hardhat check-deployments --network fraxtal && hardhat check-deployments --network mode && hardhat check-deployments --network hyperevm && hardhat check-deployments --network sepolia && hardhat check-deployments --network monad_testnet",
"check-network-action-ids": "hardhat check-action-ids --network",
"check-action-ids": "hardhat check-action-ids --network mainnet && hardhat check-action-ids --network polygon && hardhat check-action-ids --network arbitrum && hardhat check-action-ids --network optimism && hardhat check-action-ids --network gnosis && hardhat check-action-ids --network bsc && hardhat check-action-ids --network avalanche && hardhat check-action-ids --network zkevm && hardhat check-action-ids --network base && hardhat check-action-ids --network fraxtal && hardhat check-action-ids --network mode && hardhat check-action-ids --network hyperevm && hardhat check-action-ids --network sepolia",
"check-action-ids": "hardhat check-action-ids --network mainnet && hardhat check-action-ids --network polygon && hardhat check-action-ids --network arbitrum && hardhat check-action-ids --network optimism && hardhat check-action-ids --network gnosis && hardhat check-action-ids --network bsc && hardhat check-action-ids --network avalanche && hardhat check-action-ids --network zkevm && hardhat check-action-ids --network base && hardhat check-action-ids --network fraxtal && hardhat check-action-ids --network mode && hardhat check-action-ids --network hyperevm && hardhat check-action-ids --network sepolia && hardhat check-action-ids --network monad_testnet",
"extract-artifacts": "hardhat extract-artifacts",
"build-address-lookup": "hardhat build-address-lookup --network mainnet && hardhat build-address-lookup --network polygon && hardhat build-address-lookup --network arbitrum && hardhat build-address-lookup --network optimism && hardhat build-address-lookup --network gnosis && hardhat build-address-lookup --network bsc && hardhat build-address-lookup --network avalanche && hardhat build-address-lookup --network zkevm && hardhat build-address-lookup --network base && hardhat build-address-lookup --network fraxtal && hardhat build-address-lookup --network mode && hardhat build-address-lookup --network hyperevm && hardhat build-address-lookup --network sepolia",
"check-address-lookup": "hardhat check-address-lookup --network mainnet && hardhat check-address-lookup --network polygon && hardhat check-address-lookup --network arbitrum && hardhat check-address-lookup --network optimism && hardhat check-address-lookup --network gnosis && hardhat check-address-lookup --network bsc && hardhat check-address-lookup --network avalanche && hardhat check-address-lookup --network zkevm && hardhat check-address-lookup --network base && hardhat check-address-lookup --network fraxtal && hardhat check-address-lookup --network mode && hardhat check-address-lookup --network hyperevm && hardhat check-address-lookup --network sepolia",
"build-timelock-authorizer-config": "hardhat build-timelock-authorizer-config --network mainnet && hardhat build-timelock-authorizer-config --network polygon && hardhat build-timelock-authorizer-config --network arbitrum && hardhat build-timelock-authorizer-config --network optimism && hardhat build-timelock-authorizer-config --network gnosis && hardhat build-timelock-authorizer-config --network bsc && hardhat build-timelock-authorizer-config --network avalanche && hardhat build-timelock-authorizer-config --network zkevm && hardhat build-timelock-authorizer-config --network base && hardhat build-timelock-authorizer-config --network fraxtal && hardhat build-timelock-authorizer-config --network mode && hardhat build-timelock-authorizer-config --network hyperevm && hardhat build-timelock-authorizer-config --network sepolia",
"check-timelock-authorizer-config": "hardhat check-timelock-authorizer-config --network mainnet && hardhat check-timelock-authorizer-config --network polygon && hardhat check-timelock-authorizer-config --network arbitrum && hardhat check-timelock-authorizer-config --network optimism && hardhat check-timelock-authorizer-config --network gnosis && hardhat check-timelock-authorizer-config --network bsc && hardhat check-timelock-authorizer-config --network avalanche && hardhat check-timelock-authorizer-config --network zkevm && hardhat check-timelock-authorizer-config --network base && hardhat check-timelock-authorizer-config --network fraxtal && hardhat check-timelock-authorizer-config --network mode && hardhat check-timelock-authorizer-config --network hyperevm && hardhat check-timelock-authorizer-config --network sepolia",
"build-address-lookup": "hardhat build-address-lookup --network mainnet && hardhat build-address-lookup --network polygon && hardhat build-address-lookup --network arbitrum && hardhat build-address-lookup --network optimism && hardhat build-address-lookup --network gnosis && hardhat build-address-lookup --network bsc && hardhat build-address-lookup --network avalanche && hardhat build-address-lookup --network zkevm && hardhat build-address-lookup --network base && hardhat build-address-lookup --network fraxtal && hardhat build-address-lookup --network mode && hardhat build-address-lookup --network hyperevm && hardhat build-address-lookup --network sepolia && hardhat build-address-lookup --network monad_testnet",
"check-address-lookup": "hardhat check-address-lookup --network mainnet && hardhat check-address-lookup --network polygon && hardhat check-address-lookup --network arbitrum && hardhat check-address-lookup --network optimism && hardhat check-address-lookup --network gnosis && hardhat check-address-lookup --network bsc && hardhat check-address-lookup --network avalanche && hardhat check-address-lookup --network zkevm && hardhat check-address-lookup --network base && hardhat check-address-lookup --network fraxtal && hardhat check-address-lookup --network mode && hardhat check-address-lookup --network hyperevm && hardhat check-address-lookup --network sepolia && hardhat check-address-lookup --network monad_testnet",
"build-timelock-authorizer-config": "hardhat build-timelock-authorizer-config --network mainnet && hardhat build-timelock-authorizer-config --network polygon && hardhat build-timelock-authorizer-config --network arbitrum && hardhat build-timelock-authorizer-config --network optimism && hardhat build-timelock-authorizer-config --network gnosis && hardhat build-timelock-authorizer-config --network bsc && hardhat build-timelock-authorizer-config --network avalanche && hardhat build-timelock-authorizer-config --network zkevm && hardhat build-timelock-authorizer-config --network base && hardhat build-timelock-authorizer-config --network fraxtal && hardhat build-timelock-authorizer-config --network mode && hardhat build-timelock-authorizer-config --network hyperevm && hardhat build-timelock-authorizer-config --network sepolia && hardhat build-timelock-authorizer-config --network monad_testnet",
"check-timelock-authorizer-config": "hardhat check-timelock-authorizer-config --network mainnet && hardhat check-timelock-authorizer-config --network polygon && hardhat check-timelock-authorizer-config --network arbitrum && hardhat check-timelock-authorizer-config --network optimism && hardhat check-timelock-authorizer-config --network gnosis && hardhat check-timelock-authorizer-config --network bsc && hardhat check-timelock-authorizer-config --network avalanche && hardhat check-timelock-authorizer-config --network zkevm && hardhat check-timelock-authorizer-config --network base && hardhat check-timelock-authorizer-config --network fraxtal && hardhat check-timelock-authorizer-config --network mode && hardhat check-timelock-authorizer-config --network hyperevm && hardhat check-timelock-authorizer-config --network sepolia && hardhat check-timelock-authorizer-config --network monad_testnet",
"verify-network-timelock-authorizer-config": "hardhat verify-timelock-authorizer-config --network",
"verify-timelock-authorizer-config": "hardhat verify-timelock-authorizer-config --network mainnet && hardhat verify-timelock-authorizer-config --network polygon && hardhat verify-timelock-authorizer-config --network arbitrum && hardhat verify-timelock-authorizer-config --network optimism && hardhat verify-timelock-authorizer-config --network gnosis && hardhat verify-timelock-authorizer-config --network bsc && hardhat verify-timelock-authorizer-config --network avalanche && hardhat verify-timelock-authorizer-config --network zkevm && hardhat verify-timelock-authorizer-config --network base && hardhat verify-timelock-authorizer-config --network fraxtal && hardhat verify-timelock-authorizer-config --network mode && hardhat verify-timelock-authorizer-config --network hyperevm && hardhat verify-timelock-authorizer-config --network sepolia",
"verify-timelock-authorizer-config": "hardhat verify-timelock-authorizer-config --network mainnet && hardhat verify-timelock-authorizer-config --network polygon && hardhat verify-timelock-authorizer-config --network arbitrum && hardhat verify-timelock-authorizer-config --network optimism && hardhat verify-timelock-authorizer-config --network gnosis && hardhat verify-timelock-authorizer-config --network bsc && hardhat verify-timelock-authorizer-config --network avalanche && hardhat verify-timelock-authorizer-config --network zkevm && hardhat verify-timelock-authorizer-config --network base && hardhat verify-timelock-authorizer-config --network fraxtal && hardhat verify-timelock-authorizer-config --network mode && hardhat verify-timelock-authorizer-config --network hyperevm && hardhat verify-timelock-authorizer-config --network sepolia && hardhat verify-timelock-authorizer-config --network monad_testnet",
"lint": "yarn lint:solidity && yarn lint:typescript",
"lint:solidity": "solhint 'src/helpers/contracts/**/*.sol'",
"lint:typescript": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const NETWORKS = [
'base',
'fraxtal',
'mode',
'monad_testnet',
'hyperevm',
];

Expand Down
5 changes: 5 additions & 0 deletions v2/tasks/00000000-tokens/output/monad_testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"WETH": "0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701",
"BAL": "0x4132f7AcC9dB7A6cF7BE2Dd3A9DC8b30C7E6E6c8"
}

3 changes: 3 additions & 0 deletions v2/tasks/20210418-authorizer/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export default {
mode: {
admin: '0x4f22C2784Cbd2B24a172566491Ee73fee1A63c2e',
},
monad_testnet: {
admin: '0x9098b50ee2d9E4c3C69928A691DA3b192b4C9673',
},
hyperevm: {
admin: '0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e', // Maxi Omni
},
Expand Down
3 changes: 3 additions & 0 deletions v2/tasks/20210418-authorizer/output/monad_testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Authorizer": "0xE39B5e3B6D74016b2F6A9673D7d7493B6DF549d5"
}
3 changes: 3 additions & 0 deletions v2/tasks/20220325-test-balancer-token/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default {
base: {
Admin: '0xC40DCFB13651e64C8551007aa57F9260827B6462',
},
monad_testnet: {
Admin: '0x9098b50ee2d9E4c3C69928A691DA3b192b4C9673',
},
gnosis: {
Admin: '0x9098b50ee2d9E4c3C69928A691DA3b192b4C9673',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"TestBalancerToken": "0x4132f7AcC9dB7A6cF7BE2Dd3A9DC8b30C7E6E6c8"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CompositeLiquidityRouter": "0x36caC20dd805d128c1a6Dd16eeA845C574b5A17C"
}
3 changes: 0 additions & 3 deletions v3/deprecated/20241205-v3-router/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@ import { Task, TaskMode } from '@src';
export type RouterDeployment = {
Vault: string;
WETH: string;
BAL: string;
Permit2: string;
RouterVersion: string;
};

const Vault = new Task('20241204-v3-vault', TaskMode.READ_ONLY);
const WETH = new Task('00000000-tokens', TaskMode.READ_ONLY);
const BAL = new Task('00000000-tokens', TaskMode.READ_ONLY);
const Permit2 = new Task('00000000-permit2', TaskMode.READ_ONLY);
const BaseVersion = { version: 1, deployment: '20241205-v3-router' };

export default {
Vault,
WETH,
BAL,
Permit2,
RouterVersion: JSON.stringify({ name: 'Router', ...BaseVersion }),
};
3 changes: 3 additions & 0 deletions v3/deprecated/20241205-v3-router/output/monad_testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Router": "0x85a80afee867aDf27B50BdB7b76DA70f1E853062"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"StablePoolFactory": "0xb9F8AB3ED3F3aCBa64Bc6cd2DcA74B7F38fD7B88",
"MockStablePool": "0x67c2A650f6Eda2b448061c8cE6923571493C2aD2"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"VaultExplorer": "0x9805dcfD25e6De36bad8fe9D3Fe2c9b44B764102"
}
3 changes: 3 additions & 0 deletions v3/tasks/00000000-permit2/output/monad_testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
}
2 changes: 1 addition & 1 deletion v3/tasks/20241204-v3-vault/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async (task: Task, { force, from }: TaskRunOptions = {}): Promise

const vaultAddress = await vaultFactory.getDeploymentAddress(input.salt);
if (vaultAddress !== input.targetVaultAddress) {
throw Error('Incorrect target address');
throw Error(`Incorrect target address: ${vaultAddress}`);
}

const deployTransaction = await task.deployFactoryContracts(
Expand Down
2 changes: 1 addition & 1 deletion v3/tasks/20241204-v3-vault/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const vaultAdminArtifact = Vault.artifact('VaultAdmin');
const vaultAdminCreationCode = vaultAdminArtifact.bytecode;

const salt = '0x3877188e9e5da25b11fdb7f5e8d4fdddce2d22707ba04878a8e14700dd46fa82';
const targetVaultAddress = '0xbA1333333333a1BA1108E8412f11850A5C319bA9';
const targetVaultAddress = '0xd07101ebD191C366D5A177cA67826014B0E42Ae3'; // For monad testnet

export default {
Authorizer,
Expand Down
7 changes: 7 additions & 0 deletions v3/tasks/20241204-v3-vault/output/monad_testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"VaultFactory": "0xF24917fB88261a37Cc57F686eBC831a5c0B9fD39",
"ProtocolFeeController": "0x1452b94e9E1D535a05d4C087a6428B512Af36D0F",
"VaultAdmin": "0x9F1f11a414AF861bef8108B3cE2Cbc43DEBB3165",
"VaultExtension": "0xcdB7d6554F54e6cb9a05ac87E69f0cd0B51a729c",
"Vault": "0xd07101ebD191C366D5A177cA67826014B0E42Ae3"
}
3 changes: 3 additions & 0 deletions v3/tasks/20241205-v3-batch-router/output/monad_testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"BatchRouter": "0x956CCab09898C0AF2aCa5e6C229c3aD4E93d9288"
}
Loading
Loading