Skip to content

Instantly share code, notes, and snippets.

View metaproph3t's full-sized avatar

Proph3t metaproph3t

View GitHub Profile
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 {
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),
{
"version": "0.1.0",
"name": "autocrat_v0",
"instructions": [
{
"name": "initializeDao",
"accounts": [
{
"name": "dao",
"isMut": true,