Skip to content

Commit

Permalink
fixing avalanche specific use case for websocket (lavanet#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlavanet authored Jun 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 38c56bd commit 1f1c0a8
Showing 7 changed files with 308 additions and 26 deletions.
14 changes: 14 additions & 0 deletions config/provider_examples/avalanch_internal_paths_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# this example show cases how you can setup Avalanche
endpoints:
- api-interface: jsonrpc
chain-id: AVAX
network-address: 127.0.0.1:2221
node-urls:
- url: ws://127.0.0.1:3333/C/rpc/ws
internal-path: "/C/rpc" # c chain like specified in the spec
- url: https://127.0.0.1:3334/C/avax
internal-path: "/C/avax" # c/avax like specified in the spec
- url: https://127.0.0.1:3335/X
internal-path: "/X" # x chain like specified in the spec
- url: https://127.0.0.1:3336/P
internal-path: "/P" # p chain like specified in the spec
238 changes: 238 additions & 0 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
@@ -31242,6 +31242,26 @@ paths:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's
behaviour with the selected providers feature
selected_providers:
type: array
items:
type: string
title: >-
protobuf expected in YAML format: used "moretags" to
simplify parsing
@@ -31274,6 +31294,26 @@ paths:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's
behaviour with the selected providers feature
selected_providers:
type: array
items:
type: string
title: >-
protobuf expected in YAML format: used "moretags" to
simplify parsing
@@ -31368,6 +31408,26 @@ paths:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's
behaviour with the selected providers feature
selected_providers:
type: array
items:
type: string
title: >-
protobuf expected in YAML format: used "moretags" to
simplify parsing
@@ -31400,6 +31460,26 @@ paths:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's
behaviour with the selected providers feature
selected_providers:
type: array
items:
type: string
title: >-
protobuf expected in YAML format: used "moretags" to
simplify parsing
@@ -54952,6 +55032,8 @@ definitions:
type: string
moniker:
type: string
badge_signer_address:
type: string
lavanet.lava.pairing.Metadata:
type: object
properties:
@@ -55760,6 +55842,26 @@ definitions:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's behaviour with the
selected providers feature
selected_providers:
type: array
items:
type: string
title: 'protobuf expected in YAML format: used "moretags" to simplify parsing'
lavanet.lava.projects.MsgAddKeysResponse:
type: object
@@ -55824,6 +55926,26 @@ definitions:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's behaviour with
the selected providers feature
selected_providers:
type: array
items:
type: string
title: 'protobuf expected in YAML format: used "moretags" to simplify parsing'
used_cu:
type: string
@@ -55854,6 +55976,26 @@ definitions:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's behaviour with
the selected providers feature
selected_providers:
type: array
items:
type: string
title: 'protobuf expected in YAML format: used "moretags" to simplify parsing'
snapshot:
type: string
@@ -55923,6 +56065,26 @@ definitions:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's behaviour
with the selected providers feature
selected_providers:
type: array
items:
type: string
title: >-
protobuf expected in YAML format: used "moretags" to simplify
parsing
@@ -55955,6 +56117,26 @@ definitions:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's behaviour
with the selected providers feature
selected_providers:
type: array
items:
type: string
title: >-
protobuf expected in YAML format: used "moretags" to simplify
parsing
@@ -56017,6 +56199,26 @@ definitions:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's behaviour
with the selected providers feature
selected_providers:
type: array
items:
type: string
title: >-
protobuf expected in YAML format: used "moretags" to simplify
parsing
@@ -56049,6 +56251,26 @@ definitions:
max_providers_to_pair:
type: string
format: uint64
selected_providers_mode:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's behaviour
with the selected providers feature
selected_providers:
type: array
items:
type: string
title: >-
protobuf expected in YAML format: used "moretags" to simplify
parsing
@@ -56063,6 +56285,22 @@ definitions:
description: params holds all the parameters of this module.
type: object
description: QueryParamsResponse is response type for the Query/Params RPC method.
lavanet.lava.projects.SELECTED_PROVIDERS_MODE:
type: string
enum:
- ALLOWED
- MIXED
- EXCLUSIVE
- DISABLED
default: ALLOWED
description: |-
- ALLOWED: no providers restrictions
- MIXED: use the selected providers mixed with randomly chosen providers
- EXCLUSIVE: use only the selected providers
- DISABLED: selected providers feature is disabled
title: >-
the enum below determines the pairing algorithm's behaviour with the
selected providers feature
lavanet.lava.spec.ApiInterface:
type: object
properties:
Loading

0 comments on commit 1f1c0a8

Please sign in to comment.