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
//SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
contract Verifier { | |
mapping (address => bool) public whitelist; | |
constructor() { | |
whitelist[0x9FbB01206477cb3B063213528c2FF36B5b8e5609] = true; |
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
#!/usr/bin/env node | |
// requires installing node-fetch `npm install node-fetch` | |
const fetch = require('node-fetch'); | |
const myNodeId = 'NodeID-Hdc3Czu3AzW5rHvSAyLztNevu6bDNoKqo'; | |
async function main() { | |
const body = `{ | |
"jsonrpc":"2.0", |
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
#!/usr/bin/env node | |
# this script creates a tunnel from localhost:9650 to your avalanchego node | |
const fs = require('fs'); | |
const readFileSync = fs.readFileSync; | |
// npm install -g tunnel-ssh | |
const tunnelSsh = require("tunnel-ssh"); | |
async function main() { | |
if (process.argv.length < 3) { |