Skip to content

Instantly share code, notes, and snippets.

View aristidesstaffieri's full-sized avatar

aristides aristidesstaffieri

View GitHub Profile
$global-color: #a3a3a3;
$button: (
disabled lighten ($global-color, 30%),
disabled-border lighten ($global-color, 60%),
selected darken ($global-color, 30%),
.disabled {
background-color: map-get($button, disabled);
border-color: map-get($button, disabled-border);
}
.selected {

Keybase proof

I hereby claim:

  • I am aristidesstaffieri on github.
  • I am aristides (https://keybase.io/aristides) on keybase.
  • I have a public key whose fingerprint is BB0E B8FC 343A 6D13 E944 82AF 2AA6 FC40 0ED7 35F5

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am aristidesstaffieri on github.
  • I am aristides (https://keybase.io/aristides) on keybase.
  • I have a public key ASCuV5fVZe1lTj02o_vAESY1NNnVNqCwhWmI9215xPKLYgo

To claim this, I am signing this object:

@aristidesstaffieri
aristidesstaffieri / index.js
Created June 28, 2023 15:35
JS Atomic Swap
// Pre-reqs - Node.js >= 16.4
// mkdir atomic-swap && cd atomic-swap
// npm init -y
// npm i bignumber.js soroban-client
// mkdir index.js and add this script
// get 3 accounts ready, deploy 2 tokens(0 decimals for simplicity), then mint at least 2 of each to each of the swapper accounts
// and fill in the vars in main
// run with node index.js
const SorobanClient = require('soroban-client')
@aristidesstaffieri
aristidesstaffieri / index.js
Created July 20, 2023 19:01
Soroban auth - Restore entries and bump expiration
const SorobanClient = require("soroban-client")
const LEDGER_COUNT_YEAR = 6311000 // a little under a year
const RPC_URL = "https://rpc-futurenet.stellar.org:443"
const NETWORK_PASSPHRASE = "Test SDF Future Network ; October 2022"
const FEE = "10000000"
const signer = SorobanClient.Keypair.fromSecret("S...")
// envelope from token deployment which has expired entries