@tokamak-network/thanos-contracts
Version:
1 lines • 15.8 kB
JSON
{"abi":[{"type":"function","name":"getAddress","inputs":[{"name":"_name","type":"string","internalType":"string"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"setAddress","inputs":[{"name":"_name","type":"string","internalType":"string"},{"name":"_address","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"AddressSet","inputs":[{"name":"name","type":"string","indexed":true,"internalType":"string"},{"name":"newAddress","type":"address","indexed":false,"internalType":"address"},{"name":"oldAddress","type":"address","indexed":false,"internalType":"address"}],"anonymous":false}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"getAddress(string)":"bf40fac1","setAddress(string,address)":"9b2ea4bd"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldAddress\",\"type\":\"address\"}],\"name\":\"AddressSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"}],\"name\":\"getAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"setAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"AddressSet(string,address,address)\":{\"params\":{\"name\":\"String name being set in the registry.\",\"newAddress\":\"Address set for the given name.\",\"oldAddress\":\"Address that was previously set for the given name.\"}}},\"kind\":\"dev\",\"methods\":{\"getAddress(string)\":{\"params\":{\"_name\":\"Name to retrieve an address for.\"},\"returns\":{\"_0\":\"Address associated with the given name.\"}},\"setAddress(string,address)\":{\"params\":{\"_address\":\"Address to associate with the name.\",\"_name\":\"String name to associate an address with.\"}}},\"title\":\"IAddressManager\",\"version\":1},\"userdoc\":{\"events\":{\"AddressSet(string,address,address)\":{\"notice\":\"Emitted when an address is modified in the registry.\"}},\"kind\":\"user\",\"methods\":{\"getAddress(string)\":{\"notice\":\"Retrieves the address associated with a given name.\"},\"setAddress(string,address)\":{\"notice\":\"Changes the address associated with a particular name.\"}},\"notice\":\"Minimal interface of the Legacy AddressManager.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"scripts/interfaces/IAddressManager.sol\":\"IAddressManager\"},\"evmVersion\":\"cancun\",\"libraries\":{\"src/tokamak-contracts/USDC/L2/tokamak-USDC/v2/FiatTokenV2_2.sol:SignatureChecker\":\"0x4200000000000000000000000000000000000776\"},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[\":@lib-keccak/=lib/lib-keccak/contracts/lib/\",\":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@openzeppelin/contracts_v3.1.0/=lib/openzeppelin-contracts_v3.1.0/contracts/\",\":@openzeppelin/contracts_v5.0.1/=lib/openzeppelin-contracts_v5.0.1/contracts/\",\":@rari-capital/solmate/=lib/solmate/\",\":@solady-test/=lib/lib-keccak/lib/solady/test/\",\":@solady/=lib/solady/src/\",\":automate/=lib/automate/contracts/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts_v5.0.1/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":gelato/=lib/automate/contracts/\",\":hardhat/=lib/automate/node_modules/hardhat/\",\":kontrol-cheatcodes/=lib/kontrol-cheatcodes/src/\",\":lib-keccak/=lib/lib-keccak/contracts/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin-contracts_v3.1.0/=lib/openzeppelin-contracts_v3.1.0/contracts/\",\":openzeppelin-contracts_v5.0.1/=lib/openzeppelin-contracts_v5.0.1/\",\":prb-test/=lib/automate/lib/prb-test/src/\",\":prb/-est/=lib/automate/lib/prb-test/src/\",\":safe-contracts/=lib/safe-contracts/contracts/\",\":solady/=lib/solady/\",\":solmate/=lib/solmate/src/\"]},\"sources\":{\"scripts/interfaces/IAddressManager.sol\":{\"keccak256\":\"0x8535ed4854cada3ed9eca1a04a6fd2567862f7bd7dc4a8a1be36095ec437da53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://afd8602362aee418eac66093e59bab8da103122a3c08c8f79f44effdfe4fd6ce\",\"dweb:/ipfs/QmUBeiKWmEpx2yK4237QMz12nrPhmbWe56xd6QFH9vfrPt\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.26+commit.8a97fa7a"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"string","name":"name","type":"string","indexed":true},{"internalType":"address","name":"newAddress","type":"address","indexed":false},{"internalType":"address","name":"oldAddress","type":"address","indexed":false}],"type":"event","name":"AddressSet","anonymous":false},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"stateMutability":"view","type":"function","name":"getAddress","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_address","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setAddress"}],"devdoc":{"kind":"dev","methods":{"getAddress(string)":{"params":{"_name":"Name to retrieve an address for."},"returns":{"_0":"Address associated with the given name."}},"setAddress(string,address)":{"params":{"_address":"Address to associate with the name.","_name":"String name to associate an address with."}}},"version":1},"userdoc":{"kind":"user","methods":{"getAddress(string)":{"notice":"Retrieves the address associated with a given name."},"setAddress(string,address)":{"notice":"Changes the address associated with a particular name."}},"version":1}},"settings":{"remappings":["@lib-keccak/=lib/lib-keccak/contracts/lib/","@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","@openzeppelin/contracts_v3.1.0/=lib/openzeppelin-contracts_v3.1.0/contracts/","@openzeppelin/contracts_v5.0.1/=lib/openzeppelin-contracts_v5.0.1/contracts/","@rari-capital/solmate/=lib/solmate/","@solady-test/=lib/lib-keccak/lib/solady/test/","@solady/=lib/solady/src/","automate/=lib/automate/contracts/","ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts_v5.0.1/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","gelato/=lib/automate/contracts/","hardhat/=lib/automate/node_modules/hardhat/","kontrol-cheatcodes/=lib/kontrol-cheatcodes/src/","lib-keccak/=lib/lib-keccak/contracts/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts/","openzeppelin-contracts_v3.1.0/=lib/openzeppelin-contracts_v3.1.0/contracts/","openzeppelin-contracts_v5.0.1/=lib/openzeppelin-contracts_v5.0.1/","prb-test/=lib/automate/lib/prb-test/src/","prb/-est/=lib/automate/lib/prb-test/src/","safe-contracts/=lib/safe-contracts/contracts/","solady/=lib/solady/","solmate/=lib/solmate/src/"],"optimizer":{"enabled":true,"runs":999999},"metadata":{"bytecodeHash":"none"},"compilationTarget":{"scripts/interfaces/IAddressManager.sol":"IAddressManager"},"evmVersion":"cancun","libraries":{"src/tokamak-contracts/USDC/L2/tokamak-USDC/v2/FiatTokenV2_2.sol:SignatureChecker":"0x4200000000000000000000000000000000000776"}},"sources":{"scripts/interfaces/IAddressManager.sol":{"keccak256":"0x8535ed4854cada3ed9eca1a04a6fd2567862f7bd7dc4a8a1be36095ec437da53","urls":["bzz-raw://afd8602362aee418eac66093e59bab8da103122a3c08c8f79f44effdfe4fd6ce","dweb:/ipfs/QmUBeiKWmEpx2yK4237QMz12nrPhmbWe56xd6QFH9vfrPt"],"license":"MIT"}},"version":1},"storageLayout":{"storage":[],"types":{}},"userdoc":{"version":1,"kind":"user","methods":{"getAddress(string)":{"notice":"Retrieves the address associated with a given name."},"setAddress(string,address)":{"notice":"Changes the address associated with a particular name."}},"events":{"AddressSet(string,address,address)":{"notice":"Emitted when an address is modified in the registry."}},"notice":"Minimal interface of the Legacy AddressManager."},"devdoc":{"version":1,"kind":"dev","methods":{"getAddress(string)":{"params":{"_name":"Name to retrieve an address for."},"returns":{"_0":"Address associated with the given name."}},"setAddress(string,address)":{"params":{"_address":"Address to associate with the name.","_name":"String name to associate an address with."}}},"events":{"AddressSet(string,address,address)":{"params":{"name":"String name being set in the registry.","newAddress":"Address set for the given name.","oldAddress":"Address that was previously set for the given name."}}},"title":"IAddressManager"},"ast":{"absolutePath":"scripts/interfaces/IAddressManager.sol","id":52057,"exportedSymbols":{"IAddressManager":[52056]},"nodeType":"SourceUnit","src":"32:1024:38","nodes":[{"id":52029,"nodeType":"PragmaDirective","src":"32:24:38","nodes":[],"literals":["solidity","^","0.8",".15"]},{"id":52056,"nodeType":"ContractDefinition","src":"145:910:38","nodes":[{"id":52039,"nodeType":"EventDefinition","src":"447:78:38","nodes":[],"anonymous":false,"documentation":{"id":52031,"nodeType":"StructuredDocumentation","src":"177:265:38","text":"@notice Emitted when an address is modified in the registry.\n @param name String name being set in the registry.\n @param newAddress Address set for the given name.\n @param oldAddress Address that was previously set for the given name."},"eventSelector":"9416a153a346f93d95f94b064ae3f148b6460473c6e82b3f9fc2521b873fcd6c","name":"AddressSet","nameLocation":"453:10:38","parameters":{"id":52038,"nodeType":"ParameterList","parameters":[{"constant":false,"id":52033,"indexed":true,"mutability":"mutable","name":"name","nameLocation":"479:4:38","nodeType":"VariableDeclaration","scope":52039,"src":"464:19:38","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":52032,"name":"string","nodeType":"ElementaryTypeName","src":"464:6:38","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"},{"constant":false,"id":52035,"indexed":false,"mutability":"mutable","name":"newAddress","nameLocation":"493:10:38","nodeType":"VariableDeclaration","scope":52039,"src":"485:18:38","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":52034,"name":"address","nodeType":"ElementaryTypeName","src":"485:7:38","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":52037,"indexed":false,"mutability":"mutable","name":"oldAddress","nameLocation":"513:10:38","nodeType":"VariableDeclaration","scope":52039,"src":"505:18:38","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":52036,"name":"address","nodeType":"ElementaryTypeName","src":"505:7:38","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"463:61:38"}},{"id":52047,"nodeType":"FunctionDefinition","src":"728:68:38","nodes":[],"documentation":{"id":52040,"nodeType":"StructuredDocumentation","src":"531:192:38","text":"@notice Changes the address associated with a particular name.\n @param _name String name to associate an address with.\n @param _address Address to associate with the name."},"functionSelector":"9b2ea4bd","implemented":false,"kind":"function","modifiers":[],"name":"setAddress","nameLocation":"737:10:38","parameters":{"id":52045,"nodeType":"ParameterList","parameters":[{"constant":false,"id":52042,"mutability":"mutable","name":"_name","nameLocation":"762:5:38","nodeType":"VariableDeclaration","scope":52047,"src":"748:19:38","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":52041,"name":"string","nodeType":"ElementaryTypeName","src":"748:6:38","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"},{"constant":false,"id":52044,"mutability":"mutable","name":"_address","nameLocation":"777:8:38","nodeType":"VariableDeclaration","scope":52047,"src":"769:16:38","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":52043,"name":"address","nodeType":"ElementaryTypeName","src":"769:7:38","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"747:39:38"},"returnParameters":{"id":52046,"nodeType":"ParameterList","parameters":[],"src":"795:0:38"},"scope":52056,"stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"id":52055,"nodeType":"FunctionDefinition","src":"980:73:38","nodes":[],"documentation":{"id":52048,"nodeType":"StructuredDocumentation","src":"802:173:38","text":"@notice Retrieves the address associated with a given name.\n @param _name Name to retrieve an address for.\n @return Address associated with the given name."},"functionSelector":"bf40fac1","implemented":false,"kind":"function","modifiers":[],"name":"getAddress","nameLocation":"989:10:38","parameters":{"id":52051,"nodeType":"ParameterList","parameters":[{"constant":false,"id":52050,"mutability":"mutable","name":"_name","nameLocation":"1014:5:38","nodeType":"VariableDeclaration","scope":52055,"src":"1000:19:38","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":52049,"name":"string","nodeType":"ElementaryTypeName","src":"1000:6:38","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"999:21:38"},"returnParameters":{"id":52054,"nodeType":"ParameterList","parameters":[{"constant":false,"id":52053,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":52055,"src":"1044:7:38","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":52052,"name":"address","nodeType":"ElementaryTypeName","src":"1044:7:38","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1043:9:38"},"scope":52056,"stateMutability":"view","virtual":false,"visibility":"external"}],"abstract":false,"baseContracts":[],"canonicalName":"IAddressManager","contractDependencies":[],"contractKind":"interface","documentation":{"id":52030,"nodeType":"StructuredDocumentation","src":"58:87:38","text":"@title IAddressManager\n @notice Minimal interface of the Legacy AddressManager."},"fullyImplemented":false,"linearizedBaseContracts":[52056],"name":"IAddressManager","nameLocation":"155:15:38","scope":52057,"usedErrors":[],"usedEvents":[52039]}],"license":"MIT"},"id":38}