Improved Prepayment, VRF, And Request-Response Contracts

Orakl Network
2 min readOct 31, 2023

Orakl Network pays close attention to the feedback and suggestions shared by its users. Recently, a query was raised regarding the option to use fiat or other crypto currencies in addition to KLAY for payments. We have taken action to accommodate this request by enhancing the Prepayment contract. Following a thorough code audit, we are pleased to announce that we are now in the process of deploying the updated versions of the Prepayment, VRFCoordinator, and RequestResponseCoordinator contracts.

Below, you can find a table displaying old and newly deployed contracts on both Baobab and Cypress networks.

Baobab

| contract                   |                                        old |                                        new |
|----------------------------+--------------------------------------------+--------------------------------------------|
| Prepayment | 0xf37a736b476fCEaB261371A3B3B330772630b0bF | 0x8d3A1663d10eEb0bC9C9e537e1BBeA69383194e7 |
| VRFCoordinator | 0x6B4c0b11bd7fE1E9e9a69297347cFDccA416dF5F | 0xDA8c0A00A372503aa6EC80f9b29Cc97C454bE499 |
| RequestResponseCoordinator | 0x9c73342afD279Cb3106a8F45788973F512d9e40a | 0x5fe8a7445bFDB2Cd6d9f1DcfB3B33D8c365FFdB0 |

Cypress

| contract                   |                                        old |                                        new |
|----------------------------+--------------------------------------------+--------------------------------------------|
| Prepayment | 0xFD8f232648Dc41FA425214646e0290B9AB6014ED | 0xc2C88492Cf7e5240C3EB49353539E75336960600 |
| VRFCoordinator | 0x55048101797D0D8B812e9ED3854AE90b69E6642A | 0x3F247f70DC083A2907B8E76635986fd09AA80EFb |
| RequestResponseCoordinator | 0x31bfa67e64001330a84FBec1A6A0E4F85538eA89 | 0x159F3BB6609B4C709F15823F3544032942106042 |

Today, on October 31, 2023, we added new listeners and reporters to support new contract deployments. The old deployments are still functional but will soon be deprecated. The frontend has been updated with the new contracts and no longer displays accounts generated in the old system.

If you are uncertain about whether you still have KLAY remaining in your old account on either Baobab or Cypress, you can utilize the following commands to check. Each account is identified by an account ID of type uint64. Without knowledge of the account ID, you will be unable to access account details.

The scripts below require cast, a Foundry’s command-line tool for performing Ethereum RPC calls. You can follow installation instructions at https://book.getfoundry.sh/getting-started/installation. Specify your account ID by assigning it to ACCOUNT_ID

Baobab

ACCOUNT_ID=
cast call \
0xf37a736b476fCEaB261371A3B3B330772630b0bF \
"getAccount(uint64)(uint256 balance, uint64 reqCount, address owner, address[] memory consumers, uint8 accType)" \
${ACCOUNT_ID} \
--rpc-url https://public-en-baobab.klaytn.net

Cypress

ACCOUNT_ID=
cast call \
0xFD8f232648Dc41FA425214646e0290B9AB6014ED \
"getAccount(uint64)(uint256 balance, uint64 reqCount, address owner, address[] memory consumers, uint8 accType)" \
${ACCOUNT_ID} \
--rpc-url https://public-en-cypress.klaytn.net

The first line of the output corresponds to the remaining balance in the account. If you discover that there is a balance left in your account, you can securely withdraw it using the withdraw(uint64 accId, uint256 amount) function from the Prepayment contract. If you require assistance with withdrawing your funds, please do not hesitate to contact us at business@orakl.network.

New To Orakl Network?

Orakl Network is an easy to use native token oracle that supports Verifiable Random Functions (VRF), Request-Response and Data Feed. You can learn about each of these functionalities at our documentation or dive directly to code with curated hands-on tutorials for each of our services: vrf-consumer, request-response-consumer and data-feed-consumer.

How Do I Find Out More About Orakl Network?

Twitter | Medium | Docs | Website | GitHub

--

--

Orakl Network

Orakl Network is a decentralized oracle network that allows smart contracts to securely access off-chain data and other resources.