From d2453db1b9fe8fc54c8de2297dde551378584921 Mon Sep 17 00:00:00 2001 From: nmlinaric Date: Wed, 22 Mar 2023 15:38:23 +0100 Subject: [PATCH] chore: add devnet and testnet configs for migrations --- migrations/devnet.json | 358 ++++++++++++++++++++++++++++++++++++++ migrations/testnet.json | 377 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 735 insertions(+) create mode 100644 migrations/devnet.json create mode 100644 migrations/testnet.json diff --git a/migrations/devnet.json b/migrations/devnet.json new file mode 100644 index 00000000..e370d4cd --- /dev/null +++ b/migrations/devnet.json @@ -0,0 +1,358 @@ +{ + "goerli": { + "domainID": "0", + "MPCAddress": "0xB01137123EF02fAeF251a39108c6ef513AAaC485", + "fee": { + "oracle": { + "gasUsed": "100000", + "feePercentage": 300, + "address": "0x124226016fc76a6bf501b4aedbed6a4a0472644f" + }, + "basic": { + "fee": "0.0001" + } + }, + "access": { + "accessControl": {} + }, + "erc721": [ + { + "name": "ERC721Test", + "symbol": "ERC721TST", + "uri": "metadata.test", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000200", + "feeType": "basic" + } + ], + "erc20": [ + { + "name": "ERC20LRTest", + "symbol": "ERC20LRTST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000300", + "feeType": "basic", + "strategy": "lr", + "decimals": "18" + }, + { + "name": "ERC20Test", + "symbol": "ERC20TST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000000", + "feeType": "oracle", + "strategy": "mb", + "decimals": "18" + }, + { + "name": "ERC20LRTest_14Dec", + "symbol": "ERC20LRTST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000600", + "feeType": "basic", + "strategy": "lr", + "decimals": 14 + }, + { + "name": "ERC20Test_14Dec", + "symbol": "ERC20TST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000700", + "feeType": "oracle", + "strategy": "mb", + "decimals": 14 + }, + { + "name": "ERC20LRTest_20Dec", + "symbol": "ERC20LRTST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000800", + "feeType": "basic", + "strategy": "lr", + "decimals": 20 + }, + { + "name": "ERC20Test_20Dec", + "symbol": "ERC20TST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000900", + "feeType": "oracle", + "strategy": "mb", + "decimals": 20 + } + ], + "permissionedGeneric": [ + { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000100", + "feeType": "basic", + "depositFunctionSig": "0x00000000", + "depositorOffset": 0, + "executeFunctionSig": "store" + } + ], + "permissionlessGeneric": { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000500", + "feeType": "basic" + } + }, + "mumbai": { + "domainID": "1", + "MPCAddress": "0xB01137123EF02fAeF251a39108c6ef513AAaC485", + "fee": { + "oracle": { + "gasUsed": "100000", + "feePercentage": 300, + "address": "0x124226016fc76a6bf501b4aedbed6a4a0472644f" + }, + "basic": { + "fee": "0.0001" + } + }, + "access": { + "accessControl": {} + }, + "erc721": [ + { + "name": "ERC721Test", + "symbol": "ERC721TST", + "uri": "metadata.test", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000200", + "feeType": "basic" + } + ], + "erc20": [ + { + "name": "ERC20LRTest", + "symbol": "ERC20LRTST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000300", + "feeType": "basic", + "strategy": "lr", + "decimals": "18" + }, + { + "name": "ERC20Test", + "symbol": "ERC20TST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000000", + "feeType": "oracle", + "strategy": "mb", + "decimals": "18" + }, + { + "name": "ERC20LRTest_14Dec", + "symbol": "ERC20LRTST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000600", + "feeType": "basic", + "strategy": "lr", + "decimals": 14 + }, + { + "name": "ERC20Test_14Dec", + "symbol": "ERC20TST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000700", + "feeType": "oracle", + "strategy": "mb", + "decimals": 14 + }, + { + "name": "ERC20LRTest_20Dec", + "symbol": "ERC20LRTST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000800", + "feeType": "basic", + "strategy": "lr", + "decimals": 20 + }, + { + "name": "ERC20Test_20Dec", + "symbol": "ERC20TST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000900", + "feeType": "oracle", + "strategy": "mb", + "decimals": 20 + } + ], + "permissionedGeneric": [ + { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000100", + "feeType": "basic", + "depositFunctionSig": "0x00000000", + "depositorOffset": 0, + "executeFunctionSig": "store" + } + ], + "permissionlessGeneric": { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000500", + "feeType": "basic" + } + }, + "moonbase": { + "domainID": "2", + "MPCAddress": "0xB01137123EF02fAeF251a39108c6ef513AAaC485", + "fee": { + "oracle": { + "gasUsed": "100000", + "feePercentage": 300, + "address": "0x124226016fc76a6bf501b4aedbed6a4a0472644f" + }, + "basic": { + "fee": "0.0001" + } + }, + "access": { + "accessControl": {} + }, + "erc721": [ + { + "name": "ERC721Test", + "symbol": "ERC721TST", + "uri": "metadata.test", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000200", + "feeType": "basic" + } + ], + "erc20": [ + { + "name": "ERC20LRTest", + "symbol": "ERC20LRTST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000300", + "feeType": "basic", + "strategy": "lr", + "decimals": "18" + }, + { + "name": "ERC20Test", + "symbol": "ERC20TST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000000", + "feeType": "oracle", + "strategy": "mb", + "decimals": "18" + }, + { + "name": "ERC20LRTest_14Dec", + "symbol": "ERC20LRTST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000600", + "feeType": "basic", + "strategy": "lr", + "decimals": 14 + }, + { + "name": "ERC20Test_14Dec", + "symbol": "ERC20TST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000700", + "feeType": "oracle", + "strategy": "mb", + "decimals": 14 + }, + { + "name": "ERC20LRTest_20Dec", + "symbol": "ERC20LRTST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000800", + "feeType": "basic", + "strategy": "lr", + "decimals": 20 + }, + { + "name": "ERC20Test_20Dec", + "symbol": "ERC20TST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000900", + "feeType": "oracle", + "strategy": "mb", + "decimals": 20 + } + ], + "permissionedGeneric": [ + { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000100", + "feeType": "basic", + "depositFunctionSig": "0x00000000", + "depositorOffset": 0, + "executeFunctionSig": "store" + } + ], + "permissionlessGeneric": { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000500", + "feeType": "basic" + } + }, + "sepolia": { + "domainID": "3", + "MPCAddress": "0xB01137123EF02fAeF251a39108c6ef513AAaC485", + "fee": { + "oracle": { + "gasUsed": "100000", + "feePercentage": 300, + "address": "0x124226016fc76a6bf501b4aedbed6a4a0472644f" + }, + "basic": { + "fee": "0.0001" + } + }, + "access": { + "accessControl": {} + }, + "erc721": [ + { + "name": "ERC721Test", + "symbol": "ERC721TST", + "uri": "metadata.test", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000200", + "feeType": "basic" + } + ], + "erc20": [ + { + "name": "ERC20LRTest", + "symbol": "ERC20LRTST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000300", + "feeType": "basic", + "strategy": "lr", + "decimals": "18" + }, + { + "name": "ERC20Test", + "symbol": "ERC20TST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000000", + "feeType": "oracle", + "strategy": "mb", + "decimals": "18" + }, + { + "name": "ERC20LRTest_14Dec", + "symbol": "ERC20LRTST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000600", + "feeType": "basic", + "strategy": "lr", + "decimals": 14 + }, + { + "name": "ERC20Test_14Dec", + "symbol": "ERC20TST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000700", + "feeType": "oracle", + "strategy": "mb", + "decimals": 14 + }, + { + "name": "ERC20LRTest_20Dec", + "symbol": "ERC20LRTST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000800", + "feeType": "basic", + "strategy": "lr", + "decimals": 20 + }, + { + "name": "ERC20Test_20Dec", + "symbol": "ERC20TST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000900", + "feeType": "oracle", + "strategy": "mb", + "decimals": 20 + } + ], + "permissionedGeneric": [ + { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000100", + "feeType": "basic", + "depositFunctionSig": "0x00000000", + "depositorOffset": 0, + "executeFunctionSig": "store" + } + ], + "permissionlessGeneric": { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000500", + "feeType": "basic" + } + } +} diff --git a/migrations/testnet.json b/migrations/testnet.json new file mode 100644 index 00000000..6fc90446 --- /dev/null +++ b/migrations/testnet.json @@ -0,0 +1,377 @@ +{ + "goerli": { + "domainID": "1", + "MPCAddress": "0x316dc2f7f6a558c733c2719ba69340e671f48815", + "fee": { + "oracle": { + "gasUsed": "100000", + "feePercentage": 300, + "address": "0x0c3d905C909eB5e3243b65b905c96B309266d7BB" + }, + "basic": { + "fee": "0.001" + } + }, + "access": { + "accessControl": {} + }, + "erc721": [ + { + "name": "ERC721Test", + "symbol": "ERC721TST", + "uri": "metadata.test", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000200", + "feeType": "basic" + } + ], + "erc20": [ + { + "name": "ERC20LRTest", + "symbol": "ERC20LRTST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000300", + "feeType": "basic", + "strategy": "lr", + "decimals": "18" + }, + { + "name": "ERC20Test", + "symbol": "ERC20TST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000000", + "feeType": "oracle", + "strategy": "mb", + "decimals": "18" + }, + { + "name": "ERC20LRTest_14Dec", + "symbol": "ERC20LRTST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000600", + "feeType": "basic", + "strategy": "lr", + "decimals": 14 + }, + { + "name": "ERC20Test_14Dec", + "symbol": "ERC20TST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000700", + "feeType": "oracle", + "strategy": "mb", + "decimals": 14 + }, + { + "name": "ERC20LRTest_20Dec", + "symbol": "ERC20LRTST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000800", + "feeType": "basic", + "strategy": "lr", + "decimals": 20 + }, + { + "name": "ERC20Test_20Dec", + "symbol": "ERC20TST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000900", + "feeType": "oracle", + "strategy": "mb", + "decimals": 20 + } + ], + "permissionedGeneric": [ + { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000100", + "feeType": "basic", + "depositFunctionSig": "0x00000000", + "depositorOffset": 0, + "executeFunctionSig": "store" + } + ], + "permissionlessGeneric": { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000500", + "feeType": "basic" + } + }, + "mumbai": { + "domainID": "2", + "MPCAddress": "0x316dc2f7f6a558c733c2719ba69340e671f48815", + "fee": { + "oracle": { + "gasUsed": "100000", + "feePercentage": 300, + "address": "0x0c3d905C909eB5e3243b65b905c96B309266d7BB" + }, + "basic": { + "fee": "0.001" + } + }, + "access": { + "accessControl": {} + }, + "erc721": [ + { + "name": "ERC721Test", + "symbol": "ERC721TST", + "uri": "metadata.test", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000200", + "feeType": "basic" + } + ], + "erc20": [ + { + "name": "ERC20LRTest", + "symbol": "ERC20LRTST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000300", + "feeType": "basic", + "strategy": "lr", + "decimals": "18" + }, + { + "name": "ERC20Test", + "symbol": "ERC20TST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000000", + "feeType": "oracle", + "strategy": "mb", + "decimals": "18" + }, + { + "name": "ERC20LRTest_14Dec", + "symbol": "ERC20LRTST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000600", + "feeType": "basic", + "strategy": "lr", + "decimals": 14 + }, + { + "name": "ERC20Test_14Dec", + "symbol": "ERC20TST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000700", + "feeType": "oracle", + "strategy": "mb", + "decimals": 14 + }, + { + "name": "ERC20LRTest_20Dec", + "symbol": "ERC20LRTST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000800", + "feeType": "basic", + "strategy": "lr", + "decimals": 20 + }, + { + "name": "ERC20Test_20Dec", + "symbol": "ERC20TST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000900", + "feeType": "oracle", + "strategy": "mb", + "decimals": 20 + } + ], + "permissionedGeneric": [ + { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000100", + "feeType": "basic", + "depositFunctionSig": "0x00000000", + "depositorOffset": 0, + "executeFunctionSig": "store" + } + ], + "permissionlessGeneric": { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000500", + "feeType": "basic" + } + }, + "moonbase": { + "domainID": "3", + "MPCAddress": "0x316dc2f7f6a558c733c2719ba69340e671f48815", + "fee": { + "oracle": { + "gasUsed": "100000", + "feePercentage": 300, + "address": "0x0c3d905C909eB5e3243b65b905c96B309266d7BB" + }, + "basic": { + "fee": "0.001" + } + }, + "access": { + "feeHandlerAdmin": "0x23FEe27832B9C2bF490666d420745406CB23F2e8", + "accessControl": {} + }, + "erc721": [ + { + "name": "ERC721Test", + "symbol": "ERC721TST", + "uri": "metadata.test", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000200", + "feeType": "basic" + } + ], + "erc20": [ + { + "name": "ERC20LRTest", + "symbol": "ERC20LRTST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000300", + "feeType": "basic", + "strategy": "lr", + "decimals": "18" + }, + { + "name": "ERC20Test", + "symbol": "ERC20TST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000000", + "feeType": "oracle", + "strategy": "mb", + "decimals": "18" + }, + { + "name": "ERC20LRTest_14Dec", + "symbol": "ERC20LRTST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000600", + "feeType": "basic", + "strategy": "lr", + "decimals": 14 + }, + { + "name": "ERC20Test_14Dec", + "symbol": "ERC20TST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000700", + "feeType": "oracle", + "strategy": "mb", + "decimals": 14 + }, + { + "name": "ERC20LRTest_20Dec", + "symbol": "ERC20LRTST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000800", + "feeType": "basic", + "strategy": "lr", + "decimals": 20 + }, + { + "name": "ERC20Test_20Dec", + "symbol": "ERC20TST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000900", + "feeType": "oracle", + "strategy": "mb", + "decimals": 20 + } + ], + "permissionedGeneric": [ + { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000100", + "feeType": "basic", + "depositFunctionSig": "0x00000000", + "depositorOffset": 0, + "executeFunctionSig": "store" + } + ], + "permissionlessGeneric": { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000500", + "feeType": "basic" + } + }, + "sepolia": { + "domainID": "4", + "MPCAddress": "0x316dc2f7f6a558c733c2719ba69340e671f48815", + "fee": { + "oracle": { + "gasUsed": "100000", + "feePercentage": 300, + "address": "0x0c3d905C909eB5e3243b65b905c96B309266d7BB" + }, + "basic": { + "fee": "0.001" + } + }, + "access": { + "feeRouterAdmin": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "feeHandlerAdmin": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "accessControl": { + "0x80ae1c28": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0xffaac0eb": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0xcb10f215": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0x5a1ad87c": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0x8c0c2631": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0xedc20c3c": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0xd15ef64e": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0x9d33b6d4": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0x8b63aebf": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0xbd2a1820": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0x6ba6db6b": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0xd2e5fae9": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0xd8236744": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0x366b4885": "0xe9f23A8289764280697a03aC06795eA92a170e42", + "0xa973ec93": "0xe9f23A8289764280697a03aC06795eA92a170e42" + } + }, + "erc721": [ + { + "name": "ERC721Test", + "symbol": "ERC721TST", + "uri": "metadata.test", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000200", + "feeType": "basic" + } + ], + "erc20": [ + { + "name": "ERC20LRTest", + "symbol": "ERC20LRTST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000300", + "feeType": "basic", + "strategy": "lr", + "decimals": "18" + }, + { + "name": "ERC20Test", + "symbol": "ERC20TST", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000000", + "feeType": "oracle", + "strategy": "mb", + "decimals": "18" + }, + { + "name": "ERC20LRTest_14Dec", + "symbol": "ERC20LRTST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000600", + "feeType": "basic", + "strategy": "lr", + "decimals": 14 + }, + { + "name": "ERC20Test_14Dec", + "symbol": "ERC20TST_14D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000700", + "feeType": "oracle", + "strategy": "mb", + "decimals": 14 + }, + { + "name": "ERC20LRTest_20Dec", + "symbol": "ERC20LRTST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000800", + "feeType": "basic", + "strategy": "lr", + "decimals": 20 + }, + { + "name": "ERC20Test_20Dec", + "symbol": "ERC20TST_20D", + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000900", + "feeType": "oracle", + "strategy": "mb", + "decimals": 20 + } + ], + "permissionedGeneric": [ + { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000100", + "feeType": "basic", + "depositFunctionSig": "0x00000000", + "depositorOffset": 0, + "executeFunctionSig": "store" + } + ], + "permissionlessGeneric": { + "resourceID": "0x0000000000000000000000000000000000000000000000000000000000000500", + "feeType": "basic" + } + } +}