Releases: lmittmann/w3
v0.20.5
What's Changed
- build(deps): bump github.com/ethereum/go-ethereum from 1.16.4 to 1.16.5 by @dependabot[bot] in #283
Full Changelog: v0.20.4...v0.20.5
v0.20.4
What's Changed
- build(deps): bump github.com/ethereum/go-ethereum from 1.16.3 to 1.16.4 by @dependabot[bot] in #278
- workflows: updated go workflow by @lmittmann in #282
- build(deps): bump golang.org/x/time from 0.13.0 to 0.14.0 by @dependabot[bot] in #280
- build(deps): bump github.com/gofrs/flock from 0.12.1 to 0.13.0 by @dependabot[bot] in #281
Full Changelog: v0.20.3...v0.20.4
v0.20.3
What's Changed
- build(deps): bump github.com/ethereum/go-ethereum from 1.16.2 to 1.16.3 by @dependabot[bot] in #275
- build(deps): bump golang.org/x/time from 0.12.0 to 0.13.0 by @dependabot[bot] in #277
Full Changelog: v0.20.2...v0.20.3
v0.20.2
What's Changed
- w3vm: add
VM.Cloneby @zacksinclair in #269
New Contributors
- @zacksinclair made their first contribution in #269
Full Changelog: v0.20.1...v0.20.2
v0.20.1
What's Changed
- w3vm: add burntpix benchmark by @lmittmann in #266
- build(deps): bump github.com/ethereum/go-ethereum from 1.16.1 to 1.16.2 by @dependabot[bot] in #270
- w3vm: add
WithJumpDestCacheby @lmittmann in #272 - w3vm: fix potential testdata corruption during test interrupt by @lmittmann in #274
Full Changelog: v0.20.0...v0.20.1
v0.20.0
Improved Tuple Parsing in w3.NewFunc et al.
Go-structs that map to a Solidity-tuple can now be used directly in the signature to parse in w3.NewFunc.
| new | old |
|---|---|
var FuncSwap = w3.MustNewFunc(
"swap(PoolKey key, SwapParams params, bytes hookData)", "int256 delta",
PoolKey{}, SwapParams{},
)
type PoolKey struct {
Currency0 common.Address
Currency1 common.Address
Fee *big.Int `abitype:"uint24"`
TickSpacing *big.Int `abitype:"int24"`
Hooks common.Addresss
}
type SwapParams struct {
ZeroForOne bool
AmountSpecified *big.Int `abitype:"int256"`
SqrtPriceLimitX96 *big.Int `abitype:"uint160"`
} |
var FuncSwap = w3.MustNewFunc(`swap(
(address currency0, address currency1, uint24 fee, int24 tickSpacing, address hooks) key,
(bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96) params,
bytes hookData
)`, "int256 delta")
type PoolKey struct {
Currency0 common.Address
Currency1 common.Address
Fee *big.Int
TickSpacing *big.Int
Hooks common.Addresss
}
type SwapParams struct {
ZeroForOne bool
AmountSpecified *big.Int
SqrtPriceLimitX96 *big.Int
} |
New testdata/w3vm Layout
All cached state by w3vm is not stored in {workspace}/testdata/w3vm. The new data layout is more efficient, while still being human readable, diffable, uncompressed JSON. Storage reduction may vary from 50% to 90% smaller dir's. Drop all testdata/w3vm dirs once, after upgrading to v0.20.0.
What's Changed
- don't allow nil-client in
w3.NewClient(..)by @lmittmann in #255 - fix RPC endpoint used in examples by @lmittmann in #257
- build(deps): bump golang.org/x/time from 0.11.0 to 0.12.0 by @dependabot in #256
- w3vm/hooks: fix rendering
CALLCODEandSELFDESTRUCTby @lmittmann in #259 - w3vm: refactored
Slot->SoliditySlotand addedVyperSlotfunctions by @lmittmann in #261 - internal/abi: support struct to tuple mapping during parsing by @lmittmann in #248
- build(deps): bump github.com/ethereum/go-ethereum from 1.15.11 to 1.16.1 by @dependabot in #260
- w3vm: store all
testdata/w3vmin workspace root by @lmittmann in #262 - workflows: add doc build + deployment to GitHub Pages by @lmittmann in #263
- docs: add Telegram group by @lmittmann in #264
- improve CI RPC setup by @lmittmann in #265
Full Changelog: v0.19.5...v0.20.0
v0.19.5
What's Changed
- build(deps): bump github.com/ethereum/go-ethereum from 1.15.8 to 1.15.9 by @dependabot in #251
- build(deps): bump github.com/ethereum/go-ethereum from 1.15.9 to 1.15.11 by @dependabot in #253
- w3vm: migrated Receipt.GasRefund to Receipt.MaxGasUsed by @lmittmann in #254 (
⚠️ small breaking change⚠️ )
Full Changelog: v0.19.4...v0.19.5
v0.19.4
What's Changed
- build(deps): bump github.com/ethereum/go-ethereum from 1.15.7 to 1.15.8 by @dependabot in #250
Full Changelog: v0.19.3...v0.19.4
v0.19.3
What's Changed
- build(deps): bump github.com/ethereum/go-ethereum from 1.15.6 to 1.15.7 by @dependabot in #243
- w3vm: fix data race by @wesraph in #244
- internal/fourbyte: add more functions by @lmittmann in #245
Full Changelog: v0.19.2...v0.19.3
v0.19.2
What's Changed
- all: updated rpc provider by @lmittmann in #242
- build(deps): bump github.com/ethereum/go-ethereum from 1.15.5 to 1.15.6 by @dependabot in #241
Full Changelog: v0.19.1...v0.19.2