Elf dump
$ cargo build-bpf --dump
Solana example program has both the contract and client program for testing.
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 |
Elf dump
$ cargo build-bpf --dump
Solana example program has both the contract and client program for testing.
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() {