Skip to content

Commit

Permalink
chore(devnet): adjust address book
Browse files Browse the repository at this point in the history
With deterministic deployment in place, the address book must be updated to
the actual addresses generated by cmd/gen-devnet. This change is
two-part:
- it restores the original rollups-contracts addresses (see 946767b), which
are now being deployed deterministically
- is sets new addresses for the Authority/History pair and the Cartesi
Application itself, which, as opposed to what happens to sunodo/devnet,
are being deployed using the deterministically deployed factories (item above)
  • Loading branch information
marcelstanley committed Feb 16, 2024
1 parent 9a5c2a1 commit 9772167
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions build/compose-devnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ services:
CARTESI_BLOCKCHAIN_WS_ENDPOINT: "ws://devnet:8545"
CARTESI_BLOCKCHAIN_IS_LEGACY: "false"
CARTESI_BLOCKCHAIN_FINALITY_OFFSET: "1"
CARTESI_CONTRACTS_APPLICATION_ADDRESS: "0x180763470853cAF642Df79a908F9282c61692A45"
CARTESI_CONTRACTS_APPLICATION_DEPLOYMENT_BLOCK_NUMBER: "17"
CARTESI_CONTRACTS_HISTORY_ADDRESS: "0xbCc4067dfdeE8274E531951f0968EC895f397A44"
CARTESI_CONTRACTS_AUTHORITY_ADDRESS: "0xb090149a3cA43000681B74875500854B54355496"
CARTESI_CONTRACTS_INPUT_BOX_ADDRESS: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9"
CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER: "17"
CARTESI_CONTRACTS_APPLICATION_ADDRESS: "0x7FFdf694A877067DE99462A7243b29972D19cf72"
CARTESI_CONTRACTS_APPLICATION_DEPLOYMENT_BLOCK_NUMBER: "19"
CARTESI_CONTRACTS_HISTORY_ADDRESS: "0x325272217ae6815b494bF38cED004c5Eb8a7CdA7"
CARTESI_CONTRACTS_AUTHORITY_ADDRESS: "0x58c93F83fb3304730C95aad2E360cdb88b782010"
CARTESI_CONTRACTS_INPUT_BOX_ADDRESS: "0x59b22D57D4f067708AB0c00552767405926dc768"
CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER: "19"
CARTESI_EPOCH_DURATION: "120"
CARTESI_AUTH_MNEMONIC: "test test test test test test test test test test test junk"
18 changes: 9 additions & 9 deletions pkg/addresses/addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ func GetTestBook() *Book {
return &Book{
AuthorityHistoryPairFactory: common.
HexToAddress("0x3890A047Cf9Af60731E80B2105362BbDCD70142D"),
CartesiDAppFactory: common.HexToAddress("0x610178dA211FEF7D417bC0e6FeD39F05609AD788"),
DAppAddressRelay: common.HexToAddress("0x8A791620dd6260079BF849Dc5567aDC3F2FdC318"),
ERC1155BatchPortal: common.HexToAddress("0x0165878A594ca255338adfa4d48449f69242Eb8F"),
ERC1155SinglePortal: common.HexToAddress("0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6"),
ERC20Portal: common.HexToAddress("0xa513E6E4b8f2a923D98304ec87F64353C4D5C853"),
ERC721Portal: common.HexToAddress("0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"),
EtherPortal: common.HexToAddress("0x5FC8d32690cc91D4c39d9d3abcBD16989F875707"),
InputBox: common.HexToAddress("0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9"),
CartesiDApp: common.HexToAddress("0x180763470853cAF642Df79a908F9282c61692A45"),
CartesiDAppFactory: common.HexToAddress("0x7122cd1221C20892234186facfE8615e6743Ab02"),
DAppAddressRelay: common.HexToAddress("0xF5DE34d6BbC0446E2a45719E718efEbaaE179daE"),
ERC1155BatchPortal: common.HexToAddress("0xedB53860A6B52bbb7561Ad596416ee9965B055Aa"),
ERC1155SinglePortal: common.HexToAddress("0x7CFB0193Ca87eB6e48056885E026552c3A941FC4"),
ERC20Portal: common.HexToAddress("0x9C21AEb2093C32DDbC53eEF24B873BDCd1aDa1DB"),
ERC721Portal: common.HexToAddress("0x237F8DD094C0e47f4236f12b4Fa01d6Dae89fb87"),
EtherPortal: common.HexToAddress("0xFfdbe43d4c855BF7e0f105c400A50857f53AB044"),
InputBox: common.HexToAddress("0x59b22D57D4f067708AB0c00552767405926dc768"),
CartesiDApp: common.HexToAddress("0x7FFdf694A877067DE99462A7243b29972D19cf72"),
}
}

Expand Down

0 comments on commit 9772167

Please sign in to comment.