Skip to content

Commit

Permalink
Merge pull request #923 from tablelandnetwork/sander/deploy-missions
Browse files Browse the repository at this point in the history
Deploy missions
  • Loading branch information
sanderpick authored Sep 20, 2023
2 parents 9a61b91 + 2c78e43 commit e401214
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 24 deletions.
14 changes: 7 additions & 7 deletions animation_url/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion animation_url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@playwright/test": "^1.27.1",
"@sveltejs/adapter-auto": "^1.0.0-next.87",
"@sveltejs/kit": "1.0.0-next.532",
"@tableland/rigs": "^0.3.2",
"@tableland/rigs": "^0.3.3",
"@tableland/sdk": "^4.3.2",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.59.1",
Expand Down
6 changes: 3 additions & 3 deletions ethereum/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const deployments: RigsDeployments = {
royaltyContractAddress: "0x9BE9627e25c9f348C1edB6E46dBCa2a6669e2D56",
pilotsAddress: "0xFe688e894AAA2A8F4740d09DA8c434Eb0B1AFb5D",
votingContractAddress: "0xE9Fb4f78f23457F69f516c6806E5C9e8756C8c57",
missionContractAddress: "", // TODO fill in
missionContractAddress: "0x486dDBd9D085a4a8252A156AB96ec5763b3dF9B4",
tablelandChain: "arbitrum",
tablelandHost: "https://tableland.network",
contractTable: "rigs_contract_42161_12",
Expand All @@ -69,8 +69,8 @@ export const deployments: RigsDeployments = {
ftSnapshotTable: "ft_snapshot_42161_20",
votesTable: "votes_42161_21",
optionsTable: "options_42161_22",
missionsTable: "", // TODO fill in
missionContributionsTable: "", // TODO fill in
missionsTable: "missions_42161_23",
missionContributionsTable: "mission_contributions_42161_24",
displayAttributes: true,
},
// testnets
Expand Down
4 changes: 2 additions & 2 deletions ethereum/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ethereum/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tableland/rigs",
"version": "0.3.3-pre0",
"version": "0.3.3",
"description": "Tableland Rigs contract",
"engines": {
"node": ">=14.0.0"
Expand Down
9 changes: 4 additions & 5 deletions ethereum/scripts/deployMissionBoard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ethers, network, rigsConfig, rigsDeployment, mainnet } from "hardhat";
import { ethers, network, rigsConfig, mainnet } from "hardhat";
import { Wallet, providers, Signer, BigNumber } from "ethers";
import type { MissionsManager } from "../typechain-types";
import { Database } from "@tableland/sdk";
Expand Down Expand Up @@ -28,10 +28,9 @@ async function main() {
throw Error("missing signer/Tableland private key");
}

if (tablesConfig.tablelandAlchemyKey) {
const provider = new providers.AlchemyProvider(
rigsDeployment.tablelandChain,
tablesConfig.tablelandAlchemyKey
if (tablesConfig.tablelandProviderUrl) {
const provider = new providers.JsonRpcProvider(
tablesConfig.tablelandProviderUrl
);
signer = signer.connect(provider);
}
Expand Down
3 changes: 3 additions & 0 deletions ethereum/scripts/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ async function main() {
if (rigsDeployment.votingContractAddress === "") {
throw Error(`no votingContractAddress entry for '${network.name}'`);
}
if (rigsDeployment.missionContractAddress === "") {
throw Error(`no missionContractAddress entry for '${network.name}'`);
}

// Verify rigs
const rigs = (await ethers.getContractFactory("TablelandRigs")).attach(
Expand Down
8 changes: 4 additions & 4 deletions garage/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion garage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@rainbow-me/rainbowkit": "^1.0.3",
"@tableland/rigs": "^0.3.3-pre0",
"@tableland/rigs": "^0.3.3",
"@tableland/sdk": "^4.4.2",
"alchemy-sdk": "^2.8.3",
"chakra-react-select": "^4.4.2",
Expand Down

0 comments on commit e401214

Please sign in to comment.