This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { WalletContextState } from "@solana/wallet-adapter-react"; | |
import { | |
Transaction, | |
Connection, | |
SignatureStatus, | |
ComputeBudgetProgram, | |
} from "@solana/web3.js"; | |
// Taken from: | |
// https://github.com/rpcpool/solana-prioritization-fees-api/ | |
import { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let market = await openbook.createMarket( | |
provider.wallet.payer, | |
"MARKET1", | |
quoteMint, | |
baseMint, | |
new BN(10), | |
new BN(10), | |
new BN(0), | |
new BN(0), | |
new BN(0), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"name": "autocrat_v0", | |
"instructions": [ | |
{ | |
"name": "initializeDao", | |
"accounts": [ | |
{ | |
"name": "dao", | |
"isMut": true, |