Skip to content

Instantly share code, notes, and snippets.

View Aimeedeer's full-sized avatar

Aimee Zhu Aimeedeer

View GitHub Profile
@Aimeedeer
Aimeedeer / gist:10afb7985a2a4df1f31ebe5330812515
Created March 7, 2023 20:49
Notes: Cargo fuzz coverage for Soroban timelock
# Cargo fuzz coverage for Soroban timelock
```
$ cargo +nightly fuzz coverage fuzz_target_2
warning: Patch `soroban-auth v0.6.0 (/rs-soroban-sdk/soroban-auth)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
@Aimeedeer
Aimeedeer / solana-sysvar-printing
Last active February 24, 2022 04:57
sysvar data on devnet, 2022-02-23
clock::ID: SysvarC1ock11111111111111111111111111111111
clock::check_id: true
clock::Clock::size_of: 40
clock account: Account {
lamports: 1169280,
data.len: 40,
owner: Sysvar1111111111111111111111111111111111111,
executable: false,
rent_epoch: 270,
data: dd61f5060000000012731662000000000e010000000000000f010000000000005e0e176200000000,
$ dfx new firsttest
The DFINITY Canister SDK sends anonymous usage data to DFINITY Stiftung by
default. If you wish to disable this behavior, then please set the environment
variable DFX_TELEMETRY_DISABLED=1. Learn more at https://sdk.dfinity.org.
Fetching manifest https://sdk.dfinity.org/manifest.json
⠋ Checking for latest dfx version...
You seem to be running an outdated version of dfx.
@Aimeedeer
Aimeedeer / ink-contract-errors.txt
Last active January 19, 2021 00:02
Debug ink contract
2021-01-08 16:35:54.010 DEBUG tokio-runtime-worker runtime:DispatchError
2021-01-08 16:35:54.010 DEBUG tokio-runtime-worker runtime:8
2021-01-08 16:35:54.010 DEBUG tokio-runtime-worker runtime:6
2021-01-08 16:35:54.010 DEBUG tokio-runtime-worker runtime:OutOfGas
2021-01-08 16:35:54.010 DEBUG tokio-runtime-worker runtime:PostInfo:
2021-01-08 16:35:54.010 DEBUG tokio-runtime-worker runtime:actual_weight=
2021-01-08 16:35:54.010 DEBUG tokio-runtime-worker runtime:5000000000
2021-01-08 16:35:54.010 DEBUG tokio-runtime-worker runtime:pays_fee=
2021-01-08 16:35:54.010 DEBUG tokio-runtime-worker runtime:Yes
2021-01-08 16:36:12.009 DEBUG tokio-runtime-worker runtime:dispatch_level: hash: AccountId([76, 250, 199, 247, 76, 98, 51, 68, 155, 94, 84, 186, 7, 2, 49, 221, 148, 199, 27, 137, 80, 84, 130, 205, 145, 0, 0, 101, 98, 88, 211, 237])
@Aimeedeer
Aimeedeer / ink-sample-expand
Created December 16, 2020 23:42
cargo expand --no-default-features --target=wasm32-unknown-unknown
#![feature(prelude_import)]
//! A smart contract which demonstrates behavior of the `self.env().transfer()` function.
//! It transfers some of it's balance to the caller.
#![no_std]
#![allow(clippy::new_without_default)]
#[prelude_import]
use core::prelude::v1::*;
#[macro_use]
extern crate core;
#[macro_use]

Process: Neuron [13481] Path: /Applications/Neuron.app/Contents/MacOS/Neuron Identifier: com.nervos.neuron Version: 0.25.2 (0.25.2.20191129.10) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Neuron [13481] User ID: 501

Date/Time: 2019-11-30 16:38:41.913 +0800

Keybase proof

I hereby claim:

  • I am aimeedeer on github.
  • I am aimeedeer (https://keybase.io/aimeedeer) on keybase.
  • I have a public key ASAmMCWZI9WWEJwqtl54b4uuLi4kdzxN_RBKaTQmsEhTTgo

To claim this, I am signing this object: