Skip to content

Instantly share code, notes, and snippets.

{"claims":[{"name":"wotrust1","timestamp":1742952798,"type":"NAME"},{"timestamp":1742952800,"type":"ACCOUNT","address":"0x7C75B0B81A54359E9dCCDa9cb663ca2e3De6B710"},{"rpcUrl":"https://rpc-celo1.wotrust.us","timestamp":1742952802,"type":"RPC_URL"}],"meta":{"address":"0x6ac7E3D0BDeb78ddcF3d9b15208B50C08271C213","signature":"0x0ad9a95b579e4aa489b2227376ea04d076db106af9a5eb5d3c12e51d4318c5a56153724be66af72b74dcc0b38700a34308a3d8e55ac6001c8a7cec3ecb0458c11b"}}
{"claims":[{"name":"WOTrust","timestamp":1589887920,"type":"NAME"},{"username":"wotrust","timestamp":1589887923,"type":"KEYBASE"},{"domain":"wotrust.us","timestamp":1589887926,"type":"DOMAIN"},{"timestamp":1589887928,"type":"ACCOUNT","address":"0x6ac7E3D0BDeb78ddcF3d9b15208B50C08271C213"},{"timestamp":1589887931,"type":"ACCOUNT","address":"0x206296BeffFB68fCE658535D443c732892162005"},{"timestamp":1589887934,"type":"ACCOUNT","address":"0xAb98b3C66Fb538c90359191067a5eA3aF8e5739B"},{"timestamp":1589887936,"type":"ACCOUNT","address":"0xcea07955542618c180b53F80Cecd9481CC70b583"},{"timestamp":1742952238,"type":"ACCOUNT","address":"0x9DB228a3C6953c8189f3B17388A443C1769A19A5"},{"timestamp":1742952380,"type":"ACCOUNT","address":"0x9DB228a3C6953c8189f3B17388A443C1769A19A5"},{"timestamp":1742952504,"type":"ACCOUNT","address":"0x9DB228a3C6953c8189f3B17388A443C1769A19A5"},{"timestamp":1742952644,"type":"ACCOUNT","address":"0x9DB228a3C6953c8189f3B17388A443C1769A19A5"},{"timestamp":1742952764,"type":"ACCOUNT","address":"0x9
{"claims":[{"name":"wotrust1","timestamp":1742952651,"type":"NAME"},{"timestamp":1742952654,"type":"ACCOUNT","address":"0x7C75B0B81A54359E9dCCDa9cb663ca2e3De6B710"},{"rpcUrl":"https://rpc-celo1.wotrust.us","timestamp":1742952656,"type":"RPC_URL"}],"meta":{"address":"0x6ac7E3D0BDeb78ddcF3d9b15208B50C08271C213","signature":"0x105a5067e69b7a140c732e5bb9fff98ccf3e00e080a2f9bc000b18c972b679b57868515ecc6d131b4ab994f5e97ec9e8c5beee5e00a5339b583a69d77104ea0a1b"}}
{"claims":[{"name":"wotrust3","timestamp":1667665408,"type":"NAME"},{"timestamp":1667665409,"type":"ACCOUNT","address":"0x7C75B0B81A54359E9dCCDa9cb663ca2e3De6B710"}],"meta":{"address":"0xAb98b3C66Fb538c90359191067a5eA3aF8e5739B","signature":"0x4d6dce1ee2e2aa29b7ed1033322b0b9b2bd2f32d3ddae9fdb7a80274ac7a04873035732aedc25caaff94142ab3c2aa0b9e33aa493a4ceb16c41203f965e198601b"}}
{"claims":[{"name":"wotrust1","timestamp":1637016642,"type":"NAME"},{"timestamp":1637016645,"type":"ACCOUNT","address":"0x7C75B0B81A54359E9dCCDa9cb663ca2e3De6B710"},{"url":"https://ca1.wotrust.us","timestamp":1637016648,"type":"ATTESTATION_SERVICE_URL"}],"meta":{"address":"0x6ac7E3D0BDeb78ddcF3d9b15208B50C08271C213","signature":"0x510d6bd590cc871168140f9581ba99e633726bdf4f791f88b5e25a0aecc514517d8a28cd4aaa92b396d89cc1987f6236d90558e52cb6cd782bc0fd5d7461834e1c"}}
TOTAL : CELO ( inflow): 2124535.35 @ 4.231435 (cUSD outflow: 8989833.50) TXs in/out: 31274/10842
ARB ONLY: CELO (outflow): 64699.16 @ 3.811634 (cUSD inflow: 246609.55) TXs in/out: 7622/8285
NON-ARB : CELO ( inflow): 2189234.51 @ 4.219029 (cUSD outflow: 9236443.05) TXs in/out: 23652/2557
0x616b8025A49207813471F72EE7e25a8410EF42BC: CELO ( inflow): 1399998.69 @ 4.295532 (cUSD outflow: 6013739.19) TXs in/out: 14000/0
0xA76df5D1caE697479fA08Afa7b0D35E182e0137a: CELO ( inflow): 399999.63 @ 2.937439 (cUSD outflow: 1174974.39) TXs in/out: 4000/0
0x4132F04EaCfdE9E2b707667A13CB69DbC5BABb68: CELO ( inflow): 399999.62 @ 5.233080 (cUSD outflow: 2093230.07) TXs in/out: 4000/0
0xFaF4c940351E5F68f582190D443A61374aAB984e: CELO (outflow): 47027.45 @ 4.322429 (cUSD inflow: 203272.80) TXs in/out: 3427/3800
0x4c9c42dCC8062528d87266be769bc21d9A26BDcc: CELO (outflow): 29663.54 @ 3.935730 (cUSD inflow: 116747.67) TXs in/out: 2232/2532
0x1065b516FcaE0eABfCB4804FC48363f47fB8D9ee:
@zviadm
zviadm / LOGS
Created December 24, 2020 20:54
Celo blockchain client started resyncing from a month ago!
INFO [12-24|17:30:41.512] Imported new chain segment blocks=1 txs=0 mgas=0.000 elapsed=17.528ms mgasps=0.000 number=4251136 hash=b9c1fd…338125 dirty=31.31MiB
WARN [12-24|17:41:34.495] Truncating freezer table database=/root/.celo/celo/chaindata/ancient table=headers items=4161136 limit=3532041
WARN [12-24|17:41:34.567] Truncating freezer table database=/root/.celo/celo/chaindata/ancient table=hashes items=4161136 limit=3532041
WARN [12-24|17:41:34.574] Truncating freezer table database=/root/.celo/celo/chaindata/ancient table=bodies items=4161136 limit=3532041
WARN [12-24|17:41:34.596] Truncating freezer table database=/root/.celo/celo/chaindata/ancient table=receipts items=4161136 limit=3532041
WARN [12-24|17:41:34.619] Truncating freezer table database=/root/.celo/celo/chaindata/ancient table=diffs items=4161136 limit=3532041
INFO [12-24|17:41:34.619] Rewind ancient data number=35320
const exchangeDirect = await kit._web3Contracts.getExchange()
const currentBlock = await kit.web3.eth.getBlockNumber()
const batchSize = 200000
for (let fromBlock = 0; fromBlock += batchSize; fromBlock < currentBlock) {
const bucketUpdates = await exchangeDirect.getPastEvents(
"BucketsUpdated", {
fromBlock: fromBlock,
toBlock: fromBlock+batchSize-1,
})
const rates = bucketUpdates.map((e) => ({
import { ContractKit, newKit } from "@celo/contractkit";
function increaseTime(kit: ContractKit, addSeconds: number) {
console.log(`time shift`, addSeconds)
const provider = kit.web3.currentProvider
if (!provider || typeof provider === "string") {
throw new Error(`invalid currentProvider!`)
}
return new Promise((resolve, reject) => {
provider.send({
#!/usr/bin/env node
import commander from 'commander';
import StatsdClient from 'statsd-client'
import { concurrentMap } from '@celo/utils/lib/async'
import { Validator } from '@celo/contractkit/lib/wrappers/Validators';
import { bitIsSet, parseBlockExtraData } from '@celo/utils/lib/istanbul'
import { cleanupName } from './stats-utils';
import BigNumber from 'bignumber.js';