Once the validation contract is deployed, the state variables can be accessed by querying from a dApp. Similarly multiple validation contracts can be created for different in-built oracle scripts. The IBridge interface has a method called `relayAndVerify()` that verifies the values being updated each time in the validation contract. The `update()` method in the validation contract has the logic to update the state variables. The EVM proof obtained from querying the oracle script has to be passed to the `update()` method. Each time a value is updated, the BandChain contract deployed on Polygon verifies the data before storing it in the contract state variable.
0 commit comments