Buy tokens with Wise by creating a proof of the receipt on Flare Data Connnector
The web2json oracle from flare is being used to create a proof of a receipt to the owner of tokens in a contract. The buyer is able to submit the proof to withdraw the tokens instantly from the contract. Sellers need to deposit tokens into the contract and wait for a buyer to execute the transaction.
The project uses the Wise app and the Wise api to pay for tokens, and the Flare Data Connector to prove that the correct transaction was made on Wise. The project is deployed on Flare testnet because the FDC is not on Flare mainnet yet. I had to switch from ethers to web3 because there was an issue with how structs are being handled in ethers.