Skip to content

0xsequence/c-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sequence C SDK

Setup

Install dependencies

arch -arm64 brew install cmake
brew install secp256k1

For armcc support, install mbedtls via vcpkg.

// vcpkg
cd ~
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
sh bootstrap-vcpkg.sh
export PATH="$HOME/vcpkg:$PATH"

// Mbed TLS
// If necessary, add it to your CMAKE_PREFIX_PATH
vcpkg install mbedtls

cJSON

brew install cjson

Initialize the build directory

cmake -S . -B build
cmake --build build

Run the demo or cli

./build/sequence-demo
# Init
./build/sequence-cli init --access_key AQAAAAAAAAK2JvvZhWqZ51riasWBftkrVXE

# Get token balances
./build/sequence-cli get_token_balances --chain_id 137 --contract_address 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359 --wallet_address 0x8e3E38fe7367dd3b52D1e281E4e8400447C8d8B9 --include_metadata

# Sign in with Email
./build/sequence-cli sign_in_with_email --email andygruening@gmail.com

# Confirm Email sign in
./build/sequence-cli confirm_email_sign_in --email andygruening@gmail.com --code 123456

# Use wallet
./build/sequence-cli use_wallet --wallet_type Ethereum_SequenceV3

# Create wallet
./build/sequence-cli create_wallet

# Sign message
./build/sequence-cli sign_message --chain_id 80002 --message test

# Send transaction
./build/sequence-cli send_transaction --chain_id 80002 --to 0xE5E8B483FfC05967FcFed58cc98D053265af6D99 --value 1000

Homebrew version release

  1. Create a tag and version release on GitHub
  2. Reference the .tar.gz file url from the release inside the Formula/wallet.rb file
  3. Compute the file hash curl -L <url.tar.gz> | shasum -a 256
  4. Replace the sha256 value inside wallet.rb with the hash from the latest release
  5. Create a PR and merge it into master

Homebrew installation

# Remove tap if needed
brew untap 0xsequence/c-sdk

# Create tap, then install
brew tap 0xsequence/c-sdk https://github.com/0xsequence/c-sdk/
brew install 0xsequence/c-sdk/wallet

About

C99 compatible Embedded Wallet SDK

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages