diff --git a/broadcast/SetL1ResolverSigner.s.sol/11155111/run-1718918784.json b/broadcast/SetL1ResolverSigner.s.sol/11155111/run-1718918784.json new file mode 100644 index 00000000..9ea7ec31 --- /dev/null +++ b/broadcast/SetL1ResolverSigner.s.sol/11155111/run-1718918784.json @@ -0,0 +1,63 @@ +{ + "transactions": [ + { + "hash": "0x6f4ba14b8e6b5cce733210019f9c7f1e7c5ad816c2ca488915e8f3f300b5317e", + "transactionType": "CALL", + "contractName": "L1Resolver", + "contractAddress": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "function": "addSigners(address[])", + "arguments": [ + "[0x0ae910AFA602F5460c4A6eDEc98A4F429901fAE2]" + ], + "transaction": { + "from": "0x869140c91edf43214a3ecedeaf777cc7107ad71a", + "to": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "gas": "0x11640", + "value": "0x0", + "input": "0xe8906a2d000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000ae910afa602f5460c4a6edec98a4f429901fae2", + "nonce": "0x6", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x6e921b", + "logs": [ + { + "address": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "topics": [ + "0xab0b9cc3a46b568cb08d985497cde8ab7e18892d01f58db7dc7f0d2af859b2d7" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000ae910afa602f5460c4a6edec98a4f429901fae2", + "blockHash": "0x3b36c60972601a18e5927480bb4d4465a965ddfaba86913eb34862544b5e0dd2", + "blockNumber": "0x5dd855", + "transactionHash": "0x6f4ba14b8e6b5cce733210019f9c7f1e7c5ad816c2ca488915e8f3f300b5317e", + "transactionIndex": "0x46", + "logIndex": "0x6d", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000002000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000100000000000000000000200000000000000000000000", + "type": "0x2", + "transactionHash": "0x6f4ba14b8e6b5cce733210019f9c7f1e7c5ad816c2ca488915e8f3f300b5317e", + "transactionIndex": "0x46", + "blockHash": "0x3b36c60972601a18e5927480bb4d4465a965ddfaba86913eb34862544b5e0dd2", + "blockNumber": "0x5dd855", + "gasUsed": "0xbe42", + "effectiveGasPrice": "0x1f2e0372", + "from": "0x869140c91edf43214a3ecedeaf777cc7107ad71a", + "to": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1718918784, + "chain": 11155111, + "commit": "082ed1b" +} \ No newline at end of file diff --git a/broadcast/SetL1ResolverSigner.s.sol/11155111/run-latest.json b/broadcast/SetL1ResolverSigner.s.sol/11155111/run-latest.json new file mode 100644 index 00000000..9ea7ec31 --- /dev/null +++ b/broadcast/SetL1ResolverSigner.s.sol/11155111/run-latest.json @@ -0,0 +1,63 @@ +{ + "transactions": [ + { + "hash": "0x6f4ba14b8e6b5cce733210019f9c7f1e7c5ad816c2ca488915e8f3f300b5317e", + "transactionType": "CALL", + "contractName": "L1Resolver", + "contractAddress": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "function": "addSigners(address[])", + "arguments": [ + "[0x0ae910AFA602F5460c4A6eDEc98A4F429901fAE2]" + ], + "transaction": { + "from": "0x869140c91edf43214a3ecedeaf777cc7107ad71a", + "to": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "gas": "0x11640", + "value": "0x0", + "input": "0xe8906a2d000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000ae910afa602f5460c4a6edec98a4f429901fae2", + "nonce": "0x6", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x6e921b", + "logs": [ + { + "address": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "topics": [ + "0xab0b9cc3a46b568cb08d985497cde8ab7e18892d01f58db7dc7f0d2af859b2d7" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000ae910afa602f5460c4a6edec98a4f429901fae2", + "blockHash": "0x3b36c60972601a18e5927480bb4d4465a965ddfaba86913eb34862544b5e0dd2", + "blockNumber": "0x5dd855", + "transactionHash": "0x6f4ba14b8e6b5cce733210019f9c7f1e7c5ad816c2ca488915e8f3f300b5317e", + "transactionIndex": "0x46", + "logIndex": "0x6d", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000002000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000100000000000000000000200000000000000000000000", + "type": "0x2", + "transactionHash": "0x6f4ba14b8e6b5cce733210019f9c7f1e7c5ad816c2ca488915e8f3f300b5317e", + "transactionIndex": "0x46", + "blockHash": "0x3b36c60972601a18e5927480bb4d4465a965ddfaba86913eb34862544b5e0dd2", + "blockNumber": "0x5dd855", + "gasUsed": "0xbe42", + "effectiveGasPrice": "0x1f2e0372", + "from": "0x869140c91edf43214a3ecedeaf777cc7107ad71a", + "to": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1718918784, + "chain": 11155111, + "commit": "082ed1b" +} \ No newline at end of file diff --git a/broadcast/SetL1ResolverUrl.s.sol/11155111/run-1718750100.json b/broadcast/SetL1ResolverUrl.s.sol/11155111/run-1718750100.json new file mode 100644 index 00000000..d498f668 --- /dev/null +++ b/broadcast/SetL1ResolverUrl.s.sol/11155111/run-1718750100.json @@ -0,0 +1,63 @@ +{ + "transactions": [ + { + "hash": "0x0f35c4cef79a422c5748f4d6204b8a17ec029a043bc68c5e9c6dbe5b42014c65", + "transactionType": "CALL", + "contractName": "L1Resolver", + "contractAddress": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "function": "setUrl(string)", + "arguments": [ + "\"https://api.coinbase.com/api/v1/domain/resolver/resolveDomain/{sender}/{data}\"" + ], + "transaction": { + "from": "0x869140c91edf43214a3ecedeaf777cc7107ad71a", + "to": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "gas": "0x106d0", + "value": "0x0", + "input": "0x252498a20000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004d68747470733a2f2f6170692e636f696e626173652e636f6d2f6170692f76312f646f6d61696e2f7265736f6c7665722f7265736f6c7665446f6d61696e2f7b73656e6465727d2f7b646174617d00000000000000000000000000000000000000", + "nonce": "0x5", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x64cdc5", + "logs": [ + { + "address": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "topics": [ + "0x2c79c64e8bbe05b31bc2d6bacc4b8aece533e968d1596c82949b0f6bb2ac00f0" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004d68747470733a2f2f6170692e636f696e626173652e636f6d2f6170692f76312f646f6d61696e2f7265736f6c7665722f7265736f6c7665446f6d61696e2f7b73656e6465727d2f7b646174617d00000000000000000000000000000000000000", + "blockHash": "0x3fd841385e544fbd1d1ac3c8fc6f423cff79ebc0b7359cd2ac9bfe03c5c40def", + "blockNumber": "0x5da2c8", + "transactionHash": "0x0f35c4cef79a422c5748f4d6204b8a17ec029a043bc68c5e9c6dbe5b42014c65", + "transactionIndex": "0x25", + "logIndex": "0x2f", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000040000000002000000000000000000040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "transactionHash": "0x0f35c4cef79a422c5748f4d6204b8a17ec029a043bc68c5e9c6dbe5b42014c65", + "transactionIndex": "0x25", + "blockHash": "0x3fd841385e544fbd1d1ac3c8fc6f423cff79ebc0b7359cd2ac9bfe03c5c40def", + "blockNumber": "0x5da2c8", + "gasUsed": "0xbe46", + "effectiveGasPrice": "0x3b9d890b", + "from": "0x869140c91edf43214a3ecedeaf777cc7107ad71a", + "to": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1718750100, + "chain": 11155111, + "commit": "082ed1b" +} \ No newline at end of file diff --git a/broadcast/SetL1ResolverUrl.s.sol/11155111/run-latest.json b/broadcast/SetL1ResolverUrl.s.sol/11155111/run-latest.json index 9a5d238d..d498f668 100644 --- a/broadcast/SetL1ResolverUrl.s.sol/11155111/run-latest.json +++ b/broadcast/SetL1ResolverUrl.s.sol/11155111/run-latest.json @@ -1,21 +1,21 @@ { "transactions": [ { - "hash": "0x0518113fbaf863709499a17821cb53df455366ec77fd926d65394401083e3669", + "hash": "0x0f35c4cef79a422c5748f4d6204b8a17ec029a043bc68c5e9c6dbe5b42014c65", "transactionType": "CALL", "contractName": "L1Resolver", "contractAddress": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", "function": "setUrl(string)", "arguments": [ - "\"https://api-entry-gateway-development.cbhq.net/api/v1/domain/resolver/resolveDomain/{sender}/{data}\"" + "\"https://api.coinbase.com/api/v1/domain/resolver/resolveDomain/{sender}/{data}\"" ], "transaction": { "from": "0x869140c91edf43214a3ecedeaf777cc7107ad71a", "to": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", - "gas": "0x11553", + "gas": "0x106d0", "value": "0x0", - "input": "0x252498a20000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006368747470733a2f2f6170692d656e7472792d676174657761792d646576656c6f706d656e742e636268712e6e65742f6170692f76312f646f6d61696e2f7265736f6c7665722f7265736f6c7665446f6d61696e2f7b73656e6465727d2f7b646174617d0000000000000000000000000000000000000000000000000000000000", - "nonce": "0x4", + "input": "0x252498a20000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004d68747470733a2f2f6170692e636f696e626173652e636f6d2f6170692f76312f646f6d61696e2f7265736f6c7665722f7265736f6c7665446f6d61696e2f7b73656e6465727d2f7b646174617d00000000000000000000000000000000000000", + "nonce": "0x5", "chainId": "0xaa36a7" }, "additionalContracts": [], @@ -25,30 +25,30 @@ "receipts": [ { "status": "0x1", - "cumulativeGasUsed": "0xe03a35", + "cumulativeGasUsed": "0x64cdc5", "logs": [ { "address": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", "topics": [ "0x2c79c64e8bbe05b31bc2d6bacc4b8aece533e968d1596c82949b0f6bb2ac00f0" ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006368747470733a2f2f6170692d656e7472792d676174657761792d646576656c6f706d656e742e636268712e6e65742f6170692f76312f646f6d61696e2f7265736f6c7665722f7265736f6c7665446f6d61696e2f7b73656e6465727d2f7b646174617d0000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x5d30926adec1b28894e5f76c82413bcc01290aae8bc87a0568802017150820ca", - "blockNumber": "0x5d3478", - "transactionHash": "0x0518113fbaf863709499a17821cb53df455366ec77fd926d65394401083e3669", - "transactionIndex": "0x9e", - "logIndex": "0xa3", + "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004d68747470733a2f2f6170692e636f696e626173652e636f6d2f6170692f76312f646f6d61696e2f7265736f6c7665722f7265736f6c7665446f6d61696e2f7b73656e6465727d2f7b646174617d00000000000000000000000000000000000000", + "blockHash": "0x3fd841385e544fbd1d1ac3c8fc6f423cff79ebc0b7359cd2ac9bfe03c5c40def", + "blockNumber": "0x5da2c8", + "transactionHash": "0x0f35c4cef79a422c5748f4d6204b8a17ec029a043bc68c5e9c6dbe5b42014c65", + "transactionIndex": "0x25", + "logIndex": "0x2f", "removed": false } ], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000040000000002000000000000000000040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000", "type": "0x2", - "transactionHash": "0x0518113fbaf863709499a17821cb53df455366ec77fd926d65394401083e3669", - "transactionIndex": "0x9e", - "blockHash": "0x5d30926adec1b28894e5f76c82413bcc01290aae8bc87a0568802017150820ca", - "blockNumber": "0x5d3478", - "gasUsed": "0xc8c8", - "effectiveGasPrice": "0x361f9e7", + "transactionHash": "0x0f35c4cef79a422c5748f4d6204b8a17ec029a043bc68c5e9c6dbe5b42014c65", + "transactionIndex": "0x25", + "blockHash": "0x3fd841385e544fbd1d1ac3c8fc6f423cff79ebc0b7359cd2ac9bfe03c5c40def", + "blockNumber": "0x5da2c8", + "gasUsed": "0xbe46", + "effectiveGasPrice": "0x3b9d890b", "from": "0x869140c91edf43214a3ecedeaf777cc7107ad71a", "to": "0x0a702b2475878628ff6a9a4be5e18e6db9b74ed3", "contractAddress": null @@ -57,7 +57,7 @@ "libraries": [], "pending": [], "returns": {}, - "timestamp": 1718395347, + "timestamp": 1718750100, "chain": 11155111, - "commit": "54057e5" + "commit": "082ed1b" } \ No newline at end of file diff --git a/script/configure/SetL1ResolverSigner.s.sol b/script/configure/SetL1ResolverSigner.s.sol new file mode 100644 index 00000000..f877514c --- /dev/null +++ b/script/configure/SetL1ResolverSigner.s.sol @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.23; + +import "forge-std/Script.sol"; +import "src/L1/L1Resolver.sol"; + +contract SetL1ResolverSigner is Script { + function run() external { + uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); + address resolverAddress = vm.envAddress("L1_RESOLVER_ADDR"); + vm.startBroadcast(deployerPrivateKey); + + address NEW_SIGNER = 0x0ae910AFA602F5460c4A6eDEc98A4F429901fAE2; + address[] memory signers = new address[](1); + signers[0] = NEW_SIGNER; + + L1Resolver resolver = L1Resolver(resolverAddress); + console.log("connected to L1 resolver"); + resolver.addSigners(signers); + + vm.stopBroadcast(); + } +} diff --git a/script/configure/SetL1ResolverUrl.s.sol b/script/configure/SetL1ResolverUrl.s.sol index 6912d164..46feb800 100644 --- a/script/configure/SetL1ResolverUrl.s.sol +++ b/script/configure/SetL1ResolverUrl.s.sol @@ -10,8 +10,7 @@ contract SetL1ResolverUrl is Script { address resolverAddress = vm.envAddress("L1_RESOLVER_ADDR"); vm.startBroadcast(deployerPrivateKey); - string memory NEW_URL = - "https://api-entry-gateway-development.cbhq.net/api/v1/domain/resolver/resolveDomain/{sender}/{data}"; + string memory NEW_URL = "https://api.coinbase.com/api/v1/domain/resolver/resolveDomain/{sender}/{data}"; L1Resolver resolver = L1Resolver(resolverAddress); resolver.setUrl(NEW_URL);