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
{"kind":"rootNode","standard":"codama","version":"1.2.0","program":{"kind":"programNode","name":"lighthouse","publicKey":"L2TExMFKdjpN9kozasaurPirfHy9P8sbXoAN1qA3S95","version":"2.0.0","origin":"shank","docs":[],"accounts":[],"instructions":[{"kind":"instructionNode","name":"memoryWrite","docs":[],"optionalAccountStrategy":"programId","accounts":[{"kind":"instructionAccountNode","name":"programId","isWritable":false,"isSigner":false,"isOptional":false,"docs":["Lighthouse program"],"defaultValue":{"kind":"programIdValueNode"}},{"kind":"instructionAccountNode","name":"systemProgram","isWritable":false,"isSigner":false,"isOptional":false,"docs":["System program"],"defaultValue":{"kind":"publicKeyValueNode","publicKey":"11111111111111111111111111111111","identifier":"splSystem"}},{"kind":"instructionAccountNode","name":"payer","isWritable":true,"isSigner":true,"isOptional":false,"docs":["Payer account"],"defaultValue":{"kind":"payerValueNode"}},{"kind":"instructionAccountNode","name":"memory","isWritable":true,"i |
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 { | |
address, | |
createSolanaRpc, | |
getBase58Decoder, | |
getBase58Encoder, | |
signature, | |
} from "@solana/web3.js"; | |
import { parseInstructionData } from "@codama/dynamic-parsers"; | |
import { readFileSync } from "fs"; |
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 { AnchorProvider, Wallet } from "@project-serum/anchor"; | |
import { | |
Connection, | |
Keypair, | |
MessageV0, | |
PublicKey, | |
TransactionInstruction, | |
VersionedMessage, | |
VersionedTransaction, | |
AccountMeta, |
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": "governance", | |
"instructions": [ | |
{ | |
"name": "createRealm", | |
"accounts": [ | |
{ | |
"name": "governanceRealmAccount", | |
"isMut": true, |
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 { Metaplex, keypairIdentity, bundlrStorage } from '@metaplex-foundation/js'; | |
import { Connection, Keypair, clusterApiUrl } from '@solana/web3.js'; | |
import { readFileSync } from 'fs'; | |
async function sleep(delay: number) { | |
return new Promise((resolve) => { | |
setTimeout(() => resolve(null), delay); | |
}); | |
} |
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
{ | |
"tasks": [ | |
{ | |
"httpTask": { | |
"url": "https://api.github.com/repos/<org>/<repo>/pulls", | |
"method": "GET", | |
"headers": [ | |
{ | |
"key": "User-Agent", | |
"value": "curl/7.78.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
import matplotlib.pyplot as plt | |
from matplotlib.animation import FuncAnimation | |
import numpy as np | |
x = np.linspace(0, 2*np.pi, num=10000) | |
def f(x): | |
return np.exp(3*1j*x) + 0.5*np.exp(20j*x) + 1j/7*np.exp(-48j*x) + 0.3j*np.exp(37j*x) | |
y = f(x) | |
plt.plot(y.real, y.imag) | |
fig, ax = plt.subplots(1,1) |