ArkProjectNFTs / ark-project

ArkProject is a liquidity layer for digital assets, uniting markets, empowering creators, and bridging the gap to mass adoption. Built on top of Starknet, ArkProject is designed to provide a fully decentralized and trustless orderbook on-chain.
https://arkproject.dev
Apache License 2.0
27 stars 23 forks source link

feat: implement new hook to set addresses #214

Closed glihm closed 10 months ago

glihm commented 10 months ago

Description

Add support for new endpoints on Katana to set addresses for Solis.

glihm commented 10 months ago

For this endpoint to be available, solis must be run with --dev argument.

cargo run -p solis -- --messaging ./crates/solis/messaging.local.json --dev

Then you can curl like this:

curl -X POST \
     -H 'Content-Type: application/json' \
     -d '{"jsonrpc":"2.0","id":"1","method":"katana_setSolisAddresses","params":{"addresses": {"orderbook_arkchain":"0x1234", "executor_starknet":0x8888}}}' \
     http://localhost:7777
kwiss commented 10 months ago

Amazing thanks @glihm

kwiss commented 10 months ago

i would add a secret from the env, so we can use that outside of dev env with a basic auth ie