mlabs-haskell / cardano-open-oracle-protocol

COOP - Cardano open oracle protocol
Apache License 2.0
21 stars 3 forks source link

How can I deploy on Preview or Preprod network #90

Open ironmask285 opened 3 months ago

ironmask285 commented 3 months ago

I want to initialize COOP on public testnet (preview or preprod). Please help me

ross-spencer commented 3 months ago

@ironmask285 how far have you got with the local-cluster?

ironmask285 commented 3 months ago

yah, We have successfully deployed on the local cluster, and now we intend to test deploy on the public testnet. Can you provide further guidance for us? @ross-spencer image

ross-spencer commented 3 months ago

Great work!

This is from our preprod setup, but you should only need to change three things:

  1. Run Cardano node 1.35.5
  2. Point plutus-chain-index at the node: plutus-chain-index --socket-path=$CARDANO_NODE_SOCKET_PATH --port=9084 --network-id 1 --db-path /path/to/chain-index.db start-index
  3. Ensure pabConfig.yaml is right, it should be in the resources/ folder in your coop-tutorial folder. And looks as follows, the network ID should be 1 (it may already be so).
-- Calling the cli locally or through an ssh connection
cliLocation:   local
chainIndexUrl: "http://localhost:9084"
networkId:     1

-- Directory name of the script and data files
scriptFileDir:      ".local-cluster/scripts"

-- Directory for the signing key file(s)
signingKeyFileDir:  ".wallets"

-- Directory where the encoded transaction files will be saved
txFileDir:          ".local-cluster/txs"

-- | Directory name of metadata files
metadataDir:         ".local-cluster/metadata"

-- Dry run mode will build the tx, but skip the submit step
dryRun:             false
logLevel:           debug
port:               9080
enableTxEndpoint:   true

-- Save some stats during contract run (only transactions execution budgets supported atm)
collectStats: true

-- Save logs from contract execution: pab request logs and contract logs
collectLogs: true
ironmask285 commented 3 months ago

Currently, it only supports Cardano node version 1.35.5. Can I use newer versions of the Cardano node? @ross-spencer

ross-spencer commented 3 months ago

Currently, it only supports Cardano node version 1.35.5.

Unfortunately it is anchored to this version for now.