Skip to content

Instantly share code, notes, and snippets.

View szymonlesisz's full-sized avatar

Szymon Lesisz szymonlesisz

View GitHub Profile
# suite workspace autocomplete
# HOW TO:
# 1. download to ~/.bash_suite
# 2. update SUITE_REPO variable
# 3. edit ~/.bash_profile and add source ~/.base_suite line
# 4. reload shell: source ~/.bash_profile
# 5. type sui<tab> <tab>
SUITE_REPO=~/Workspace/suite
function suite() {
# suite workspace autocomplete
# HOW TO:
# 1. download to ~/.bash_suite
# 2. edit ~/.bash_profile and add source ~/.base_suite line
# 3. reload shell: source ~/.bash_profile
SUITE_REPO=~/Workspace/suite
function suite() {
if [ -f /etc/NIXOS ] && [ -z "$IN_NIX_SHELL" ]; then
echo "Entering nix-shell. Run this command again";

Suite application flow. shared/* represents future shared code between Suite and Wasabi wallets.

-- HAPPY PATH SESSION START --

[Suite + Trezor] authorizeCoinCoin credentials

shared/get-round

[request] { inputs, output addresses, availableRounds from WabiSabi/status, max fee, privacy level etc.. }

@szymonlesisz
szymonlesisz / index.js
Last active April 16, 2020 21:28
TrezorConnect: node signTx using account info
const TrezorConnect = require('trezor-connect').default;
TrezorConnect.manifest({
email: '',
appUrl: '',
});
TrezorConnect.on('UI_EVENT', event => {
console.log('UI_EVENT', event.type);
});
@szymonlesisz
szymonlesisz / Erc20Token.sol
Created October 23, 2019 15:01
Erc20Token smartcontract creation
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface ERC20Interface {
/**
* @dev Returns the amount of tokens in existence.
*/