Utility bin scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Result } from '@ethersproject/abi'; | |
import chaiLocal from 'chai'; | |
import { ethers } from 'ethers'; | |
declare global { | |
// eslint-disable-next-line @typescript-eslint/no-namespace | |
export namespace Chai { | |
interface Assertion { | |
matchStruct(expected: unknown): void; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bip32 = require('ed25519-hd-key'); | |
const nacl = require('tweetnacl'); | |
const bip39 = require('bip39'); | |
const bs58 = require('bs58') | |
const path = "m/44'/397'/0'" | |
const mnemonic = 'test test test test test test test test test test junk'; | |
const seed = bip39.mnemonicToSeedSync(mnemonic); | |
const keySeed = bip32.derivePath(path, seed).key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(require('fs').readFileSync(process.argv[2]).toString('hex')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RPC_USER=username | |
RPC_PASS=password | |
run() | |
{ | |
docker rm -f "monerod" | |
docker image rm -f xmrto/monero:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
validator_keys=( | |
"KEY 1" | |
"KEY 2" | |
"KEY 3" | |
... | |
"KEY X" | |
) |
I hereby claim:
- I am mesquka on github.
- I am mesquka (https://keybase.io/mesquka) on keybase.
- I have a public key whose fingerprint is 60CB 4E4F 84F1 27C0 9C35 DD1D 44D2 D0D3 8BAC 951A
To claim this, I am signing this object: