Skip to content

Commit 68fb914

Browse files
authored
Merge pull request #3240 from vegaprotocol/release/v0.34.0
Release v0.34.0
2 parents 7a523de + bc6f49b commit 68fb914

287 files changed

Lines changed: 16861 additions & 6239 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.drone-github.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ steps:
1919
# ====== Pipeline for pull requests ======
2020

2121
- name: build-PR
22-
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.14.4
22+
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.16.2
2323
pull: always
2424
volumes:
2525
- name: gocache
@@ -76,7 +76,7 @@ steps:
7676
- pull_request
7777

7878
- name: test-PR
79-
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.14.4
79+
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.16.2
8080
volumes:
8181
- name: gocache
8282
path: /go/cache
@@ -90,8 +90,6 @@ steps:
9090
from_secret: SLACK_HOOK_URL
9191
commands:
9292
- failed=""
93-
- make staticcheck
94-
- make buflint
9593
- if test "$$DRONE_TARGET_BRANCH" = master -o "$$(grep -cE '(^go.(mod|sum)|\.go)$$' git_diff.txt)" -gt 0 ; then
9694
make retest || exit 1 ;
9795
for target in gqlgen_check print_check proto_check race vet ;
@@ -102,7 +100,7 @@ steps:
102100
else
103101
echo "No Go files changed. Skipping go tests" ;
104102
fi
105-
- for target in codeowners_check ; do
103+
- for target in codeowners_check buflint misspell staticcheck; do
106104
echo "$$COL_CYAN$$target$$COL_RESET" ;
107105
make "$$target" || failed="$$failed $$target" ;
108106
done
@@ -141,7 +139,7 @@ steps:
141139
# ====== Pipeline for main branches (master, develop) and tags ======
142140

143141
- name: build-branch
144-
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.14.4
142+
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.16.2
145143
pull: always
146144
volumes:
147145
- name: gocache
@@ -174,7 +172,7 @@ steps:
174172
- refs/tags/*
175173

176174
- name: deploy_devnet
177-
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.14.4
175+
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.16.2
178176
volumes:
179177
- name: gopkg
180178
path: /go/pkg
@@ -256,7 +254,7 @@ steps:
256254
- refs/tags/*
257255

258256
- name: build-multiarch
259-
image: docker.pkg.github.com/vegaprotocol/devops-infra/xgo:1.14.4
257+
image: docker.pkg.github.com/vegaprotocol/devops-infra/xgo:1.16.2
260258
pull: always
261259
volumes:
262260
- name: gocache
@@ -298,7 +296,7 @@ steps:
298296
- build-multiarch
299297

300298
- name: changelog_slack
301-
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.14.4
299+
image: docker.pkg.github.com/vegaprotocol/devops-infra/cipipeline:1.16.2
302300
environment:
303301
SLACK_HOOK_URL:
304302
from_secret: SLACK_HOOK_URL

CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,60 @@
11
# Changelog
22

3+
## 0.34.0
4+
5+
*2021-04-07*
6+
7+
### Improvements
8+
9+
- [#3302](https://github.com/vegaprotocol/vega/pull/3302) - Add reference to LP in orders created by LP
10+
- [#3183](https://github.com/vegaprotocol/vega/pull/3183) - All orders from LP - including rejected orders - are now sent through the event bus
11+
- [#3248](https://github.com/vegaprotocol/vega/pull/3248) - Store and propagate bond penalty
12+
- [#3266](https://github.com/vegaprotocol/vega/pull/3266) - Add network parameters to control auction duration & extension
13+
- [#3264](https://github.com/vegaprotocol/vega/pull/3264) - Add Liquidity Provision ID to orders created by LP commitments
14+
- [#3126](https://github.com/vegaprotocol/vega/pull/3126) - Add transfer for bond slashing
15+
- [#3281](https://github.com/vegaprotocol/vega/pull/3281) - Update scripts to go 1.16.2
16+
- [#3280](https://github.com/vegaprotocol/vega/pull/3280) - Update to go 1.16.2
17+
- [#3235](https://github.com/vegaprotocol/vega/pull/3235) - Extend unit test coverage for products
18+
- [#3219](https://github.com/vegaprotocol/vega/pull/3219) - Remove `liquidityFee` network parameter
19+
- [#3217](https://github.com/vegaprotocol/vega/pull/3217) - Add an event bus event when a market closes
20+
- [#3214](https://github.com/vegaprotocol/vega/pull/3214) - Add arbitrary data signing wallet endpoint
21+
- [#3316](https://github.com/vegaprotocol/vega/pull/3316) - Add tests for traders closing their own position
22+
- [#3270](https://github.com/vegaprotocol/vega/pull/3270) - _Feature test refactor_: Add Liquidity Provision feature tests
23+
- [#3289](https://github.com/vegaprotocol/vega/pull/3289) - _Feature test refactor_: Remove unused steps
24+
- [#3275](https://github.com/vegaprotocol/vega/pull/3275) - _Feature test refactor_: Refactor order cancellation steps
25+
- [#3230](https://github.com/vegaprotocol/vega/pull/3230) - _Feature test refactor_: Refactor trader amends step
26+
- [#3226](https://github.com/vegaprotocol/vega/pull/3226) - _Feature test refactor_: Refactor features with invalid order specs
27+
- [#3200](https://github.com/vegaprotocol/vega/pull/3200) - _Feature test refactor_: Add step to end opening auction
28+
- [#3201](https://github.com/vegaprotocol/vega/pull/3201) - _Feature test refactor_: Add step to amend order by reference
29+
- [#3204](https://github.com/vegaprotocol/vega/pull/3204) - _Feature test refactor_: Add step to place pegged orders
30+
- [#3207](https://github.com/vegaprotocol/vega/pull/3207) - _Feature test refactor_: Add step to create Liquidity Provision
31+
- [#3212](https://github.com/vegaprotocol/vega/pull/3212) - _Feature test refactor_: Remove unused settlement price step
32+
- [#3203](https://github.com/vegaprotocol/vega/pull/3203) - _Feature test refactor_: Rework Submit Order step
33+
- [#3251](https://github.com/vegaprotocol/vega/pull/3251) - _Feature test refactor_: Split market declaration
34+
- [#3314](https://github.com/vegaprotocol/vega/pull/3314) - _Feature test refactor_: Apply naming convention to assertions
35+
- [#3295](https://github.com/vegaprotocol/vega/pull/3295) - Refactor governance engine tests
36+
- [#3298](https://github.com/vegaprotocol/vega/pull/3298) - Add order book caching
37+
- [#3307](https://github.com/vegaprotocol/vega/pull/3307) - Use `UpdateNetworkParams` to validate network parameter updates
38+
- [#3308](https://github.com/vegaprotocol/vega/pull/3308) - Add probability of trading
39+
40+
### Fixes
41+
- [#3249](https://github.com/vegaprotocol/vega/pull/3249) - GraphQL: `LiquidityProvision` is no longer missing from the `EventBus` union
42+
- [#3253](https://github.com/vegaprotocol/vega/pull/3253) - Verify all properties on oracle specs
43+
- [#3224](https://github.com/vegaprotocol/vega/pull/3224) - Check for wash trades when FOK orders uncross
44+
- [#3257](https://github.com/vegaprotocol/vega/pull/3257) - Order Status is now only `Active` when it is submitted to the book
45+
- [#3285](https://github.com/vegaprotocol/vega/pull/3285) - LP provisions are now properly stopped when a market is rejected
46+
- [#3290](https://github.com/vegaprotocol/vega/pull/3290) - Update Market Value Proxy at the end of each block
47+
- [#3267](https://github.com/vegaprotocol/vega/pull/3267) - Ensure Liquidity Auctions are not left if it would result in an empty book
48+
- [#3286](https://github.com/vegaprotocol/vega/pull/3286) - Reduce some log levels
49+
- [#3263](https://github.com/vegaprotocol/vega/pull/3263) - Fix incorrect context object in Liquidity Provisions
50+
- [#3283](https://github.com/vegaprotocol/vega/pull/3283) - Remove debug code
51+
- [#3198](https://github.com/vegaprotocol/vega/pull/3198) - chore: Add spell checking to build pipeline
52+
- [#3303](https://github.com/vegaprotocol/vega/pull/3303) - Reduce market depth updates when nothing changes
53+
- [#3310](https://github.com/vegaprotocol/vega/pull/3310) - Fees are no longer paid to inactive LPs
54+
- [#3305](https://github.com/vegaprotocol/vega/pull/3305) - Fix validation of governance proposal terms
55+
- [#3311](https://github.com/vegaprotocol/vega/pull/3311) - `targetStake` is now an unsigned integer
56+
- [#3313](https://github.com/vegaprotocol/vega/pull/3313) - Fix invalid account wrapping
57+
358
## 0.33.0
459

560
*2021-02-16*

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# VEGA code owners - aka 'people who should probably be included in reviews on...'
22

3-
# GraphQL schema changes should be reviewd by Team Vega Console
3+
# GraphQL schema changes should be reviewed by Team Vega Console
44
gateway/graphql/schema.graphql @edd @mattrussell36

GETTING_STARTED.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ The following OS packages are required:
1818

1919
## Installing Golang
2020

21-
**Required version: 1.14.4**
21+
**Required version: 1.16.2**
2222

2323
Get Golang via OS package manager, or directly from from https://golang.org/dl/.
2424
See also the [Golang installation guide](https://golang.org/doc/install).
2525
Install it somewhere, then point "`$GOROOT`" at that location:
2626

2727
```bash
2828
# Add to $HOME/.bashrc:
29-
export GOROOT="/path/to/your/go1.14.4"
29+
export GOROOT="/path/to/your/go1.16.2"
3030
export PATH="$PATH:$GOROOT/bin"
3131
```
3232

3333
Ensure you have `go` and `gofmt`:
3434

3535
```bash
3636
$ which go gofmt
37-
/path/to/your/go1.14.4/bin/go
38-
/path/to/your/go1.14.4/bin/gofmt
37+
/path/to/your/go1.16.2/bin/go
38+
/path/to/your/go1.16.2/bin/gofmt
3939

4040
$ go version
41-
go version go1.14.4 linux/amd64
41+
go version go1.16.2 linux/amd64
4242
```
4343

4444
## Set up Go source path

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ staticcheck: ## Run statick analysis checks
157157
buflint: ## Run buf lint
158158
@./script/build.sh -a buflint
159159

160+
.PHONY: misspell
161+
misspell: # Run go specific misspell checks
162+
@./script/build.sh -a misspell
163+
160164
.PHONY: semgrep
161165
semgrep: ## Run semgrep static analysis checks
162166
@./script/build.sh -a semgrep

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Vega
22

3-
Version 0.33.0.
3+
Version 0.34.0.
44

55
A decentralised trading platform that allows pseudo-anonymous trading of derivatives on a blockchain.
66

REFACTORING.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Refactoring
2+
3+
This document is an attempt to get the team on the same page about the refactoring process we want to adopt.
4+
5+
## Why?
6+
* Defined a goal to reach.
7+
* Make the code easier to deal with.
8+
* Ease the addition (or update) of features.
9+
10+
## How?
11+
* Defined how we can reach that goal.
12+
* Which techniques? More domain-oriented and less "algorithmic".
13+
* Defined critical code path for maximum impact.
14+
* Identify the hottest path of code change.
15+
* Defined medium to share the knowledge.
16+
* Create workshops on specific problems to find a solution, and be on the same page.
17+
* Save our decisions into a file.
18+
19+
## When?
20+
### Opportunistic refactoring
21+
It's done along the way.
22+
23+
#### Preparatory refactoring
24+
Refactor just before we add a feature to a code base, to ease its addition.
25+
26+
**Questions:**
27+
28+
* What kind of code makes feature harder to add?
29+
30+
#### Comprehension refactoring
31+
Refactor to make the code more understandable.
32+
33+
**Questions:**
34+
35+
* What's a code that is easier to understand?
36+
37+
#### Clean-up refactoring
38+
Basically, the boy scout's rule.
39+
40+
> Always leave the camp site cleaner than when you found it.
41+
42+
**Questions:**
43+
44+
* How to avoid overlapping with someone else?
45+
* Into the same PR as the one of the feature or a different one?

api/trading.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ func verifySignature(
322322
validator, err := crypto.NewSignatureAlgorithm(crypto.Ed25519)
323323
if err != nil {
324324
if log != nil {
325-
log.Error("unable to instanciate new algorithm", logging.Error(err))
325+
log.Error("unable to instantiate new algorithm", logging.Error(err))
326326
}
327327
return err
328328
}

api/trading_data.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ func (t *tradingDataService) updateNetInfo(ctx context.Context) {
17471747

17481748
func (t *tradingDataService) getGenesisTimeAndChainID(ctx context.Context) error {
17491749
const refused = "connection refused"
1750-
// just lock in here, ideally we'ill come here only once, so not a big issue to lock
1750+
// just lock in here, ideally we'll come here only once, so not a big issue to lock
17511751
t.mu.Lock()
17521752
defer t.mu.Unlock()
17531753

@@ -2136,7 +2136,7 @@ func (t *tradingDataService) ObserveEventBus(
21362136
return apiError(codes.InvalidArgument, ErrMalformedRequest, err)
21372137
}
21382138

2139-
// now we will aggregaate filter out of the initial reuqest
2139+
// now we will aggregate filter out of the initial request
21402140
types, err := events.ProtoToInternal(req.Type...)
21412141
if err != nil {
21422142
return apiError(codes.InvalidArgument, ErrMalformedRequest, err)
@@ -2217,7 +2217,7 @@ func (t *tradingDataService) recvEventRequest(
22172217
select {
22182218
case <-readCtx.Done():
22192219
if err != nil {
2220-
// this means the client disconnectd
2220+
// this means the client disconnected
22212221
return nil, err
22222222
}
22232223
// this mean we timedout

assets/asset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
type isAsset interface {
11-
// get informations about the asset itself
11+
// get information about the asset itself
1212
ProtoAsset() *types.Asset
1313
// get the internal asset class
1414
GetAssetClass() common.AssetClass

0 commit comments

Comments
 (0)