Skip to content

Commit 42813b4

Browse files
authored
Update the script for creating metric markets (#268)
* Add metadata and robustify the script * Abstract away `sendAndConfirmTransaction`
1 parent 091a2ab commit 42813b4

5 files changed

Lines changed: 551 additions & 187 deletions

File tree

Anchor.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ wallet = "~/.config/solana/id.json"
2222
[scripts]
2323
test = "npx mocha --import=tsx tests/main.test.ts"
2424
add-v03-metadata = "yarn run tsx scripts/addV03Metadata.ts"
25-
setup-devnet = "yarn run tsx scripts/setupDevnet.ts"
2625
initialize-launch = "yarn run tsx scripts/initializeLaunch.ts"
2726
create-proposal = "yarn run tsx scripts/createProposal.ts"
2827
create-v04-dao = "yarn run tsx scripts/createV04DAO.ts"

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
"license": "BSL-1.0",
44
"scripts": {
55
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
6-
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
6+
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check",
7+
"setup-metric-market": "tsx --tsconfig tsconfig.json scripts/setupMetricMarket.ts"
78
},
89
"dependencies": {
910
"@coral-xyz/anchor": "0.29.0",
11+
"@inquirer/prompts": "^7.3.3",
1012
"@metadaoproject/futarchy": "0.4.0-alpha.53",
1113
"@metaplex-foundation/mpl-token-metadata": "^3.2.0",
1214
"@metaplex-foundation/umi": "^0.9.1",
@@ -28,12 +30,14 @@
2830
"@solana/spl-token-registry": "^0.2.4574",
2931
"@types/bn.js": "^5.1.0",
3032
"@types/chai": "^4.3.0",
33+
"@types/inquirer": "^9.0.7",
3134
"@types/mocha": "^10.0.7",
3235
"@types/node": "^20.8.6",
3336
"chai": "^4.3.4",
3437
"mocha": "^9.0.3",
3538
"prettier": "^2.6.2",
3639
"ts-mocha": "^10.0.0",
40+
"ts-node": "^10.9.2",
3741
"tsx": "^4.7.1",
3842
"typescript": "^4.3.5"
3943
},

scripts/setupDevnet.ts

Lines changed: 0 additions & 182 deletions
This file was deleted.

0 commit comments

Comments
 (0)