Skip to content

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jul 7, 2025

Bumps github.com/lmittmann/w3 from 0.19.3 to 0.20.0.

Release notes

Sourced from github.com/lmittmann/w3's releases.

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.

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
</tr></table>

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/lmittmann/w3](https://github.com/lmittmann/w3) from 0.19.3 to 0.20.0.
- [Release notes](https://github.com/lmittmann/w3/releases)
- [Commits](lmittmann/w3@v0.19.3...v0.20.0)

---
updated-dependencies:
- dependency-name: github.com/lmittmann/w3
  dependency-version: 0.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jul 7, 2025
Copy link
Author

dependabot bot commented on behalf of github Aug 12, 2025

Superseded by #10.

@dependabot dependabot bot closed this Aug 12, 2025
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/lmittmann/w3-0.20.0 branch August 12, 2025 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants