-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from BirthdayResearch/cuong/edit-readme
chore: Edit readme and rename files
- Loading branch information
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
# DeFiChain <-> DeFiMetaChain State Relayer | ||
|
||
A project comprising of smart contracts and scripts to port certain information from DeFiChain to DeFiMetaChain | ||
|
||
### Directory Structure | ||
|
||
``` | ||
├── bot // <-- Logic for the bot + integration test | ||
├── contracts // <- The smart contracts + example solidity usage | ||
├── scripts // <- Deployment scripts + gas estimation | ||
├── tests // <- Smart contract tests | ||
├── containers // <- Containers for integration tests | ||
``` | ||
|
||
### How to use the package to update information on DeFiMetaChain | ||
|
||
```typescript | ||
import {handler} from "@waveshq/state-relayer-bot"; | ||
import { EnvironmentNetwork } from "@waveshq/walletkit-core" | ||
|
||
handler({ | ||
testGasCost: false, | ||
urlNetwork: /* Defi Meta Chain RPC Provider URL */, | ||
envNetwork: EnvironmentNetwork.MainNet, | ||
contractAddress: /* YOUR STATE RELAYER PROXY ADDRESS */, | ||
signer: /* signer object */, | ||
gasUpdateDEX: /* gas limit for dex update transaction */, | ||
gasUpdateMaster: /* gas limit for master node update transaction */, | ||
gasUpdateVault: /* gas limit for vault update transaction */ | ||
}) | ||
``` | ||
|
||
### Instruction to consume the smart contract information | ||
|
||
Examples on how to consume the information exposed by the smart contract is showcased via [this folder](./contracts/example) |
File renamed without changes.
File renamed without changes.
File renamed without changes.