Documentation
¶
Index ¶
- func Exists(cpPath string) bool
- func GenerateAndUpdateConfigFile(cpRepoPath string, multiAddress, nodeName string, port int) error
- func GetRpcByNetWorkName() (string, error)
- func InitConfig(cpRepoPath string, standalone bool) error
- type API
- type CONTRACT
- type ComputeNode
- type HUB
- type LOG
- type MCS
- type Pricing
- type RPC
- type Registry
- type UBI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAndUpdateConfigFile ¶ added in v0.6.0
func GetRpcByNetWorkName ¶ added in v0.6.0
func InitConfig ¶
Types ¶
type CONTRACT ¶
type CONTRACT struct { UpgradeName string SwanToken string `toml:"SWAN_CONTRACT"` CpAccountRegister string `toml:"REGISTER_CP_CONTRACT"` JobCollateral string `toml:"SWAN_COLLATERAL_CONTRACT"` JobManager string `toml:"SWAN_JOB_CONTRACT"` JobManagerCreated uint64 `toml:"JobManagerCreated"` TaskRegister string `toml:"REGISTER_TASK_CONTRACT"` ZkCollateral string `toml:"ZK_COLLATERAL_CONTRACT"` Sequencer string `toml:"SEQUENCER_CONTRACT"` EdgeTaskPayment string `toml:"EDGE_TASK_PAYMENT"` EdgeTaskPaymentCreated uint64 `toml:"EdgeTaskPaymentCreated"` JobCollateralUbiZero string `toml:"SWAN_COLLATERAL_UBI_ZERO_CONTRACT"` ZkCollateralUbiZero string `toml:"ZK_COLLATERAL_UBI_ZERO_CONTRACT"` }
type ComputeNode ¶
type ComputeNode struct { API API UBI UBI LOG LOG HUB HUB MCS MCS Registry Registry RPC RPC CONTRACT CONTRACT `toml:"CONTRACT,omitempty"` }
ComputeNode is a compute node config
func GetConfig ¶
func GetConfig() *ComputeNode
Click to show internal directories.
Click to hide internal directories.