Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add deployment script #96

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions constants/constructor-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,12 @@ export const BUIDLArgs = {

export const LootDropArgs = {
MAINNET: {
_uri: 'FILL_ME',
_devWallet: 'DEPLOYER_WALLET',
_rewardTokenAddress: `CONTRACT_${CONTRACT_NAME.RewardToken}`,
},
TESTNET: {
_uri: 'FILL_ME',
_devWallet: 'DEPLOYER_WALLET',
_rewardTokenAddress: `CONTRACT_${CONTRACT_NAME.RewardToken}`,
},
};

Expand All @@ -403,9 +405,19 @@ export const HelloWorldArgs = {

export const RewardTokenArgs = {
MAINNET: {
_uri: 'FILL_ME',
_name: 'RewardToken',
_symbol: 'RT',
_defaultTokenURI: 'FILL_ME',
_contractURI: 'FILL_ME',
_devWallet: 'DEPLOYER_WALLET',
_lootDropAddress: `CONTRACT_${CONTRACT_NAME.LootDrop}`,
},
TESTNET: {
_uri: 'FILL_ME',
_name: 'RainToken',
_symbol: 'RT',
_defaultTokenURI: 'FILL_ME',
_contractURI: 'FILL_ME',
_devWallet: 'DEPLOYER_WALLET',
_lootDropAddress: `CONTRACT_${CONTRACT_NAME.LootDrop}`,
},
};
6 changes: 2 additions & 4 deletions constants/nonce-deployments/deployments-arbitrum-sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ export const ARBITRUM_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.RewardToken],
functionCalls: [],
args: LootDropArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.AdminERC1155Soulbound,
Expand All @@ -32,10 +31,9 @@ export const ARBITRUM_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.LootDrop],
functionCalls: [],
args: RewardTokenArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.HelloWorld,
Expand Down
6 changes: 2 additions & 4 deletions constants/nonce-deployments/deployments-base-sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ export const BASE_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.RewardToken],
functionCalls: [],
args: LootDropArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.AdminERC1155Soulbound,
Expand All @@ -32,10 +31,9 @@ export const BASE_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.LootDrop],
functionCalls: [],
args: RewardTokenArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.HelloWorld,
Expand Down
6 changes: 2 additions & 4 deletions constants/nonce-deployments/deployments-mantle-sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ export const MANTLE_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.RewardToken],
functionCalls: [],
args: LootDropArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.AdminERC1155Soulbound,
Expand All @@ -32,10 +31,9 @@ export const MANTLE_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.LootDrop],
functionCalls: [],
args: RewardTokenArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.HelloWorld,
Expand Down
6 changes: 2 additions & 4 deletions constants/nonce-deployments/deployments-op-sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ export const OP_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.RewardToken],
functionCalls: [],
args: LootDropArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.AdminERC1155Soulbound,
Expand All @@ -32,10 +31,9 @@ export const OP_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.LootDrop],
functionCalls: [],
args: RewardTokenArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.HelloWorld,
Expand Down
6 changes: 2 additions & 4 deletions constants/nonce-deployments/deployments-polygon-mumbai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ export const POLYGON_MUMBAI_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.RewardToken],
functionCalls: [],
args: LootDropArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.AdminERC1155Soulbound,
Expand All @@ -32,10 +31,9 @@ export const POLYGON_MUMBAI_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.LootDrop],
functionCalls: [],
args: RewardTokenArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.HelloWorld,
Expand Down
6 changes: 2 additions & 4 deletions constants/nonce-deployments/deployments-sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ export const SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.RewardToken],
functionCalls: [],
args: LootDropArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.AdminERC1155Soulbound,
Expand All @@ -32,10 +31,9 @@ export const SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.LootDrop],
functionCalls: [],
args: RewardTokenArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.HelloWorld,
Expand Down
6 changes: 2 additions & 4 deletions constants/nonce-deployments/deployments-zksync-sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ export const ZKSYNC_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.RewardToken],
functionCalls: [],
args: LootDropArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.AdminERC1155Soulbound,
Expand All @@ -32,10 +31,9 @@ export const ZKSYNC_SEPOLIA_CONTRACTS: DeploymentContract[] = [
tenants: [TENANT.Game7],
verify: true,
upgradable: false,
dependencies: [],
dependencies: [CONTRACT_NAME.LootDrop],
functionCalls: [],
args: RewardTokenArgs.TESTNET,
skipCallInitializeFn: true,
},
{
contractFileName: CONTRACT_FILE_NAME.HelloWorld,
Expand Down
Loading
Loading