Oasis Ethereum ParaTime
Testnet deployment
Last updated
Was this helpful?
Testnet deployment
Last updated
Was this helpful?
If we want to deploy the smart contract for test purposes, we can use the Oasis Ethereum ParaTime, let's view the required steps from the following page:
The steps we need to follow, are:
Click on "Accounts", and use as many as you want. To test the full functionality of Akasify, we will use three, one for each role (administrator, organization, and beneficiary). If you already have some accounts, you can import them too.
Write and deploy the smart contract.
If you plan to do it using the Buidl IDE, then follow the next steps:
Select the "Contract" button on the left side of your screen.
Select your Solidity version from the dropdown on the upper left side of the screen.
Write the smart contract on the right screen.
Once it's ready you can click on "Compile" on the upper left side of your screen.
If your code has no error it should show the ABI code on the left side of the screen.
Finally, depending on your smart contract constructor arguments you would need to add the respective arguments and you can click on "Deploy".
This will take your default account, which should have enough funds to deploy your contract, and ready! you have your smart contract on the Oasis Ethereum ParaTime.
If you plan to do it using your local project, then follow the next steps:
Open your Metamask plugin.
Select networks.
Click on "Custom RPC", and for the new network let's add the following values:
Network Name: ParaTime
Chain ID: 69
Click on save, and ready, we have connected our Metamask!
Do you remember the previous three accounts that will interact with the smart contract? Well, now we can import them into Metamask connected to the ParaTime network.
Now you should be able to see the OETH faucet fund deposited into these accounts in the previous steps.
Ok, so now we're ready with our Metamask properly connect to the Oasis Ethereum ParaTime, with our accounts imported, and all of them with enough funds to interact with the contract. Now let's deploy our contract!
Depending on the stack you're using, this configuration could slightly change. In this tutorial, we will use Hardhat to deploy the smart contract.
Let's add a new network configuration into our hardhat config file
Let's add the following network config:
You can replace the mnemonic()
function for a string of the mnemonic works like this:
"word_x word_y word_z ...".trim()
Please, remember the address from this mnemonic will be the creator of the smart contract, and it should have enough OETH funds to deploy the smart contract on the blockchain.
Now, we just change the default network (usually localhost) for the one created paratime.
And ready! we've deployed our smart contract into the Oasis Ethereum ParaTime!
Go to the .
Fund the accounts that will interact with the smart contract storing any information. For this, copy the eth address and fund it in the .
New RPC URL: