typedef long long uint64_t;
uint64_t test1(uint64_t a) { return __builtin_btf_type_id(a, 0); }
uint64_t test2(uint64_t a) { return __builtin_btf_type_id(&a, 0); }
struct t1 { uint64_t a; };
typedef struct t1 __t1;
unsigned test3() {
Elf dump
$ cargo build-bpf --dump
Solana example program has both the contract and client program for testing.
This file contains 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 requests | |
import pandas as pd | |
from datetime import datetime | |
from dateutil import parser | |
import time | |
def datetime_parse(dt_string): | |
#dt_string example: "December 30, 2023 13:06:57 UTC" | |
dt = parser.parse(dt_string).timestamp() | |
return dt |