Closed 0xdcota closed 1 year ago
@DaigaroCota and @doliG will have a call together to try to manually track a tx between two chains.
Plz refer to this API provided by Connext for tracking such txns with the transaction ID:
Attention: it could happen that the data is out of sync.
@doliG I created a wrapper to simplify making a cross-ping call. The contract address is: 0xB751B77eb70045830B61Eb57309BD9fC9270dd55, and it is the same address in Rinkeby, Goerli and Maticmumbai testnets. You just need to call method initiatePing("Type a custom string message", destinationDomainId) The receiver of pings in all testnets is address: 0xd41D09D455E9BD2cFa7FD42c235b933EF7604dD9. The domainIds can be found here: https://docs.connext.network/developers/testing-against-testnet
Hey, so here's the result so far of my test & investigations
✅ Determine library for web3 connection
ethers.js
& wagmi
One main drawback with wagmi: it supports only one provider at a time. Maybe we can use it to initiate transactions, but use plain ethers.js to query blockchain 🤔
✅ Determine app state
How different components talked to each other? How do we maintain of what the user is doing so in the next page it is available?
Here I suggest to use react-query
, it look way more simple than xstate
, that we can keep for complicated mechanism. But maybe it'll short circuit with Wagmi, we'll see as we are building 🤔
✅ Using GraphQL for querying Connext transaction status, mainly learn how it works in case it is needed
ok
✅ Typescript
Of course
❓ State of the transactions, how do we deal with this topic? In single blockchain we have several states of a transaction and going cross chain will require tracking those states on different blockchains.
💡 Consider a transaction as an order on e-commerce, therefor the user will have a cart
(= ongoing transaction), and an history
(a page where he can see a list of all his transaction). What do you think ?
We can also implement an amazon-like cart
(see screenchot below)
⏳ How to query states from multiple chains at the same time, not relying only on the injected provider
WIP
I like the idea of the cart, for ongoing transactions, though I suggest that we think of a more unique icon in terms of design. So that is not confused with like a real e-commerce website.
Yes, we already discuss the cart with Mark. Do not worry, here I'm speaking of UX (aka a global fonctionnement), of course we won't be using a cart icon in Fuji (or maybe only the 1st of April 🤔 )
New updates:
✅ Determine library for web3 connection
ethers.js
Update: we won't use wagmi at first.
✅ Determine app state
Update: We'll use xstate
for complex business logic, and react-query
with ethers
for simple query & display.
✅ Using GraphQL for querying Connext transaction status, mainly learn how it works in case it is needed ok
✅ Typescript Of course
❓ State of the transactions, how do we deal with this topic? In single blockchain we have several states of a transaction and going cross chain will require tracking those states on different blockchains. Update: state machine, see i.e this transaction machine
✅ How to query states from multiple chains at the same time, not relying only on the injected provider Experiment sucess to display data from 2 different chains, it was not that difficult.
Investigations:
Todo
Create an app in frontend with