mock examples
This commit is contained in:
parent
4ba723a384
commit
145d52f92e
@ -107,7 +107,7 @@ message ChainRegistrationRecord{
|
||||
string type=3;
|
||||
string version=4;
|
||||
string chain_id=5;
|
||||
string netwrok_id=6;
|
||||
string network_id=6;
|
||||
string genesis_hash=7;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,9 @@
|
||||
record:
|
||||
id: wrn:app:d.boreh.am/dbeditor
|
||||
name: d.boreh.am/dbeditor
|
||||
package:
|
||||
/: QmNg7dcEKAfv8DB355ekYUJDbRVKp27TF7oJ9zSxXoAMy7
|
||||
type: wrn:app
|
||||
version: 0.0.16
|
||||
build: yarn dist
|
||||
displayName: DBDB Editor App
|
9
x/registry/client/testutil/examples/binary_example.yml
Normal file
9
x/registry/client/testutil/examples/binary_example.yml
Normal file
@ -0,0 +1,9 @@
|
||||
record:
|
||||
hash_reference:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
targeted_arch: x86_64
|
||||
runtime_version: go 1.18
|
||||
repo_hash_reference:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
version: 1.0.0
|
||||
type: binary
|
12
x/registry/client/testutil/examples/bot_record_example.yml
Normal file
12
x/registry/client/testutil/examples/bot_record_example.yml
Normal file
@ -0,0 +1,12 @@
|
||||
record:
|
||||
type: wrn:bot
|
||||
version: 1.0.0
|
||||
displayName: Store
|
||||
name: wireline.io/store
|
||||
package:
|
||||
linux:
|
||||
x64:
|
||||
/: QmUE6PALgZbKVT9uQwbqGtckjmo2kniFV2HCqg7B6nDbyB
|
||||
macos:
|
||||
x64:
|
||||
/: QmQqxJRD5yXxbazE5UEgDXKdmK7aFknummgm5xM58pFkm3
|
@ -0,0 +1,12 @@
|
||||
record:
|
||||
name: Laconic
|
||||
ipld_types:
|
||||
- type3
|
||||
- type11
|
||||
- schema2
|
||||
- codec5
|
||||
type: ChainRegistrationRecord
|
||||
version: 0.11.2
|
||||
chain_id: laconic_9000-1
|
||||
network_id: 1392
|
||||
genesis_hash: f6fbe71210275adc7c7ef585a72c065cdb85f0c8d13dea0f229fd7c22d445a26
|
@ -0,0 +1,8 @@
|
||||
record:
|
||||
image_id: 77af4d6b9913
|
||||
binary_hash_reference:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
repo_hash_reference:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
version: 1.0.0
|
||||
type: DockerImage
|
5
x/registry/client/testutil/examples/git_repo_example.yml
Normal file
5
x/registry/client/testutil/examples/git_repo_example.yml
Normal file
@ -0,0 +1,5 @@
|
||||
record:
|
||||
name: cosmos-sdk
|
||||
repo_reference: https://github.com/cosmos/cosmos-sdk
|
||||
description: This is a description string
|
||||
version: 0.46.7
|
@ -0,0 +1,8 @@
|
||||
record:
|
||||
repo_hash_reference:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
js_package_hash_ref:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
version: 1.0.0
|
||||
type: JSPackage
|
||||
name: test-JSPackage
|
7
x/registry/client/testutil/examples/resource_example.yml
Normal file
7
x/registry/client/testutil/examples/resource_example.yml
Normal file
@ -0,0 +1,7 @@
|
||||
record:
|
||||
version: 0.1.29
|
||||
docker:
|
||||
hash: df9cb3caa90fa8240dbeb4c3497f74d19d545897ae256bcafc4d3976c5c7940e
|
||||
url: https://hub.docker.com/layers/dxos/xbox/devnet-unstable-0.1.29/images/sha256-df9cb3caa90fa8240dbeb4c3497f74d19d545897ae256bcafc4d3976c5c7940e
|
||||
name: dxos/xbox:devnet-unstable
|
||||
type: wrn:resource
|
@ -0,0 +1,9 @@
|
||||
record:
|
||||
service_provider_hash_ref:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
auction_hash_ref:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
watcher_hash_ref:
|
||||
/: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
||||
version: 1.0.0
|
||||
type: ResponderContract
|
10
x/registry/client/testutil/examples/service_ipfs_example.yml
Normal file
10
x/registry/client/testutil/examples/service_ipfs_example.yml
Normal file
@ -0,0 +1,10 @@
|
||||
record:
|
||||
type: wrn:service
|
||||
name: example.com/services/ipfs
|
||||
version: 0.0.1
|
||||
service: ipfs
|
||||
description: Helpful description of this IPFS service.
|
||||
ipfs:
|
||||
protocol: ipfs/0.1.0
|
||||
addresses:
|
||||
- "/ip4/192.168.123.56/tcp/4001/p2p/QmR5EQkRx4sLXV3vzgewe3UyXxZJXr4hwL2uwcTScrRtFE"
|
@ -0,0 +1,9 @@
|
||||
record:
|
||||
type: wrn:service
|
||||
name: example.com/services/signal
|
||||
version: 0.0.1
|
||||
service: signal
|
||||
description: Helpful description of this signal service.
|
||||
signal:
|
||||
url: wss://my.host.name/dxos/signal
|
||||
bootstrap: my.host.name:4000
|
@ -0,0 +1,8 @@
|
||||
record:
|
||||
type: wrn:service
|
||||
name: example.com/services/stun
|
||||
version: 0.0.1
|
||||
service: stun
|
||||
description: Helpful description of this STUN service.
|
||||
stun:
|
||||
url: stun:my.host.name:3478
|
10
x/registry/client/testutil/examples/service_turn_example.yml
Normal file
10
x/registry/client/testutil/examples/service_turn_example.yml
Normal file
@ -0,0 +1,10 @@
|
||||
record:
|
||||
type: wrn:service
|
||||
name: example.com/services/turn
|
||||
version: 0.0.1
|
||||
service: turn
|
||||
description: Helpful description of this TURN service.
|
||||
turn:
|
||||
url: turn:my.host.name:3478
|
||||
username: freeturn
|
||||
password: freeturn
|
@ -0,0 +1,15 @@
|
||||
record:
|
||||
metadata:
|
||||
version: 0.32.0
|
||||
chain_hash_reference:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
repo_hash_reference:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
wasm:
|
||||
hash_reference:
|
||||
/: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
||||
metadata:
|
||||
compiler_version: 1.15.0
|
||||
execution_engine_version: 0.16.1
|
||||
version: 1.0.0
|
||||
type: WatcherRegistrationRecord
|
6
x/registry/client/testutil/examples/wns_example.yml
Normal file
6
x/registry/client/testutil/examples/wns_example.yml
Normal file
@ -0,0 +1,6 @@
|
||||
record:
|
||||
name: ashwinp/wns-good
|
||||
type: wrn:xbox
|
||||
version: 0.0.1
|
||||
wns:
|
||||
rpc: tcp://node1.dxos.network:26657
|
@ -60,7 +60,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryParams() {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint: all
|
||||
//nolint:all
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryWhoIs() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
@ -180,7 +180,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryLookup() {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint: all
|
||||
//nolint:all
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryRecordExpiryQueue() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
@ -209,7 +209,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryRecordExpiryQueue() {
|
||||
func(bondId string) {
|
||||
dir, err := os.Getwd()
|
||||
sr.NoError(err)
|
||||
payloadPath := dir + "/service_provider_example.yml"
|
||||
payloadPath := dir + "/examples/service_provider_example.yml"
|
||||
args := []string{
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
@ -252,7 +252,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryRecordExpiryQueue() {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint: all
|
||||
//nolint:all
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryAuthorityExpiryQueue() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
@ -324,7 +324,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryAuthorityExpiryQueue() {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint: all
|
||||
//nolint:all
|
||||
func (s *IntegrationTestSuite) TestGRPCQueryListRecords() {
|
||||
val := s.network.Validators[0]
|
||||
sr := s.Require()
|
||||
@ -353,7 +353,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryListRecords() {
|
||||
func(bondId string) {
|
||||
dir, err := os.Getwd()
|
||||
sr.NoError(err)
|
||||
payloadPath := dir + "/service_provider_example.yml"
|
||||
payloadPath := dir + "/examples/service_provider_example.yml"
|
||||
args := []string{
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
@ -626,7 +626,7 @@ func createRecord(bondID string, s *IntegrationTestSuite) {
|
||||
|
||||
dir, err := os.Getwd()
|
||||
sr.NoError(err)
|
||||
payloadPath := dir + "/service_provider_example.yml"
|
||||
payloadPath := dir + "/examples/service_provider_example.yml"
|
||||
args := []string{
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
|
||||
|
@ -79,7 +79,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() {
|
||||
bondID := GetBondID(s)
|
||||
dir, err := os.Getwd()
|
||||
sr.NoError(err)
|
||||
payloadPath := dir + "/service_provider_example.yml"
|
||||
payloadPath := dir + "/examples/service_provider_example.yml"
|
||||
args := []string{
|
||||
payloadPath, bondID,
|
||||
fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName),
|
||||
|
@ -198,7 +198,7 @@ func (s *IntegrationTestSuite) TestGetCmdSetRecord() {
|
||||
bondID := GetBondID(s)
|
||||
dir, err := os.Getwd()
|
||||
sr.NoError(err)
|
||||
payloadPath := dir + "/service_provider_example.yml"
|
||||
payloadPath := dir + "/examples/service_provider_example.yml"
|
||||
|
||||
tc.args = append([]string{payloadPath, bondID}, tc.args...)
|
||||
}
|
||||
@ -580,7 +580,7 @@ func (s *IntegrationTestSuite) TestGetCmdDissociateBond() {
|
||||
bondID := GetBondID(s)
|
||||
dir, err := os.Getwd()
|
||||
sr.NoError(err)
|
||||
payloadPath := dir + "/service_provider_example.yml"
|
||||
payloadPath := dir + "/examples/service_provider_example.yml"
|
||||
|
||||
args := []string{
|
||||
payloadPath, bondID,
|
||||
@ -822,7 +822,7 @@ func (s *IntegrationTestSuite) TestGetCmdAssociateBond() {
|
||||
bondID := GetBondID(s)
|
||||
dir, err := os.Getwd()
|
||||
sr.NoError(err)
|
||||
payloadPath := dir + "/service_provider_example.yml"
|
||||
payloadPath := dir + "/examples/service_provider_example.yml"
|
||||
|
||||
txArgs := []string{
|
||||
payloadPath, bondID,
|
||||
|
9
x/registry/helpers/examples/app_record_example.yml
Normal file
9
x/registry/helpers/examples/app_record_example.yml
Normal file
@ -0,0 +1,9 @@
|
||||
record:
|
||||
id: wrn:app:d.boreh.am/dbeditor
|
||||
name: d.boreh.am/dbeditor
|
||||
package:
|
||||
/: QmNg7dcEKAfv8DB355ekYUJDbRVKp27TF7oJ9zSxXoAMy7
|
||||
type: wrn:app
|
||||
version: 0.0.16
|
||||
build: yarn dist
|
||||
displayName: DBDB Editor App
|
9
x/registry/helpers/examples/binary_example.yml
Normal file
9
x/registry/helpers/examples/binary_example.yml
Normal file
@ -0,0 +1,9 @@
|
||||
record:
|
||||
hash_reference:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
targeted_arch: x86_64
|
||||
runtime_version: go 1.18
|
||||
repo_hash_reference:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
version: 1.0.0
|
||||
type: binary
|
12
x/registry/helpers/examples/bot_record_example.yml
Normal file
12
x/registry/helpers/examples/bot_record_example.yml
Normal file
@ -0,0 +1,12 @@
|
||||
record:
|
||||
type: wrn:bot
|
||||
version: 1.0.0
|
||||
displayName: Store
|
||||
name: wireline.io/store
|
||||
package:
|
||||
linux:
|
||||
x64:
|
||||
/: QmUE6PALgZbKVT9uQwbqGtckjmo2kniFV2HCqg7B6nDbyB
|
||||
macos:
|
||||
x64:
|
||||
/: QmQqxJRD5yXxbazE5UEgDXKdmK7aFknummgm5xM58pFkm3
|
12
x/registry/helpers/examples/chain_registration_example.yml
Normal file
12
x/registry/helpers/examples/chain_registration_example.yml
Normal file
@ -0,0 +1,12 @@
|
||||
record:
|
||||
name: Laconic
|
||||
ipld_types:
|
||||
- type3
|
||||
- type11
|
||||
- schema2
|
||||
- codec5
|
||||
type: ChainRegistrationRecord
|
||||
version: 0.11.2
|
||||
chain_id: laconic_9000-1
|
||||
network_id: 1392
|
||||
genesis_hash: f6fbe71210275adc7c7ef585a72c065cdb85f0c8d13dea0f229fd7c22d445a26
|
8
x/registry/helpers/examples/docker_image_example.yml
Normal file
8
x/registry/helpers/examples/docker_image_example.yml
Normal file
@ -0,0 +1,8 @@
|
||||
record:
|
||||
image_id: 77af4d6b9913
|
||||
binary_hash_reference:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
repo_hash_reference:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
version: 1.0.0
|
||||
type: DockerImage
|
5
x/registry/helpers/examples/git_repo_example.yml
Normal file
5
x/registry/helpers/examples/git_repo_example.yml
Normal file
@ -0,0 +1,5 @@
|
||||
record:
|
||||
name: cosmos-sdk
|
||||
repo_reference: https://github.com/cosmos/cosmos-sdk
|
||||
description: This is a description string
|
||||
version: 0.46.7
|
8
x/registry/helpers/examples/js_package_example.yml
Normal file
8
x/registry/helpers/examples/js_package_example.yml
Normal file
@ -0,0 +1,8 @@
|
||||
record:
|
||||
repo_hash_reference:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
js_package_hash_ref:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
version: 1.0.0
|
||||
type: JSPackage
|
||||
name: test-JSPackage
|
7
x/registry/helpers/examples/resource_example.yml
Normal file
7
x/registry/helpers/examples/resource_example.yml
Normal file
@ -0,0 +1,7 @@
|
||||
record:
|
||||
version: 0.1.29
|
||||
docker:
|
||||
hash: df9cb3caa90fa8240dbeb4c3497f74d19d545897ae256bcafc4d3976c5c7940e
|
||||
url: https://hub.docker.com/layers/dxos/xbox/devnet-unstable-0.1.29/images/sha256-df9cb3caa90fa8240dbeb4c3497f74d19d545897ae256bcafc4d3976c5c7940e
|
||||
name: dxos/xbox:devnet-unstable
|
||||
type: wrn:resource
|
@ -0,0 +1,9 @@
|
||||
record:
|
||||
service_provider_hash_ref:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
auction_hash_ref:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
watcher_hash_ref:
|
||||
/: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
||||
version: 1.0.0
|
||||
type: ResponderContract
|
10
x/registry/helpers/examples/service_ipfs_example.yml
Normal file
10
x/registry/helpers/examples/service_ipfs_example.yml
Normal file
@ -0,0 +1,10 @@
|
||||
record:
|
||||
type: wrn:service
|
||||
name: example.com/services/ipfs
|
||||
version: 0.0.1
|
||||
service: ipfs
|
||||
description: Helpful description of this IPFS service.
|
||||
ipfs:
|
||||
protocol: ipfs/0.1.0
|
||||
addresses:
|
||||
- "/ip4/192.168.123.56/tcp/4001/p2p/QmR5EQkRx4sLXV3vzgewe3UyXxZJXr4hwL2uwcTScrRtFE"
|
9
x/registry/helpers/examples/service_signal_example.yml
Normal file
9
x/registry/helpers/examples/service_signal_example.yml
Normal file
@ -0,0 +1,9 @@
|
||||
record:
|
||||
type: wrn:service
|
||||
name: example.com/services/signal
|
||||
version: 0.0.1
|
||||
service: signal
|
||||
description: Helpful description of this signal service.
|
||||
signal:
|
||||
url: wss://my.host.name/dxos/signal
|
||||
bootstrap: my.host.name:4000
|
8
x/registry/helpers/examples/service_stun_example.yml
Normal file
8
x/registry/helpers/examples/service_stun_example.yml
Normal file
@ -0,0 +1,8 @@
|
||||
record:
|
||||
type: wrn:service
|
||||
name: example.com/services/stun
|
||||
version: 0.0.1
|
||||
service: stun
|
||||
description: Helpful description of this STUN service.
|
||||
stun:
|
||||
url: stun:my.host.name:3478
|
10
x/registry/helpers/examples/service_turn_example.yml
Normal file
10
x/registry/helpers/examples/service_turn_example.yml
Normal file
@ -0,0 +1,10 @@
|
||||
record:
|
||||
type: wrn:service
|
||||
name: example.com/services/turn
|
||||
version: 0.0.1
|
||||
service: turn
|
||||
description: Helpful description of this TURN service.
|
||||
turn:
|
||||
url: turn:my.host.name:3478
|
||||
username: freeturn
|
||||
password: freeturn
|
15
x/registry/helpers/examples/watcher_registraion_example.yml
Normal file
15
x/registry/helpers/examples/watcher_registraion_example.yml
Normal file
@ -0,0 +1,15 @@
|
||||
record:
|
||||
metadata:
|
||||
version: 0.32.0
|
||||
chain_hash_reference:
|
||||
/: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||
repo_hash_reference:
|
||||
/: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||
wasm:
|
||||
hash_reference:
|
||||
/: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
||||
metadata:
|
||||
compiler_version: 1.15.0
|
||||
execution_engine_version: 0.16.1
|
||||
version: 1.0.0
|
||||
type: WatcherRegistrationRecord
|
6
x/registry/helpers/examples/wns_example.yml
Normal file
6
x/registry/helpers/examples/wns_example.yml
Normal file
@ -0,0 +1,6 @@
|
||||
record:
|
||||
name: ashwinp/wns-good
|
||||
type: wrn:xbox
|
||||
version: 0.0.1
|
||||
wns:
|
||||
rpc: tcp://node1.dxos.network:26657
|
Loading…
Reference in New Issue
Block a user