sudo apt-get update && sudo apt upgrade -y
sudo snap install --classic go
nano $HOME/.profile
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
//@ts-check | |
const { readFileSync } = require('fs'); | |
const { join } = require('path'); | |
const readline = require('readline'); | |
/** @typedef {Exclude<typeof instructions[number]["name"], "NEW_LABEL">} INSTRUCTION_NAME */ | |
/** @typedef {{name:INSTRUCTION_NAME}} INSTRUCTION */ | |
/** @typedef {{value:bigint, type:"NUMBER"}|{type:"LABEL", value:string}} VALUE */ | |
/** @typedef {VALUE|INSTRUCTION} VALUE_OR_INSTRUCTION */ |
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
/** | |
* Context | |
* @typedef {object} Context | |
* @property {boolean} isError | |
* @property {string} errorMessage | |
* @property {number} index | |
* @property {any} result | |
* @property {any} srcObj | |
* @property {string} path | |
* |
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 bech = require('bech32'); | |
const { Tendermint34Client } = require('@cosmjs/tendermint-rpc'); | |
const { setupBankExtension } = require('@cosmjs/stargate'); | |
// create a rpc client to fetch data from a blockchain | |
const tendermintClient = QueryClient.withExtensions( | |
(await Tendermint34Client.connect("rpc-url")), | |
setupBankExtension ); | |
// use this to get the balances |
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
(function() { | |
'use strict'; | |
const el = new Image(); | |
let consoleIsOpen = false; | |
let consoleOpened = false; | |
Object.defineProperty(el, 'id', { | |
get: () => { | |
consoleIsOpen = 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
{ | |
"list":[ | |
"localhost:400", | |
] | |
} |