Inspiration
Users need to pay native tokens to the networks when trying to use their decentralized storage services. Therefore, It is complicated for a new user to try the decentralized storage services.
What it does
SAO Network introduced a new role, Payment Gateway, to help users to use any EVM-based chain’s native tokens to pay for the storage services. For example, on the Polygon chain, users can pay MATIC to use SAO Network storage service, and the Payee contract will receive MATIC and generate storage payment events. Then SAO Payment Gateway will send the storage request to the network.
How we built it
- get off-chain Price Feed of the token and calculate token value
- call contract to create payment request
- listen to contract event and check storage request status via Chainlink Functions
- integrate CCIP to enable multi-chain token payment: pay native tokens (eg. ETH/MATIC) on other - chains (eg.BNB chain).
Challenges we ran into
Need to use multiple programming languages and tools to develop the functions
Accomplishments that we’re proud of
- integrated Chainlink Price Feed, Functions and CCIP successfully.
- provided convenient storage service to the community.
What we learned
We learned how to use Chainlink to empower our service. The example codes and tools from the Chainlink team are very helpful for our development, which is a very good technical development guide and is worth learning from.
What’s next for SAO Network
SAO Network will improve the smart contract code and optimize the payment workflow, and then deploy this multi-chain payment gateway to the mainnet.
Log in or sign up for Devpost to join the conversation.