Skip to content

Commit

Permalink
add chiado contract addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
malteish committed Mar 13, 2024
1 parent c176c3f commit 9554c38
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 89 deletions.
17 changes: 14 additions & 3 deletions docs/deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ The contracts are deployed to these testing networks:
- Sepolia
- [Chiado](https://docs.gnosischain.com/concepts/networks/chiado)

| Contract | Sepolia | Chiado |
| --------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
| Forwarder | | [0x2659B6c5121049626363dBc1d22f267e79a0BFDE](https://gnosis-chiado.blockscout.com/address/0x2659B6c5121049626363dBc1d22f267e79a0BFDE) | we deployed those |
| Contract | Sepolia | Chiado | | |
| -------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- | --- |
| Forwarder | | [0x2659B6c5121049626363dBc1d22f267e79a0BFDE](https://gnosis-chiado.blockscout.com/address/0x2659B6c5121049626363dBc1d22f267e79a0BFDE) | |
| FeeSettingsCloneFactory | | [0xf2c479836b1f23eBE127CFB3B6dabf535d60B6DD](https://blockscout.chiadochain.net/address/0xf2c479836b1f23ebe127cfb3b6dabf535d60b6dd) | |
| AllowListCloneFactory | | [0xCCC45E788bcf916b3b7cA79c2e1A1fC694aD03F7](https://blockscout.chiadochain.net/address/0xccc45e788bcf916b3b7ca79c2e1a1fc694ad03f7) | |
| TokenProxyFactory | | [0x470586e0a7c2E641c39930B96E58E4300Be32cF3](https://blockscout.chiadochain.net/address/0x470586e0a7c2e641c39930b96e58e4300be32cf3) | |
| VestingCloneFactory | | [0x2CC672eac7326DC0c3E19d1B313548346Eb10FD8](https://blockscout.chiadochain.net/address/0x2cc672eac7326dc0c3e19d1b313548346eb10fd8) | |
| PrivateOfferFactory | | [0x994257AcCF99E5995F011AB2A3025063e5367629](https://blockscout.chiadochain.net/address/0x994257accf99e5995f011ab2a3025063e5367629) | |
| FeeSettings | | [0x19172bc7B9c8b915F47A3361c3C90c6E0A7E4473](https://blockscout.chiadochain.net/address/0x19172bc7b9c8b915f47a3361c3c90c6e0a7e4473) | |
| AllowList | | [0x774AE1a25964A0DbA498Ff7b7B59B2877B0F5be6](https://blockscout.chiadochain.net/address/0x774ae1a25964a0dba498ff7b7b59b2877b0f5be6) |
| CrowdinvestingCloneFactory | | [0x53B5E6Acd59021E61495AbD30796b09A25c880eD](https://blockscout.chiadochain.net/address/0x53b5e6acd59021e61495abd30796b09a25c880ed) | |
| tokenize.it_USDC | | [0xC3Ea9c8BF307c7022670C88dF0357E28DA975267](https://blockscout.chiadochain.net/address/0xc3ea9c8bf307c7022670c88df0357e28da975267) | |
| tokenize.it_EUROC | | [0x730653cEB98334937431e27be111369a90B9aCc7](https://blockscout.chiadochain.net/address/0x730653ceb98334937431e27be111369a90b9acc7) | |
| monerium | | [0xb106ed7587365a16b6691a3D4B2A734f4E8268a2](https://gnosis-chiado.blockscout.com/address/0xb106ed7587365a16b6691a3D4B2A734f4E8268a2) | these were deployed by the monerium team |
172 changes: 86 additions & 86 deletions script/DeployPlatform.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,92 +69,92 @@ contract DeployPlatform is Script {
console.log("Deployer address: ", deployerAddress);
vm.startBroadcast(deployerPrivateKey);

// console.log("Deploying FeeSettingsCloneFactory contract...");
// FeeSettings feeSettingsLogicContract = new FeeSettings(trustedForwarder);
// FeeSettingsCloneFactory feeSettingsCloneFactory = new FeeSettingsCloneFactory(
// address(feeSettingsLogicContract)
// );
// console.log("FeeSettingsCloneFactory deployed at: ", address(feeSettingsCloneFactory));

// console.log("Deploying FeeSettings contract...");
// Fees memory fees = Fees(200, 600, 200, 0);
// FeeSettings feeSettings = FeeSettings(
// feeSettingsCloneFactory.createFeeSettingsClone(
// bytes32(0),
// trustedForwarder,
// platformColdWallet,
// fees,
// platformColdWallet,
// platformColdWallet,
// platformColdWallet
// )
// );
// console.log("FeeSettings deployed at: ", address(feeSettings));

// console.log("Deploying AllowListCloneFactory contract...");
// AllowList allowListLogicContract = new AllowList(trustedForwarder);
// AllowListCloneFactory allowListCloneFactory = new AllowListCloneFactory(address(allowListLogicContract));
// console.log("AllowListCloneFactory deployed at: ", address(allowListCloneFactory));

// console.log("Deploying AllowList contract...");

// uint256[] memory attributes = new uint256[](trustedCurrencies.length);
// for (uint256 i = 0; i < trustedCurrencies.length; i++) {
// attributes[i] = TRUSTED_CURRENCY;
// }
// AllowList allowList = AllowList(
// allowListCloneFactory.createAllowListClone(
// bytes32(0),
// trustedForwarder,
// platformColdWallet,
// trustedCurrencies,
// attributes
// )
// );
// console.log("Allowlist deployed at: ", address(allowList));

// console.log("Deploying VestingCloneFactory contract...");
// Vesting vestingImplementation = Vesting(0xa740Dd991655b2887321C71D8Ac0c171a0C9E969);
// VestingCloneFactory vestingCloneFactory = new VestingCloneFactory(address(vestingImplementation));
// console.log("VestingCloneFactory deployed at: ", address(vestingCloneFactory));

// console.log("Deploying PrivateOfferFactory contract...");
// PrivateOfferFactory privateOfferFactory = new PrivateOfferFactory(vestingCloneFactory);
// console.log("PrivateOfferFactory deployed at: ", address(privateOfferFactory));

// console.log("Deploying TokenProxyFactory contract...");
// Token tokenImplementation = new Token(trustedForwarder);
// TokenProxyFactory tokenProxyFactory = new TokenProxyFactory(address(tokenImplementation));
// console.log("TokenProxyFactory deployed at: ", address(tokenProxyFactory));

// console.log("Deploying Tokens to use as currrency on testnet...");
// Token tUSDC = Token(
// tokenProxyFactory.createTokenProxy(
// bytes32(0),
// trustedForwarder,
// feeSettings,
// platformColdWallet,
// allowList,
// 0,
// "tokenize.it_USDC",
// "tUSDC"
// )
// );
// console.log("tUSDC deployed at: ", address(tUSDC));
// Token tEUROC = Token(
// tokenProxyFactory.createTokenProxy(
// bytes32(0),
// trustedForwarder,
// feeSettings,
// platformColdWallet,
// allowList,
// 0,
// "tokenize.it_EUROC",
// "tEUROC"
// )
// );
// console.log("tEUROC deployed at: ", address(tEUROC));
// console.log("Remember to add the tokens to the AllowList with attribute TRUSTED_CURRENCY: ", TRUSTED_CURRENCY);
console.log("Deploying FeeSettingsCloneFactory contract...");
FeeSettings feeSettingsLogicContract = new FeeSettings(trustedForwarder);
FeeSettingsCloneFactory feeSettingsCloneFactory = new FeeSettingsCloneFactory(
address(feeSettingsLogicContract)
);
console.log("FeeSettingsCloneFactory deployed at: ", address(feeSettingsCloneFactory));

console.log("Deploying FeeSettings contract...");
Fees memory fees = Fees(200, 600, 200, 0);
FeeSettings feeSettings = FeeSettings(
feeSettingsCloneFactory.createFeeSettingsClone(
bytes32(0),
trustedForwarder,
platformColdWallet,
fees,
platformColdWallet,
platformColdWallet,
platformColdWallet
)
);
console.log("FeeSettings deployed at: ", address(feeSettings));

console.log("Deploying AllowListCloneFactory contract...");
AllowList allowListLogicContract = new AllowList(trustedForwarder);
AllowListCloneFactory allowListCloneFactory = new AllowListCloneFactory(address(allowListLogicContract));
console.log("AllowListCloneFactory deployed at: ", address(allowListCloneFactory));

console.log("Deploying AllowList contract...");

uint256[] memory attributes = new uint256[](trustedCurrencies.length);
for (uint256 i = 0; i < trustedCurrencies.length; i++) {
attributes[i] = TRUSTED_CURRENCY;
}
AllowList allowList = AllowList(
allowListCloneFactory.createAllowListClone(
bytes32(0),
trustedForwarder,
platformColdWallet,
trustedCurrencies,
attributes
)
);
console.log("Allowlist deployed at: ", address(allowList));

console.log("Deploying VestingCloneFactory contract...");
Vesting vestingImplementation = Vesting(0xa740Dd991655b2887321C71D8Ac0c171a0C9E969);
VestingCloneFactory vestingCloneFactory = new VestingCloneFactory(address(vestingImplementation));
console.log("VestingCloneFactory deployed at: ", address(vestingCloneFactory));

console.log("Deploying PrivateOfferFactory contract...");
PrivateOfferFactory privateOfferFactory = new PrivateOfferFactory(vestingCloneFactory);
console.log("PrivateOfferFactory deployed at: ", address(privateOfferFactory));

console.log("Deploying TokenProxyFactory contract...");
Token tokenImplementation = new Token(trustedForwarder);
TokenProxyFactory tokenProxyFactory = new TokenProxyFactory(address(tokenImplementation));
console.log("TokenProxyFactory deployed at: ", address(tokenProxyFactory));

console.log("Deploying Tokens to use as currrency on testnet...");
Token tUSDC = Token(
tokenProxyFactory.createTokenProxy(
bytes32(0),
trustedForwarder,
feeSettings,
platformColdWallet,
allowList,
0,
"tokenize.it_USDC",
"tUSDC"
)
);
console.log("tUSDC deployed at: ", address(tUSDC));
Token tEUROC = Token(
tokenProxyFactory.createTokenProxy(
bytes32(0),
trustedForwarder,
feeSettings,
platformColdWallet,
allowList,
0,
"tokenize.it_EUROC",
"tEUROC"
)
);
console.log("tEUROC deployed at: ", address(tEUROC));
console.log("Remember to add the tokens to the AllowList with attribute TRUSTED_CURRENCY: ", TRUSTED_CURRENCY);

// deploy crowdinvesting factory
console.log("Deploying CrowdinvestingFactory contract...");
Expand Down

0 comments on commit 9554c38

Please sign in to comment.