Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
INPUT=eden_members.csv
MANAGERACCOUNT=f5axfpgffiqz
CLIO="./clio --url https://fio.greymass.com"
CLEO="/Users/lukestokes/Documents/workspace/eosDAC/chains/mainnet/cleos.sh"
DEBUG=0
MEMBERS=0
MEMBERSNEEDFIO=0
APPLICANTS=0
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreihztuxqfnidayzxzj5rqdy4ybxultii32muu6m6llppgns26uaboi ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
@lukestokes

I argue that to have a decentralized chain, you have to respect property rights.

For sure, including those who are being told "I will move your tokens to Tron" by an attacker.

it seems like Ned sold Justin a fraudulent deal.

Agreed.

One should not need to uphold a contract that the previous owner is tied to

@lukestokes
lukestokes / encryption_bookmarklet.js
Last active October 29, 2019 19:35
A JavaScript encryption/decryption bookmarklet based on https://qiita.com/useiichi/items/0786199ee61443df3af5
javascript:w=window.open('','Links','scrollbars,resizable,width=640,height=550');w.document.write('<!DOCTYPE%20html><html><head><meta%20charset="utf-8"/><script%20src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/core.js"></script><script%20src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/sha1.js"></script><script%20src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac.js"></script><script%20src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/enc-base64.js"></script><script%20src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/cipher-core.js"></script><script%20src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/aes.js"></script><script%20src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/pbkdf2.js"></script><script%20type="text/javascript">function%20encrypt(){var%20encypt_text=document.getElementById("encypt-text").value;var%20pass=CryptoJS.enc.Utf8.parse(document.getElementById("encrypt-password").value);var%20salt=CryptoJS.lib.
@lukestokes
lukestokes / testdac.md
Created May 30, 2019 21:58
How Luke can help you get a test DAC set up
  1. Fork and clone https://github.com/eosdac/eosdac-client-extension
  2. Add lukestokes as a collaborator to the repo (luke.stokes@gmail.com)
  3. Overwrite the logos here with your own: https://github.com/eosdac/eosdac-client-extension/tree/master/branding/images/logo (the main one you need is logo-main.svg)
  4. Add a color file here: https://github.com/eosdac/eosdac-client-extension/tree/master/branding/colors/color_schemes and modify https://github.com/eosdac/eosdac-client-extension/blob/master/branding/colors/default.colors.styl to import it.
  5. Fork and clone https://github.com/eosdac/eosdac-constitution
  6. Add lukestokes as a collaborator.
  7. Find and replace eosDAC with your DAC and/or replace the whole document with your own user agreement and terms of service.
  8. Let Luke know when you're done with the above things and he'll start the process of creating a test DAC for your on the Jungle Testnetwork.
  9. Let Luke know what values you want for the following (remember, this is all just for the Jungle Testnet

This proposal runs setcode and setabi methods for the eosio.lost account to deploy the code described in the eosio.lost README file.

To verify this proposal sets the right code, pull down the mainnet-v1 release from this repo: https://github.com/eosdac/eosio.lost

Compile it yourself using eosio.cdt version 1.5:

eosio-cpp -o eosio.lost.wasm eosio.lost.cpp --abigen
@lukestokes
lukestokes / SteemDAC.md
Last active January 20, 2019 23:49
SteemDAC: Exploring the use of eosDAC technology for decentralized Steem community governance.

SteemDAC

Exploring the use of eosDAC technology for decentralized Steem community governance.

Foreword

At this time, this document in no way represents a commitment by anyone to do anything. It's simply a collection of thoughts started by Luke Stokes to explore future potentials. It was created while flying between Puerto Rico to Colorado on Sunday, January 20th 2019.

What is eosDAC?

@lukestokes
lukestokes / eosio.token_upgrade.md
Created December 11, 2018 04:24
Explanation of the eosio.token smart contract upgrade

Aspects of the EOSIO blockchain core functionality exist as system contracts which you can see here: https://github.com/eosio/eosio.contracts. The top 21 elected block producers can make changes to the system while it's running which automatically updates how the chain functions. The last major onchain update to the system contracts was v1.2.1 as you can see here: https://eosauthority.com/approval/view?scope=argentinaeos&name=systemupv121&lnc=en

There have been a number of new features, bug fixes, and performance improvements since then. We're proposing an upgrade to the eosio.token contract to what you can see in the latest release version 1.5.1: https://github.com/EOSIO/eosio.contracts/releases/tag/v1.5.1

The token contract has not been updated since the initial launch of the chain. You can see a code diff of the changes to deploy here: https://gist.github.com/lukestokes/39180d103799e0bbaafedb928f19198b (or view it yourself with the git command git diff v1.2.1...v1.5.1 eosio.token)

Upgrading the token co

@lukestokes
lukestokes / eosio.token.diff
Created December 11, 2018 04:12
git diff v1.2.1...v1.5.1 eosio.token
diff --git a/eosio.token/CMakeLists.txt b/eosio.token/CMakeLists.txt
index 9ff728c..5582d04 100644
--- a/eosio.token/CMakeLists.txt
+++ b/eosio.token/CMakeLists.txt
@@ -1,11 +1,8 @@
-add_executable(eosio.token.wasm ${CMAKE_CURRENT_SOURCE_DIR}/src/eosio.token.cpp)
+add_contract(eosio.token eosio.token ${CMAKE_CURRENT_SOURCE_DIR}/src/eosio.token.cpp)
target_include_directories(eosio.token.wasm
- PUBLIC
+ PUBLIC
@lukestokes
lukestokes / check_status.sh
Last active March 10, 2019 10:49
EOS Node notification script
#!/usr/bin/env bash
if [ ! -f last_block.txt ]; then
echo "0" > last_block.txt
fi
if [ ! -f skip_count.txt ]; then
echo "0" > skip_count.txt
fi
send_notice=false
last_saved_block=$(< last_block.txt)
skip_count=$(< skip_count.txt)