Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #247 from vegaprotocol/release/v0.38.0
Browse files Browse the repository at this point in the history
Release v0.38.0
  • Loading branch information
ashleyvega authored Jun 11, 2021
2 parents 0ce334e + e9837b9 commit 4b50fbc
Show file tree
Hide file tree
Showing 165 changed files with 63,387 additions and 47,616 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/new_issues_to_sprint_project_board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---

name: Auto Assign New Issues to Project

"on":
issues:
types: [opened]

jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Add new issues to Core Current Sprint project
steps:
- uses: alex-page/github-project-automation-plus@50502d399cbb98cefe7ce1f99f93f78c6756562e
with:
project: Current Sprints
column: Incoming to triage
repo-token: ${{ secrets.GH_NEW_CARD_TO_PROJECT }}
17 changes: 16 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
- name: Type-check with mypy
run: |
command -v mypy 1>/dev/null || pip install mypy
sudo apt update
sudo env DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends python3-virtualenv
make mypy
- name: Test with pytest
Expand Down Expand Up @@ -78,6 +79,19 @@ jobs:
command -v pipenv 1>/dev/null || pip install pipenv
cd grpc/examples/python
make
if: ${{ matrix.python-version == '3.9' }}

- name: Run example scripts for GraphQL
env:
NODE_URL_REST: ${{ secrets.NODE_URL_REST }}
WALLET_NAME: ${{ secrets.WALLET_NAME }}
WALLET_PASSPHRASE: ${{ secrets.WALLET_PASSPHRASE }}
WALLETSERVER_URL: ${{ secrets.WALLETSERVER }}
run: |
command -v pipenv 1>/dev/null || pip install pipenv
cd graphql/examples/python
make
if: ${{ matrix.python-version == '3.9' }}

- name: Run example scripts for REST
env:
Expand All @@ -89,6 +103,7 @@ jobs:
command -v pipenv 1>/dev/null || pip install pipenv
cd rest/examples/python
make
if: ${{ matrix.python-version == '3.9' }}

- name: Push release to PyPI
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.8' }}
Expand Down
46 changes: 28 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ default:
preproto:
@if test -z "$(VEGACORE)" ; then echo "Please set VEGACORE" ; exit 1 ; fi
@rm -rf proto && mkdir proto
@for x in proto proto/api proto/commands/v1 proto/events/v1 proto/oracles/v1 proto/tm ; do \
@for x in proto proto/api proto/commands/v1 proto/events/v1 proto/oracles/v1 proto/tm proto/wallet/v1 ; do \
mkdir -p "$$x" && \
java_pkg="$$(echo "$${x//proto/}" | tr / .)" && \
find "$(VEGACORE)/$$x" -maxdepth 1 -name '*.proto' -exec cp '{}' "$$x/" ';' && \
Expand All @@ -21,6 +21,11 @@ preproto:
@find proto -name '*.proto' -print0 | xargs -0 sed --in-place -re 's#[ \t]+$$##'
@(cd "$(VEGACORE)" && git describe --tags) >proto/from.txt
@cp -a "$(VEGACORE)/gateway/rest/grpc-rest-bindings.yml" ./rest/
@core_protos_fn="$$(mktemp -t protofiles-core-XXXXXX.txt)" && \
api_protos_fn="$$(mktemp -t protofiles-api-XXXXXX.txt)" && \
find "$(VEGACORE)/proto" -name '*.proto' | sed -e 's#^$(VEGACORE)/##' | sort >"$$core_protos_fn" && \
find "./proto" -name '*.proto' | sed -e 's#^./##' | sort >"$$api_protos_fn" && \
diff "$$core_protos_fn" "$$api_protos_fn"

.PHONY: buf-build
buf-build:
Expand Down Expand Up @@ -141,10 +146,11 @@ test-python:

.PHONY: spellcheck
spellcheck:
@if ! test -d "/tmp/venv-pyspelling" ; then \
virtualenv /tmp/venv-pyspelling || exit 1 ; \
@venv="/tmp/venv-$$USER-vega-api-pyspelling" && \
if ! test -d "$$venv" ; then \
virtualenv "$$venv" || exit 1 ; \
fi && \
source /tmp/venv-pyspelling/bin/activate && \
source "$$venv/bin/activate" && \
pip install -q --upgrade pyspelling && \
pyspelling -c spellcheck.yaml && \
deactivate
Expand All @@ -165,20 +171,24 @@ flake8:

.PHONY: mypy
mypy:
@echo "Running mypy in grpc/clients/python" ; \
( \
cd grpc/clients/python && \
env MYPYPATH=. mypy --ignore-missing-imports . | grep -vE '(^Found|/generated/|: note: )' ; \
code="$$?" ; \
test "$$code" -ne 0 \
)
@for d in grpc/examples/python rest/examples/python ; do \
echo "Running mypy in $$d" ; \
( \
cd "$$d" && \
env MYPYPATH=. mypy --ignore-missing-imports . || exit 1 \
) || exit 1 ; \
done
@venv="/tmp/venv-$$USER-vega-api-mypy" && \
if ! test -d "$$venv" ; then \
virtualenv "$$venv" || exit 1 ; \
fi && \
source "$$venv/bin/activate" && \
pip install -r mypy-requirements.txt && \
echo "Running mypy in grpc/clients/python" && \
pushd grpc/clients/python 1>/dev/null && \
env MYPYPATH=. mypy --ignore-missing-imports . | grep -vE '(^Found|/generated/|: note: )' ; \
code="$$?" ; test "$$code" -ne 0 && \
popd 1>/dev/null && \
for d in graphql/examples/python grpc/examples/python rest/examples/python ; do \
echo "Running mypy in $$d" && \
pushd "$$d" 1>/dev/null && \
env MYPYPATH=. mypy --ignore-missing-imports . && \
popd 1>/dev/null || exit 1 ; \
done && \
deactivate

# Clean

Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Vega API

Version: 0.37.0
Version: 0.38.0

This repository contains everything you need for interacting with the Vega APIs.

Expand Down Expand Up @@ -52,6 +52,18 @@ The per-language API clients are found in [`grpc/clients/`](https://github.com/v

Pull requests for additional languages are gratefully received.

# Examples

Some example/demonstration programs are maintained in this repository. They are
intended to be stand-alone programs that can be run by people copying and
editing the source code.

| API | Directory |
| :------ | :--------------------------------------- |
| gRPC | [`grpc/examples/`](grpc/examples/) |
| GraphQL | [`graphql/examples/`](graphql/examples/) |
| REST | [`rest/examples/`](rest/examples/) |

# Information for maintainers

## Update process - gRPC
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/mwitkow/go-proto-validators v0.3.2
github.com/satori/go.uuid v1.2.0
github.com/stretchr/testify v1.7.0
google.golang.org/genproto v0.0.0-20210524171403-669157292da3
google.golang.org/genproto v0.0.0-20210611144927-798beca9d670
google.golang.org/grpc v1.38.0
google.golang.org/protobuf v1.26.0
)
24 changes: 24 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
Expand All @@ -57,8 +58,10 @@ golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTk
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand All @@ -69,11 +72,14 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4 h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E=
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 h1:4nGaVu0QrbjT/AK2PRLuQfQuh6DJve+pELhqTdAj3x0=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Expand All @@ -84,6 +90,9 @@ golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4 h1:EZ2mChiOa8udjfp6rRmswTbtZN/QzUQp4ptM4rnjHvc=
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Expand All @@ -99,6 +108,7 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
Expand All @@ -122,6 +132,20 @@ google.golang.org/genproto v0.0.0-20210524142926-3e3a6030be83 h1:1RnejfrmpVDN9Cq
google.golang.org/genproto v0.0.0-20210524142926-3e3a6030be83/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A=
google.golang.org/genproto v0.0.0-20210524171403-669157292da3 h1:xFyh6GBb+NO1L0xqb978I3sBPQpk6FrKO0jJGRvdj/0=
google.golang.org/genproto v0.0.0-20210524171403-669157292da3/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A=
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c h1:wtujag7C+4D6KMoulW9YauvK2lgdvCMS260jsqqBXr0=
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/genproto v0.0.0-20210603172842-58e84a565dcf h1:3oVOonZQld/0ddUsMXCnkhem95RnnQEUMZQLJP1s3jQ=
google.golang.org/genproto v0.0.0-20210603172842-58e84a565dcf/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08 h1:pc16UedxnxXXtGxHCSUhafAoVHQZ0yXl8ZelMH4EETc=
google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/genproto v0.0.0-20210607140030-00d4fb20b1ae h1:2dB4bZ/B7RJdKuvHk3mKTzL2xwrikb+Y/QQy7WdyBPk=
google.golang.org/genproto v0.0.0-20210607140030-00d4fb20b1ae/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d h1:KzwjikDymrEmYYbdyfievTwjEeGlu+OM6oiKBkF3Jfg=
google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/genproto v0.0.0-20210610141715-e7a9b787a5a4 h1:Kgs5nmbQVuUAug2PXQ27hu9MSCv8uJTnrmxZj9Lj5lc=
google.golang.org/genproto v0.0.0-20210610141715-e7a9b787a5a4/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/genproto v0.0.0-20210611144927-798beca9d670 h1:M9c2dapWGIISuWaz5vr/RUk5Qn2Hs8DZ9CJb5aH266Q=
google.golang.org/genproto v0.0.0-20210611144927-798beca9d670/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
Expand Down
30 changes: 25 additions & 5 deletions graphql/doc/asset.doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -1094,15 +1094,15 @@ <h2 id="graphql-schema-definition" class="graphdoc-section__title slds-text-head
<td id="L18" class="td-index">18</td>
<td id="LC18" class="td-code">
<span class="tab">
<span class="comment line"># The origin source of the asset (e.g: an erc20 asset)</span>
<span class="comment line"># The min stake to become an lp for any market using this asset for settlement</span>
</span>
</td>
</tr>
<tr class="row">
<td id="L19" class="td-index">19</td>
<td id="LC19" class="td-code">
<span class="tab">
<span class="meta">source</span>: <a class="support type" href="assetsource.doc.html">AssetSource</a>! </span>
<span class="meta">minLpStake</span>: <a class="support type" href="string.doc.html">String</a>! </span>
</td>
</tr>
<tr class="row">
Expand All @@ -1114,15 +1114,15 @@ <h2 id="graphql-schema-definition" class="graphdoc-section__title slds-text-head
<td id="L21" class="td-index">21</td>
<td id="LC21" class="td-code">
<span class="tab">
<span class="comment line"># The infrastructure fee account for this asset</span>
<span class="comment line"># The origin source of the asset (e.g: an erc20 asset)</span>
</span>
</td>
</tr>
<tr class="row">
<td id="L22" class="td-index">22</td>
<td id="LC22" class="td-code">
<span class="tab">
<span class="meta">infrastructureFeeAccount</span>: <a class="support type" href="account.doc.html">Account</a>! </span>
<span class="meta">source</span>: <a class="support type" href="assetsource.doc.html">AssetSource</a>! </span>
</td>
</tr>
<tr class="row">
Expand All @@ -1132,7 +1132,27 @@ <h2 id="graphql-schema-definition" class="graphdoc-section__title slds-text-head
</tr>
<tr class="row">
<td id="L24" class="td-index">24</td>
<td id="LC24" class="td-code">}</td>
<td id="LC24" class="td-code">
<span class="tab">
<span class="comment line"># The infrastructure fee account for this asset</span>
</span>
</td>
</tr>
<tr class="row">
<td id="L25" class="td-index">25</td>
<td id="LC25" class="td-code">
<span class="tab">
<span class="meta">infrastructureFeeAccount</span>: <a class="support type" href="account.doc.html">Account</a>! </span>
</td>
</tr>
<tr class="row">
<td id="L26" class="td-index">26</td>
<td id="LC26" class="td-code">
</td>
</tr>
<tr class="row">
<td id="L27" class="td-index">27</td>
<td id="LC27" class="td-code">}</td>
</tr>
</tbody>
</table>
Expand Down
Loading

0 comments on commit 4b50fbc

Please sign in to comment.