0xsequence / ethkit Goto Github PK
View Code? Open in Web Editor NEWEthereum dev toolkit for Go
License: Other
Ethereum dev toolkit for Go
License: Other
I was trying a batch call with 4 calls, CodeAt and three function read calls, its way faster to call them seperately concurrently than doing a batch call for some reason, could be node do slower responses to batch calls but maybe a ethrpc problem
ethkit/ethmonitor/ethmonitor.go
Lines 324 to 347 in 7d9af4e
I haven't tried this, but I think if topics are specified, then it's possible to receive no logs, while the logs bloom filter is non-zero. This means the block is never considered backfilled and causes the monitor to hang if logs are requested.
github.com/0xsequence/ethkit v1.22.4
SolidityPack seems to not consider negative signs:
entry1, err := ethcoder.SolidityPackHex([]string{"int32"}, []interface{}{int32(-42)})
entry2, err := ethcoder.SolidityPackHex([]string{"int32"}, []interface{}{int32(42)})
fmt.Println(entry1)
fmt.Println(entry2)
// entry1 == entry2
yields 0x0000002a, 0x0000002a
Other integer-types seem to show the same issue.
comparing to ethers/utils/solidity.ts:
let v1 = ethers.utils.solidityPack(["int32"], [-42]);
let v2 = ethers.utils.solidityPack(["int32"], [42]);
console.log(v1);
console.log(v2);
yields 0xffffffd6, 0x0000002a
ethkit/ethmonitor/bootstrap.go
Line 49 in da313b8
Above line should be:
blocks = blocks[len(blocks)-c.retentionLimit-1:]
updated len(blocks)
after above change:
updatedLength = len(blocks)-1 - (len(blocks)-c.retentionLimit-1)
= c.retentionLimit
for example, consider blocks
to be slice with length=150
and c.retentionLimit=100
then current code will do this:
blocks = blocks[99:] //blocks will end up with length = 50 (=len(blocks)-retentionLimit)
with change:
blocks = blocks[49:] //blocks will have length = 100 (=retentionLimit)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.