Skip to content

Instantly share code, notes, and snippets.

View stake.bash
heimdallcli tx staking stake-update --block-number 12535185 --id 125 --log-index 352 --nonce 279 --staked-amount 2667543684324388533318472 --tx-hash 0x277c57b7763addbaff82308ff4c6eeaa9eab5ab6c49c2338b41e4f73c6d714a7 --chain-id heimdall-137 --sequence 126121
heimdallcli tx staking stake-update --block-number 12535229 --id 128 --log-index 55 --nonce 260 --staked-amount 5328785075270129389879005 --tx-hash 0xdf0adfaef21ddca1fc69171495960220c6a2cf98adabd6efdf9b0c497f35935b --chain-id heimdall-137 --sequence 126122
heimdallcli tx staking stake-update --block-number 12535238 --id 15 --log-index 161 --nonce 1211 --staked-amount 28828018417655351543522310 --tx-hash 0x3332a7eadecb190c36c9c069108524dfb81bf78d5ac07362515ba268de7a5c4c --chain-id heimdall-137 --sequence 126123
heimdallcli tx staking stake-update --block-number 12535239 --id 72 --log-index 360 --nonce 416 --staked-amount 117167149120719678236996091 --tx-hash 0x3dfcce72a9dcbd402b36c7e7e10f02e5209ce75605a9c941dc8defc9e394fbba --chain-id heimdall-137 --seq
View state_sync.bash
heimdallcli tx clerk record --block-number 12535176 --bor-chain-id 137 --contract 0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa --data 0x87a7811f4bfedea3d341ad165680ae306b01aaeacc205d227629cf157dd9f821000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d4bcb652f6cd34643c4611163274324bf6bb9ba1000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000008a86e626 --log-index 248 --tx-hash 0x8da033bd279a31b4b952c85b3a3f2b7267b572c9c90d5bf1d575531b38b094ae --id 273338 --chain-id heimdall-137 --sequence 125209
heimdallcli tx clerk record --block-number 12535177 --bor-chain-id 137 --contract 0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa --data 0x87a7811f4bfedea3d341ad165680ae306b01aaeacc205d227629cf157dd9f82100000000000000000000000000000000
View state_sync.txt
heimdallcli tx clerk record --block-number 12535176 --bor-chain-id 137 --contract 0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa --data 0x87a7811f4bfedea3d341ad165680ae306b01aaeacc205d227629cf157dd9f821000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d4bcb652f6cd34643c4611163274324bf6bb9ba1000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000008a86e626 --log-index 248 --tx-hash 0x8da033bd279a31b4b952c85b3a3f2b7267b572c9c90d5bf1d575531b38b094ae --id 273338 --chain-id heimdall-137 --sequence 125203
heimdallcli tx clerk record --block-number 12535177 --bor-chain-id 137 --contract 0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa --data 0x87a7811f4bfedea3d341ad165680ae306b01aaeacc205d227629cf157dd9f82100000000000000000000000000000000
View state_sync.txt
heimdallcli tx clerk record --block-number 12535176 --bor-chain-id 137 --contract 0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa --data 0x87a7811f4bfedea3d341ad165680ae306b01aaeacc205d227629cf157dd9f821000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000d4bcb652f6cd34643c4611163274324bf6bb9ba1000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000008a86e626 --log-index 248 --tx-hash 0x8da033bd279a31b4b952c85b3a3f2b7267b572c9c90d5bf1d575531b38b094ae --id 273338 --chain-id heimdall-137
heimdallcli tx clerk record --block-number 12535177 --bor-chain-id 137 --contract 0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa --data 0x87a7811f4bfedea3d341ad165680ae306b01aaeacc205d227629cf157dd9f82100000000000000000000000000000000000000000000000000
@rahuldamodar94
rahuldamodar94 / gist:6bdd022f3457934f2a104fd5f4bb45e4
Created Dec 16, 2020
0x V3 deployment on Matic Testnet (Mumbai - 80001) and Matic Mainnet (137)
View gist:6bdd022f3457934f2a104fd5f4bb45e4
"80001":{
"erc20Proxy": "0x0b47076aaa5246411458fcf85494f41bbfdb8470",
"erc721Proxy": "0xff7ca10af37178bdd056628ef42fd7f799fac77c",
"erc1155Proxy": "0x53d791f18155c211ff8b58671d0f7e9b50e596ad",
"zrxToken": "0x5af2b282779c7d4ffc69ca4e6e16676747f5c56b",
"etherToken": "0x5b5e11e4818cceba3e82ca9b97cd0ab80be75ad3",
"exchange": "0x533dc89624dcc012c7323b41f286bd2df478800b",
"erc20BridgeProxy": "0x5638a4b19f121adc4436de3f0e845173b33b594c",
"forwarder": "0x6dcf02d3a963f22dbf85c4025b86a834fef16c15",
"coordinatorRegistry": "0x6f5b9e0456c4849224c7b59dc15f05c48641c4e3",
View gist:e3f231cf553d364174a3c1c3d55dfa4f
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
View gist:38585f1f90b09329f4b1771aa4bbd658
let Biconomy = require("@biconomy/mexa");
let abi = require('./testabi.json')
let Web3 = require("web3")
const biconomy = new Biconomy(window.ethereum,{apiKey: "A8U9q3qVt.66db9879-a33c-4551-98b0-7016616eb1ab"});
web3 = new Web3(biconomy);
biconomy.onEvent(biconomy.READY, async () => {
console.log("successs")
View ChildERC20Proxified.sol
// File: contracts/common/mixin/Initializable.sol
pragma solidity ^0.5.2;
contract Initializable {
bool inited = false;
modifier initializer() {
require(!inited, "already inited");
View ethscan.js
let Web3 = require("web3");
let ethScan =require('@mycrypto/eth-scan');
// Matic balance
ethScan.getEtherBalances("https://rpc-mumbai.matic.today",["0xFd71Dc9721d9ddCF0480A582927c3dCd42f3064C"],{contractAddress: "0xa878A805F78d22126188aBa9b6D0c5E907e29459"}).then(res => {
console.log(res)
}).catch(err => {
console.log(err)
})
// Matic tokens balances
ethScan.getTokensBalance("https://rpc-mumbai.matic.today","0xFd71Dc9721d9ddCF0480A582927c3dCd42f3064C",["0xd393b1E02dA9831Ff419e22eA105aAe4c47E1253"],{contractAddress: "0xa878A805F78d22126188aBa9b6D0c5E907e29459"}).then(res => {
View gist:e2510c1742ae6e8018fd23d9ad307d35
let Biconomy = require("@biconomy/mexa");
let abi = require('./testabi.json')
let Web3 = require("web3")
const biconomy = new Biconomy(window.ethereum,{apiKey: "QmA4kP-Eu.8f858b94-9d32-4d73-9102-13f0e6e60659"});
web3 = new Web3(biconomy);
biconomy.onEvent(biconomy.READY, async () => {
try{