|
| 1 | +# Market Client Configurations |
| 2 | + |
| 3 | +A typical configuration of `market-client` is as follows... |
| 4 | + |
| 5 | +``` |
| 6 | +
|
| 7 | +Simultaneous Transfers For Retrieval = 20 |
| 8 | +Simultaneous Transfers For Storage = 20 |
| 9 | +
|
| 10 | +[Default MarketAddress] |
| 11 | + Addr = "t3qkgm5h7nmusacfggd744w7fdj45rn6iyl7n6s6lr34t4qlfebiphmm3vxtwc4a4acqi4nv3pqk6h7ddqqz5q" |
| 12 | + Account = "" |
| 13 | +
|
| 14 | +[API] |
| 15 | + ListenAddress = "/ip4/127.0.0.1/tcp/41231/ws" |
| 16 | + RemoteListenAddress = "" |
| 17 | + Secret = "" |
| 18 | + Timeout = "30s" |
| 19 | +
|
| 20 | +[Libp2p] |
| 21 | + ListenAddresses = ["/ip4/0.0.0.0/tcp/34123", "/ip6/::/tcp/0"] |
| 22 | + AnnounceAddresses = [] |
| 23 | + NoAnnounceAddresses = [] |
| 24 | + PrivateKey = "" |
| 25 | +
|
| 26 | +[Node] |
| 27 | + Url = "/ip4/192.168.200.106/tcp/3453" |
| 28 | + Token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJwZXJtIjoiYWRtaW4iLCJleHQiOiIifQ.0fylyMSNjp8dkTrCLYkFQSjO9FokDKXrl5dqGpMDaOE" |
| 29 | +
|
| 30 | +[Messager] |
| 31 | + Url = "" |
| 32 | + Token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJwZXJtIjoiYWRtaW4iLCJleHQiOiIifQ.0fylyMSNjp8dkTrCLYkFQSjO9FokDKXrl5dqGpMDaOE" |
| 33 | +
|
| 34 | +[Signer] |
| 35 | + Type = "" |
| 36 | + Url = "" |
| 37 | + Token = "" |
| 38 | +
|
| 39 | +``` |
| 40 | + |
| 41 | +Among them, it can be divided into three parts: 1) client network configuration, 2) configuration of Venus chain service components and 3) other configurations |
| 42 | + |
| 43 | +## Market Client network configuration |
| 44 | + |
| 45 | +This part of the configuration determines the interface between the `market client` and external actors |
| 46 | + |
| 47 | +### [API] |
| 48 | + |
| 49 | +This section defines the external interface of `market-client` |
| 50 | + |
| 51 | +``` |
| 52 | +[API] |
| 53 | +# market-client provides the address where the service listens |
| 54 | +# String type, required, default: "/ip4/127.0.0.1/tcp/41235" |
| 55 | +ListenAddress = "/ip4/127.0.0.1/tcp/41235" |
| 56 | +
|
| 57 | +# reserved text |
| 58 | +RemoteListenAddress = "" |
| 59 | +
|
| 60 | +# key used for encrypted communication |
| 61 | +# String type, optional, automatically generated none is supplied |
| 62 | +Secret = "878f9c1f88c6f68ee7be17e5f0848c9312897b5d22ff7d89ca386ed0a583da3c" |
| 63 | +
|
| 64 | +# reserved text |
| 65 | +Timeout = "30s" |
| 66 | +``` |
| 67 | + |
| 68 | +### [Libp2p] |
| 69 | + |
| 70 | +The communication address used for P2P network |
| 71 | + |
| 72 | +``` |
| 73 | +[Libp2p] |
| 74 | +# Listening network address |
| 75 | +# string array, required, default: ["/ip4/0.0.0.0/tcp/58418", "/ip6/::/tcp/0"] |
| 76 | +ListenAddresses = ["/ip4/0.0.0.0/tcp/58418", "/ip6/::/tcp/0"] |
| 77 | +
|
| 78 | +# reserved text |
| 79 | +AnnounceAddresses = [] |
| 80 | +
|
| 81 | +# reserved text |
| 82 | +NoAnnounceAddresses = [] |
| 83 | +
|
| 84 | +# Private key for p2p encrypted communication |
| 85 | +# string, optional, automatically generated if none is supplied |
| 86 | +PrivateKey = "08011240ae580daabbe087007d2b4db4e880af10d582215d2272669a94c49c854f36f99c35" |
| 87 | +``` |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | +## Venus Chain Service Configuration |
| 92 | + |
| 93 | +When the `market-client` is connected to the `venus components`, the API of the related component needs to be configured. |
| 94 | + |
| 95 | +### [Node] |
| 96 | + |
| 97 | +Venus chain service access configuration |
| 98 | + |
| 99 | +``` |
| 100 | +[Node] |
| 101 | +# Entrance of the chain service |
| 102 | +# String type, mandatory, can also be configured directly through the --node-url flag of the command line |
| 103 | +Url = "/ip4/192.168.200.128/tcp/3453" |
| 104 | +
|
| 105 | +# Authentication token of Venus series components |
| 106 | +# String type, mandatory, can also be configured directly through the --auth-token flag of the command line |
| 107 | +Token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiZm9yY2VuZXQtbnYxNiIsInBlcm0iOiJhZG1pbiIsImV4dCI6IiJ9.PuzEy1TlAjjNiSUu_tbHi2XPUritDLm9Xf5UW3MHRe8" |
| 108 | +
|
| 109 | +``` |
| 110 | + |
| 111 | + |
| 112 | +### [Messager] |
| 113 | + |
| 114 | +`venus-messager` service access configuration |
| 115 | + |
| 116 | +``` |
| 117 | +[Messager] |
| 118 | +# Message service entry |
| 119 | +# String type, mandatory, can also be configured directly through the --messager-url flag on the command line |
| 120 | +Url = "/ip4/192.168.200.128/tcp/39812/" |
| 121 | +
|
| 122 | +# Authentication token of venus series components |
| 123 | +# String type, mandatory, can also be configured directly through the --auth-token flag of the command line |
| 124 | +Token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiZm9yY2VuZXQtbnYxNiIsInBlcm0iOiJhZG1pbiIsImV4dCI6IiJ9.PuzEy1TlAjjNiSUu_tbHi2XPUritDLm9Xf5UW3MHRe8" |
| 125 | +``` |
| 126 | + |
| 127 | + |
| 128 | +### [Signer] |
| 129 | + |
| 130 | +The Venus component that provide signing services |
| 131 | +Only signature services of `wallet` type can be used in `market-client` |
| 132 | + |
| 133 | +``` |
| 134 | +[Signer] |
| 135 | +# Type of signature service component |
| 136 | +# String type can only be "wallet" |
| 137 | +Type = "wallet" |
| 138 | +
|
| 139 | +# Signature service entry |
| 140 | +# String type, mandatory, can also be configured directly through the --signer-url flag on the command line |
| 141 | +Url = "/ip4/192.168.200.128/tcp/5678/" |
| 142 | +
|
| 143 | +# wallet token for authentication |
| 144 | +# string type, mandatory |
| 145 | +Token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiZm9yY2VuZXQtbnYxNiIsInBlcm0iOiJhZG1pbiIsImV4dCI6IiJ9.PuzEy1TlAjjNiSUu_tbHi2XPUritDLm9Xf5UW3MHRe8" |
| 146 | +``` |
| 147 | + |
| 148 | + |
| 149 | +## Other configuration |
| 150 | + |
| 151 | +``` |
| 152 | +# Get the maximum number of retrieval request for simultaneous transfers |
| 153 | +# Integer type Default: 20 |
| 154 | +Simultaneous Transfers For Retrieval = 20 |
| 155 | +
|
| 156 | +# Store the maximum number of simultaneous transfers of storage deals |
| 157 | +# Integer type Default: 20 |
| 158 | +Simultaneous Transfers For Storage = 20 |
| 159 | +
|
| 160 | +# The default address of the current market-client |
| 161 | +# String type, optional, can also be configured directly through the --addr flag of the command line |
| 162 | +DefaultMarketAddress = "t3qkgm5h7nmusacfggd744w7fdj45rn6iyl7n6s6lr34t4qlfebiphmm3vxtwc4a4acqi4nv3pqk6h7ddqqz5q:username" |
| 163 | +``` |
0 commit comments