Skip to content

Instantly share code, notes, and snippets.

View btwiuse's full-sized avatar
🏠
Working from home

Broken Pipe btwiuse

🏠
Working from home
View GitHub Profile
{
"nameShort": "Code - Insiders",
"nameLong": "Visual Studio Code - Insiders",
"applicationName": "code-insiders",
"win32x64AppId": "{{1287CAD5-7C8D-410D-88B9-0D1EE4A83FF2}",
"win32arm64AppId": "{{0AEDB616-9614-463B-97D7-119DD86CCA64}",
"win32x64UserAppId": "{{217B4C08-948D-4276-BFBB-BEE930AE5A2C}",
"win32arm64UserAppId": "{{69BD8F7B-65EB-4C6F-A14E-44CFA83712C0}",
"win32NameVersion": "Microsoft Visual Studio Code Insiders",
"win32DirName": "Microsoft VS Code Insiders",

Gabriel García Márquez

Cien años de soledad

EDITADO POR "EDICIONES LA CUEVA"

{"block":{"header":{"parentHash":"0x92ed36f0a4a26169cba7c6990d51055c76b6b89de268568615a041eebb619a0e","number":"0x1","stateRoot":"0xc1beaf9ca16b914d00ee889e94124a26b615880d9f39a448c7cbc0e85be630f7","extrinsicsRoot":"0x900f8bd446d0454e2a751faef303df2e05898d9332c8916fd10d8c72ba699fdd","digest":{"logs":["0x064241424534020000000080241c6400000000","0x044241424509030110c8e4df7eac6b52dc5281659f1f393903932ee4b1f69f311c3cb123bc40f9267a01000000000000003c4c519e3d7149c93181e8e3762562db6f580c27502e9a6ab2f7464d6185241b0100000000000000587e919f8149e31f7d4e99e8fbdf30ff119593376f066e20dacda9054892b4780100000000000000f2fd6936b8ddad025d329ff2d6b5577e6381cb25333f6f17f592494b0b61ef5501000000000000000000000000000000000000000000000000000000000000000000000000000000","0x05424142450101eac61a9b0b6c8cbccf44b0f7cd497d8143e938fa88fbc950c98ac9514153b852e8b6ad6a66513c009b6cf9ff28114f1519335348ac3f7212a9498a7f9db3dd88"]}},"extrinsics":["0x280401000b0094ee0d8701","0x0c046806"]},"justifications":null}
{"block":{"header":{"parentHash":"0x4f4c38b
#!/usr/bin/env -S deno run -A
const RPC_NODE = "http://127.0.0.1:9933"
async function request(method: string, params: any) {
const response = await fetch(RPC_NODE, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
@btwiuse
btwiuse / swap...ELON.sol
Created July 28, 2022 06:52
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.13+commit.abaa5c0e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.0.0/contracts/token/ERC20/ERC20.sol";
contract ELON is ERC20 {
constructor(string memory name, string memory symbol) ERC20(name, symbol) {
// Mint 100 tokens to msg.sender
// Similar to how
// 1 dollar = 100 cents
@btwiuse
btwiuse / swap...ELON.sol
Created July 28, 2022 06:52
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.13+commit.abaa5c0e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.0.0/contracts/token/ERC20/ERC20.sol";
contract ELON is ERC20 {
constructor(string memory name, string memory symbol) ERC20(name, symbol) {
// Mint 100 tokens to msg.sender
// Similar to how
// 1 dollar = 100 cents
@btwiuse
btwiuse / README.txt
Created March 16, 2022 13:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@btwiuse
btwiuse / README.txt
Created March 16, 2022 13:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@btwiuse
btwiuse / README.txt
Created February 3, 2022 01:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.11+commit.d7f03943.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@btwiuse
btwiuse / README.txt
Created February 3, 2022 00:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.11+commit.d7f03943.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS