Brenner
@brenner.eth
For testing swaps routed through 0x on a fork pinned to a specific block, there used to be `0x/asset-swapper` but it's deprecated and doesn't work on apple silicon. Is there something else I should be using to be able to test a contract that will be using the 0x router? cc @0xproject @wwarren
1 reply
3 recasts
8 reactions
jessicalin.eth
@jessicalin
have you tried this example using Swap API with Foundry? test on a cheap chain or testnet https://github.com/0xProject/0x-examples/tree/main/swap-v2-with-foundry calling 0x Swap API is the recommended way now (the old convenience packages have been deprecated) here’s a run down of how to use it: https://0x.org/docs/0x-swap-api/guides/swap-tokens-with-0x-swap-api
1 reply
0 recast
2 reactions
Knucklehead
@knklhed.eth
Ask Grok
0 reply
0 recast
0 reaction