Skip to content

Instantly share code, notes, and snippets.

View KEEP mainnet contract addresses
BondedECDSAKeep: 0xA9E838FCB9295FA44D89d06ED59811aE1a22c105
BondedECDSAKeepFactory: 0xA7d9E842EFB252389d613dA88EDa3731512e40bD
BondedSortitionPoolFactory: 0x92e0d821578f9f21CE6BfdfAbcFAdC267F109683
StackLib: 0xdf6542260a9F768f07030E4895083F804241F4C4
KeepBonding: 0x27321f84704a599aB740281E285cc4463d89A3D5
DepositUtils: 0x2Ad83DECF0555945094E5D25129c1F324F212517
DepositRedemption: 0x817C0f6332392AD65D7688Ed22F59B227e372323
DepositStates: 0x8695FF199A1216Fc7E2BF97303bF662baBae1C80
DepositFactory: 0x87EFFeF56C7fF13E2463b5d4dCE81bE2340FAf8b
KeepFactorySelection: 0x29fA8F46CBB9562b87773c8f50a7F9F27178261c
View balancer tokens
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2: WETH
0xba100000625a3754423978a60c9317c58a424e3D: BAL
0x6B175474E89094C44Da98b954EedeAC495271d0F: DAI
0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2: MKR
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48: USDC
0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599: WBTC
0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828: UMA
0x514910771AF9Ca656af840dff83E8264EcF986CA: LINK
0x80fB784B7eD66730e8b1DBd9820aFD29931aab03: LEND
0x960b236A07cf122663c4303350609A66A7B288C0: ANT
View get_rnd.js
const fs = require('fs');
const ethers = require('ethers');
const RandomBeaconImpl = require("@keep-network/keep-core/artifacts/KeepRandomBeaconServiceImplV1.json")
const RandomBeaconService = require("@keep-network/keep-core/artifacts/KeepRandomBeaconService.json")
if (process.argv.length < 3 || !process.argv[2]) {
console.error('node get_rnd.js [password]');
process.exit(1);
}
View gist:bffbb4699db20d56c138b3731ae82d9c
'0xaC049223397e2F25Ea9FE56D5ee0896F6d8E8CB7' => 100,
'0x3FF855895EF4aC833c32Ab6A0d6C7fBfA137E26E' => 111,
'0xaEe3eAf09a6161392eE39fF6B507eB6a007014B7' => 6,
'0x6BA0Fea94f6Ad6C126c61d19d5771E71A30A1169' => 2,
'0x19B67909FaE83BB0Fe73eC47D57F0Aac8502B4ad' => 3,
'0x0eC14BC7cCA82c942Cf276F6BbD0413216dDB2bE' => 76,
'0xFf0e2ed1A07e5041C0F0D412C860Eec3AbA7f4Bd' => 3,
'0xC3F06C9687e4E8E1A53E86D4d6F76F0F88B61B3F' => 5,
'0x343cF5e52a13411372aEF40728a1DEc37f940e28' => 8,
'0xCB2d225E8fB6F2CE9023A4de3103168297f0eb64' => 10,
@knarz
knarz / gist:b3b906bf8b3f7255b5dc90f96d1c0165
Last active Feb 22, 2021
KEEP testnet contract addresses
View gist:b3b906bf8b3f7255b5dc90f96d1c0165
FullyBackedECDSAKeepFactory: 0x6f94f29e1DcBEDa8cb6B1b145d11e3a62D826165
LPRewardsKEEPTBTC: 0x991086DA88C388c5e04d21335e8748D4e67Fe8d8
BondedECDSAKeepVendorImplV1: 0xb462B07D166E78Fc04c0FB8E0972d2693D2461FA
ECDSARewardsDistributor: 0xec8ef1174D7B5BdBb8E9D3Dbdeae9bcF9056F1c2
BondedECDSAKeep: 0x81aD848986B6778a583DaC18624B365E21b3C63D
Leaf: 0xE8F35d0750335e565aC249838653b2567eE02253
BondedECDSAKeepFactory: 0x26dBc9eF92a062c41FB07513313D14Fd54B630e5
TestToken: 0x438fE8148a6DC05d5251d2703425c3256c66Dbb4
BondedSortitionPoolFactory: 0x3d77DC618284053110564d14e6241Ca62a3EE276
FullyBackedECDSAKeep: 0x2c0666A93bd1F5Dde4A5FBEA4CD968a0B74E4401
View gist:ea724a6421d767e08b75a6b8bdf2813d
Attestation:
Message: https://www.aztecprotocol.com/ignition/participant/0x16f375e0f83bbdba8071b0c438505eb7fa741fa9/?timestamp=1578753486160
Hash: 0x8e9bccf6111302c61568fa5061ae6853bd5f1b51a0163298b963ad1007c1ac6e
Signature: 0xd00988d9bbc3236c0f32d0942d44d79d682f3da869dbd1aa4ffb6841d85b9b4914681e3b83d7716df2ffebb45a0dacbc47214679c1d766c1688c932ada9ae2721b
@knarz
knarz / Dockerfile
Last active Jul 13, 2019
cosmos testnet dockerfile
View Dockerfile
# vi: set ft=dockerfile :
# example usage
# docker build -t cosmos .
# docker run -d -v cosmos-data:/opt/cosmos --rm -ti --name cosmos-1 cosmos
# docker exec -it cosmos-1 sh
# /go/bin/basecli --home $BASECOIN_HOME keys add default
# /go/bin/gaiad --home $GAIAD_HOME show_validator
FROM golang:1-alpine
RUN apk add --no-cache git make
@knarz
knarz / check.md
Last active Sep 29, 2017
IOTA GUI wallet check addresses
View check.md
  1. Open the GUI, go to View > Toggle Web Inspector
  2. paste the following code into the console
var a = []; var bal = 0; for(var i = 0; i < 100; i++) { a.push(iota.api._newAddress("SEEDHERE", i, 2, false)) }; iota.api.getBalances(a, 100, function(err, res) { for (var i in res.balances) { console.log(a[i], res.balances[i]); } });
  1. change SEEDHERE to your seed
  2. change the 100 to the number of addresses you want to check
  3. Press enter and wait
@knarz
knarz / fwpass.sh
Created Jan 9, 2017
set firmware password macOS
View fwpass.sh
sudo firmwarepasswd -setpasswd -setmode command # https://twitter.com/XenoKovah/status/809418554428657666
@knarz
knarz / seedgen.sh
Created Dec 5, 2016
IOTA generate seed
View seedgen.sh
cat /dev/urandom |LC_ALL=C tr -dc 'A-Z9' | fold -w 81 | head -n 1