Skip to content

Commit

Permalink
feat: add mainnet release candidate deployment addresses (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thegaram authored May 24, 2024
1 parent 5102179 commit 8dcf2b1
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
17 changes: 16 additions & 1 deletion docs/deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,22 @@

## Scroll Mainnet

TBA
> Waning: The addresses below are for release testing Canvas on mainnet. The final live addresses will be different.
```bash
# EAS constants -- these will not change on a network
SCROLL_MAINNET_EAS_ADDRESS="0xC47300428b6AD2c7D03BB76D05A176058b47E6B0"
SCROLL_MAINNET_EAS_SCHEMA_REGISTRY_ADDRESS="0xD2CDF46556543316e7D34e8eDc4624e2bB95e3B6"

# Scroll Canvas constants -- these will not change on a network (after the final deployment)
SCROLL_MAINNET_BADGE_RESOLVER_ADDRESS="0x8b3ad69605E4D10637Bbb8Ae2bdc940Ae001D980"
SCROLL_MAINNET_BADGE_SCHEMA="0xba4934720e4c7fc2978acd7c8b4e9cb72288e72f835bd19b2eb4cac99d79d220"
SCROLL_MAINNET_PROFILE_REGISTRY_ADDRESS="0x19bA366e708006dF04B1aA42057b0aCb55F6960E"

# APIs
SCROLL_MAINNET_RPC_URL="https://rpc.scroll.io"
SCROLL_MAINNET_EAS_GRAPHQL_URL="https://scroll.easscan.org/graphql"
```


## Scroll Sepolia
Expand Down
7 changes: 5 additions & 2 deletions docs/ethereum-year-badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
In the examples on this page, we use the configurations from [deployments.md](./deployments.md), as well as the following values:

```bash
ETHEREUM_YEAR_BADGE_ADDRESS=0xB59B6466B21a089c93B14030AF88b164905a58fd
ETHEREUM_YEAR_ATTESTER_PROXY_ADDRESS=0xdAe8D9a30681899C305534849e138579aF0BF88e
SCROLL_MAINNET_ETHEREUM_YEAR_BADGE_ADDRESS=0x24Eb2CC4657986efbB2cCE41943C59d6708c8f54
SCROLL_MAINNET_ETHEREUM_YEAR_ATTESTER_PROXY_ADDRESS=0xc1d9C7Cdb33107f1fEa871F2e874b9a95EE3f260

SCROLL_SEPOLIA_ETHEREUM_YEAR_BADGE_ADDRESS=0xB59B6466B21a089c93B14030AF88b164905a58fd
SCROLL_SEPOLIA_ETHEREUM_YEAR_ATTESTER_PROXY_ADDRESS=0xdAe8D9a30681899C305534849e138579aF0BF88e
```

This badge uses backend-authorized delegated attestations. For details, refer to [badges.md](./badges.md). For an example of producing delegated attestations, refer to [attest-server.js](../examples/src/attest-server.js).
Expand Down
4 changes: 4 additions & 0 deletions docs/integration-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ In the examples on this page, we use the configurations from [deployments.md](./

```bash
# Canvas badges -- each badge type is a new contract, here we only have three simple test contracts
SCROLL_MAINNET_SIMPLE_BADGE_A_ADDRESS="0xB1Dbd079c62d181926E5A54932Bb1b15F760e8A0"
SCROLL_MAINNET_SIMPLE_BADGE_B_ADDRESS="0xe626E631BdDcd985D02D2eEe4fbdF901b52AE33C"
SCROLL_MAINNET_SIMPLE_BADGE_C_ADDRESS="0xe485f8fcBf3b678e83d208fa3f1933a315d58356"

SCROLL_SEPOLIA_SIMPLE_BADGE_A_ADDRESS="0x30C98067517f8ee38e748A3aF63429974103Ea6B"
SCROLL_SEPOLIA_SIMPLE_BADGE_B_ADDRESS="0xeBFc9B95328B2Cdb3c4CA8913e329c101d2Abbc2"
SCROLL_SEPOLIA_SIMPLE_BADGE_C_ADDRESS="0x64492EF5a60245fbaF65F69782FCf158F3a8e3Aa"
Expand Down
5 changes: 5 additions & 0 deletions docs/scroll-origins-badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ In the examples on this page, we use the configurations from [deployments.md](./

```bash
# Scroll Origins NFT addresses
SCROLL_MAINNET_ORIGINS_V1_ADDRESS="0x74670A3998d9d6622E32D0847fF5977c37E0eC91"
SCROLL_MAINNET_ORIGINS_V2_ADDRESS="0x42bCaCb8D24Ba588cab8Db0BB737DD2eFca408EC"

SCROLL_SEPOLIA_ORIGINS_V1_ADDRESS="TBD"
SCROLL_SEPOLIA_ORIGINS_V2_ADDRESS="0xDd7d857F570B0C211abfe05cd914A85BefEC2464"

# Badge address
SCROLL_MAINNET_ORIGINS_BADGE_ADDRESS="0x1B2E568bE7E11c4e94f2c9dC68bE58A80FeeD80A"

SCROLL_SEPOLIA_ORIGINS_BADGE_ADDRESS="0x2A3aC1337845f8C02d2dD7f80Dada22f01b569f9"
```

Expand Down
14 changes: 12 additions & 2 deletions script/DeployCanvasTestBadgeContracts.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ contract DeployCanvasTestBadgeContracts is Script {

address EAS_ADDRESS = vm.envAddress("EAS_ADDRESS");

bool IS_MAINNET = vm.envBool("IS_MAINNET");

function run() external {
vm.startBroadcast(DEPLOYER_PRIVATE_KEY);

Expand All @@ -71,8 +73,16 @@ contract DeployCanvasTestBadgeContracts is Script {
);

// deploy origins NFT badge
address[] memory tokens = new address[](1);
tokens[0] = 0xDd7d857F570B0C211abfe05cd914A85BefEC2464;
address[] memory tokens;

if (IS_MAINNET) {
tokens = new address[](2);
tokens[0] = 0x74670A3998d9d6622E32D0847fF5977c37E0eC91;
tokens[1] = 0x42bCaCb8D24Ba588cab8Db0BB737DD2eFca408EC;
} else {
tokens = new address[](1);
tokens[0] = 0xDd7d857F570B0C211abfe05cd914A85BefEC2464;
}

ScrollBadgeTokenOwner badge4 = new ScrollBadgeTokenOwner(address(resolver), tokens);

Expand Down

0 comments on commit 8dcf2b1

Please sign in to comment.