0.7.63 • Published 5 months ago

cehali-test-cli v0.7.63

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

RedStone CLI

RedStone CLI is a tool that helps to deploy all necessary contracts for the RedStone Push Model and run the relayer responsible for pushing prices on-chain

Instruction

1. Install RedStone CLI in the separate folder (there will be a few files autogenerated)
npm i @redstone-finance/cli
2. Run initialization script which will prepare files for CLI and run it afterwards
npx redstone-cli init
3. Contracts deploying can be done right after initialization or later by running the command below to start CLI
npx redstone-cli
4. Deploy all necessary RedStone contracts responsible for updating prices on-chain and interfaces for reading prices by selecting Deploy contracts option in the CLI menu. Then pass proper values for parameters which will be displayed
ParamDescription
Network nameNetwork name on which contract will be deployed, also basic name for all files autogenerated (needs to be used the same through whole process)
Network RPC URLRPC URL used to deploy contract
Proxy Admin OwnerWallet Address that will be used to run contract upgrade (contracts are deployed behind a proxy to make them upgradable)
Private keyWallet private key used for deployment
5. When all contracts are deployed start the relayer by running CLI using the command below and select the Run relayer option in the CLI menu. Then pass proper values for parameters which will be displayed. Relayer will run straight away in the same process as CLI. Currently default update conditions are deviation - 0.5%, heartbeat - 6h, adjusting them will come in the next release
npx redstone-cli
ParamOptionalityDefault valueDescription
Network namerequiredNetwork name on which contract will be deployed, also basic name for all files autogenerated (needs to be used the same through whole process)
Network RPC URLrequiredRPC URLs used to send update transactions, can be multiple to increase robustness, comma-separated e.g. https://rpc-url-1.com,https://rpc-url-2.com
Relayer iteration intervaloptional5000Time interval in which the relayer tries to update prices if update conditions are met
Expected transaction delivery time in millisecondsoptional5000Time in which it is expected that valid transaction can be mined, typically 2x avg block time
Are fees two dimensionaloptionalyesYes if network has two dimensional fees (like Arbitrum or ZKSync based networks), more info here
Gas limit for update transactionoptional750000Gas limit used for update transaction
Private keyrequiredWallet private key used for updating prices on-chain
0.7.62

5 months ago

0.7.61

5 months ago

0.7.63

5 months ago

0.7.60

5 months ago

0.7.55

5 months ago

0.7.57

5 months ago

0.7.56

5 months ago

0.7.59

5 months ago

0.7.58

5 months ago

0.7.54

7 months ago

0.7.53

7 months ago

0.7.52

7 months ago

0.7.51

7 months ago

0.7.50

7 months ago

0.7.49

7 months ago

0.7.48

7 months ago

0.7.47

7 months ago

0.7.46

7 months ago

0.7.45

7 months ago

0.7.44

7 months ago

0.7.43

7 months ago

0.7.42

7 months ago

0.7.41

7 months ago

0.7.40

7 months ago

0.7.39

7 months ago

0.7.38

7 months ago

0.7.37

7 months ago

0.7.36

7 months ago

0.7.35

7 months ago

0.7.34

7 months ago

0.7.33

7 months ago

0.7.32

7 months ago

0.7.31

7 months ago

0.7.30

7 months ago

0.7.29

7 months ago

0.7.28

7 months ago

0.7.27

7 months ago

0.7.26

7 months ago

0.7.25

7 months ago

0.7.24

7 months ago

0.7.23

7 months ago

0.7.22

7 months ago

0.7.21

7 months ago

0.7.20

7 months ago

0.7.19

7 months ago

0.7.18

7 months ago

0.7.17

7 months ago

0.7.16

7 months ago

0.7.15

7 months ago

0.7.14

7 months ago

0.7.13

7 months ago

0.7.12

7 months ago

0.7.11

7 months ago

0.7.10

7 months ago

0.7.9

7 months ago

0.7.8

7 months ago

0.7.7

7 months ago

0.7.6

7 months ago

0.7.5

7 months ago

0.7.4

7 months ago

0.7.3

7 months ago

0.7.2

7 months ago