Skip to content

Instantly share code, notes, and snippets.

@michaelhly
michaelhly / prog.rs
Created May 9, 2021 20:33
Anchor Multi-State
// #region code
use anchor_lang::prelude::*;
#[program]
pub mod prog {
use super::*;
#[state]
pub struct State1 {
/// ...
diff --git a/spl/token/_layouts.py b/spl/token/_layouts.py
index a061303..e5dff09 100644
--- a/spl/token/_layouts.py
+++ b/spl/token/_layouts.py
@@ -27,7 +27,6 @@ class InstructionType(IntEnum):
APPROVE2 = 13
MINT_TO2 = 14
BURN2 = 15
- CREATE_ASSOCIATED_TOKEN_ACCOUNT = 16
@michaelhly
michaelhly / gist:cc00d4329974582abcbbbb19dbed66a0
Last active May 16, 2020 16:06
bazel run validator accounts status
This file has been truncated, but you can view the full file.
> bazel run validator accounts status -- --keymanager=unencrypted --keymanageropts="/some_path/prysm/key_path.json"
Loading: 0 packages loaded
INFO: Analyzed target //validator:validator (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
Target //validator:validator up-to-date:
bazel-bin/validator/darwin_amd64_stripped/validator
INFO: Elapsed time: 0.157s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
@michaelhly
michaelhly / buffered_chans.go
Last active May 2, 2020 18:57
Go Practice: Buffered Channels
package main
import (
"fmt"
"time"
)
const Workers = 4
const NumSubroutines = 10
const SendTimeout = 500 * time.Millisecond
Verifying my Blockstack ID is secured with the address 1PkWyQFZALkgwrHc1YbWqazE8vao6QgTwu https://explorer.blockstack.org/address/1PkWyQFZALkgwrHc1YbWqazE8vao6QgTwu