Skip to content

Commit

Permalink
Merge pull request #120 from vegaprotocol/update-vega-lib-version
Browse files Browse the repository at this point in the history
feat: update vega library to v0.74.0
  • Loading branch information
daniel1302 committed Mar 20, 2024
2 parents 6665465 + ed39471 commit 988317a
Show file tree
Hide file tree
Showing 37 changed files with 42 additions and 9 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ toolchain go1.21.5

require (
code.vegaprotocol.io/shared v0.0.0-20221010085458-55c50711135f
code.vegaprotocol.io/vega v0.74.3-preview.1
github.com/Masterminds/semver/v3 v3.2.0
code.vegaprotocol.io/vega v0.75.1
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d
github.com/ethereum/go-ethereum v1.11.6
github.com/hashicorp/go-multierror v1.1.1
Expand All @@ -33,6 +32,7 @@ require (
require (
github.com/BurntSushi/toml v1.2.1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/PaesslerAG/gval v1.0.0 // indirect
github.com/PaesslerAG/jsonpath v0.1.1 // indirect
Expand All @@ -52,7 +52,7 @@ require (
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/clbanning/mxj/v2 v2.3.3-0.20201214204241-e937bdee5a3e // indirect
github.com/cometbft/cometbft v0.38.5 // indirect
github.com/cometbft/cometbft v0.38.6 // indirect
github.com/cometbft/cometbft-db v0.7.0 // indirect
github.com/confio/ics23/go v0.9.0 // indirect
github.com/cosmos/gogoproto v1.4.11 // indirect
Expand Down
10 changes: 4 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiy
cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
code.vegaprotocol.io/shared v0.0.0-20221010085458-55c50711135f h1:ivaWSXN7XKESShqYw/QFuT6b2mvThWPQLO7lW5sadHs=
code.vegaprotocol.io/shared v0.0.0-20221010085458-55c50711135f/go.mod h1:XzX67GsyOHzvytMr0QOHX4CCTdCZDYKUUi88rx40Nt0=
code.vegaprotocol.io/vega v0.74.0-preview.10 h1:sdfmL8i2vnacUWNEvo7IpNaLs+3En7XAnLlTTzc+DyE=
code.vegaprotocol.io/vega v0.74.0-preview.10/go.mod h1:taCX5tXcjenslMb7yb5+X6jnd/nYpnjM9Jd4MJyCdmQ=
code.vegaprotocol.io/vega v0.74.3-preview.1 h1:9RThXEFn3VrYgPyMS1+LX3G2MFMySa32BNQptqOrjBI=
code.vegaprotocol.io/vega v0.74.3-preview.1/go.mod h1:naS1364ETvPcidgqmK5TA37O6CsomlsLTOMmxSILZfs=
code.vegaprotocol.io/vega v0.75.1 h1:2oT1bfYfM9gxh1lCINhR/vStffXfqx00W2CB0f7J93c=
code.vegaprotocol.io/vega v0.75.1/go.mod h1:BsCaA1w1yC5MOrsuGx8VJWih59sKmq1xCt6Gd1hsrbw=
collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4=
Expand Down Expand Up @@ -166,8 +164,8 @@ github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811 h1:ytcWPaNPhNoG
github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811/go.mod h1:Nb5lgvnQ2+oGlE/EyZy4+2/CxRh9KfvCXnag1vtpxVM=
github.com/cockroachdb/redact v1.1.3 h1:AKZds10rFSIj7qADf0g46UixK8NNLwWTNdCIGS5wfSQ=
github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
github.com/cometbft/cometbft v0.38.5 h1:4lOcK5VTPrfbLOhNHmPYe6c7eDXHtBdMCQuKbAfFJdU=
github.com/cometbft/cometbft v0.38.5/go.mod h1:0tqKin+KQs8zDwzYD8rPHzSBIDNPuB4NrwwGDNb/hUg=
github.com/cometbft/cometbft v0.38.6 h1:QSgpCzrGWJ2KUq1qpw+FCfASRpE27T6LQbfEHscdyOk=
github.com/cometbft/cometbft v0.38.6/go.mod h1:8rSPxzUJYquCN8uuBgbUHOMg2KAwvr7CyUw+6ukO4nw=
github.com/cometbft/cometbft-db v0.7.0 h1:uBjbrBx4QzU0zOEnU8KxoDl18dMNgDh+zZRUE0ucsbo=
github.com/cometbft/cometbft-db v0.7.0/go.mod h1:yiKJIm2WKrt6x8Cyxtq9YTEcIMPcEe4XPxhgX59Fzf0=
github.com/confio/ics23/go v0.9.0 h1:cWs+wdbS2KRPZezoaaj+qBleXgUk5WOQFMP3CQFGTr4=
Expand Down
1 change: 1 addition & 0 deletions governance/market/community_market_btc_usd_230630.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func NewCommunityBTCUSD230630(
Change: &vega.ProposalTerms_NewMarket{
NewMarket: &vega.NewMarket{
Changes: &vega.NewMarketConfiguration{
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "BTC/USDT expiry 2023 June 30th",
Code: "BTC/USDT-230630",
Expand Down
1 change: 1 addition & 0 deletions governance/market/community_market_eth_usd_230630.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func NewCommunityETHUSD230630(
Change: &vega.ProposalTerms_NewMarket{
NewMarket: &vega.NewMarket{
Changes: &vega.NewMarketConfiguration{
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "ETH/USDT expiry 2023 June 30th",
Code: "ETH/USDT-230630",
Expand Down
1 change: 1 addition & 0 deletions governance/market/community_market_link_usd_230630.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func NewCommunityLinkUSD230630(
Change: &vega.ProposalTerms_NewMarket{
NewMarket: &vega.NewMarket{
Changes: &vega.NewMarketConfiguration{
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "LINK/USDT expiry 2023 June 30th",
Code: "LINK/USDT-230630",
Expand Down
1 change: 1 addition & 0 deletions governance/market/future_btc_usdt.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ This proposal requests to list BTC/USDT-231231 as a market with USDT as a settle
Change: &vega.ProposalTerms_NewMarket{
NewMarket: &vega.NewMarket{
Changes: &vega.NewMarketConfiguration{
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "BTC/USDT FUTURE",
Code: "BTC/USDT-MAINNET",
Expand Down
1 change: 1 addition & 0 deletions governance/market/future_eth_usdt.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ This proposal requests to list ETH/USDT-231231 as a market with USDT as a settle
Change: &vega.ProposalTerms_NewMarket{
NewMarket: &vega.NewMarket{
Changes: &vega.NewMarketConfiguration{
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "ETH/USDT Future",
Code: "ETH/USDT-FUTURE",
Expand Down
1 change: 1 addition & 0 deletions governance/market/incentive_btcusd.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func NewBTCUSDIncentiveMarketProposal(
PositionDecimalPlaces: 4,
LinearSlippageFactor: "0.01",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "BTCUSD.INCENTIVE",
Expand Down
1 change: 1 addition & 0 deletions governance/market/mainnet_doge_usdt.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func NewMainnetDogeUSDT(
Change: &vega.ProposalTerms_NewMarket{
NewMarket: &vega.NewMarket{
Changes: &vega.NewMarketConfiguration{
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "DOGE/USDT Mainnet Copy",
Code: "DOGE/USDT-MAINNET",
Expand Down
1 change: 1 addition & 0 deletions governance/market/mainnet_link_usdt.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ This proposal requests to list LINK/USDT-231231 as a market with USDT as a settl
Change: &vega.ProposalTerms_NewMarket{
NewMarket: &vega.NewMarket{
Changes: &vega.NewMarketConfiguration{
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "LINK/USDT Mainnet Copy",
Code: "LINK/USDT-MAINNET",
Expand Down
1 change: 1 addition & 0 deletions governance/market/mainnet_simulation_btcusdt_perp.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func NewMainnetSimulationBitcoinTetherPerpetual(
Change: &vega.ProposalTerms_NewMarket{
NewMarket: &vega.NewMarket{
Changes: &vega.NewMarketConfiguration{
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "Bitcoin / Tether USD (Perpetual)",
Code: "BTCUSDT.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/mainnet_simulation_ethusdt_perp.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func NewMainnetSimulationEtherTetherPerpetual(
Change: &vega.ProposalTerms_NewMarket{
NewMarket: &vega.NewMarket{
Changes: &vega.NewMarketConfiguration{
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "Ether / Tether USD (Perpetual)",
Code: "ETHUSDT.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/mainnet_simulation_injusdt_perp.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func NewMainnetSimulationINJUSDTPerp(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "INJ/USDT-Perp",
Code: "INJ/USDT-PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/mainnet_simulation_ldousdt_perp.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func NewMainnetSimulationLDOUSDTPerp(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "LDO/USDT-Perp",
Code: "LDO/USDT-PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/mainnet_simulation_sxnusdt_perp.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func NewMainnetSimulationSNXUSDTPerp(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "SNX/USDT-Perp",
Code: "SNX/USDT-PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_aapl.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewAAPLMarketProposal(
PositionDecimalPlaces: 3,
LinearSlippageFactor: "0.1",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: Name,
Code: "AAPL.MF21",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_aavedai.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewAAVEDAIMarketProposal(
PositionDecimalPlaces: 3,
LinearSlippageFactor: "0.1",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: Name,
Code: "AAVEDAI.MF21",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_btcusd.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewBTCUSDMarketProposal(
PositionDecimalPlaces: 3,
LinearSlippageFactor: "0.1",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: Name,
Code: "BTCUSD.MF21",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_ethbtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewETHBTCMarketProposal(
PositionDecimalPlaces: 3,
LinearSlippageFactor: "0.1",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: Name,
Code: "ETHBTC.QM21",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_ethdai.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewETHDAIMarketProposal(
PositionDecimalPlaces: 3,
LinearSlippageFactor: "0.1",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: Name,
Code: "ETHDAI.MF21",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_btcusd.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func NewBTCUSDPerpetualMarketProposal(
PositionDecimalPlaces: 4,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "BTCUSDT.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_btcusd_gnosis.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func NewBTCUSDGnosisPerpetualMarketProposal(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "BTCUSDT.GNOSIS.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_btcusd_mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ func NewBTCUSDMainnetMarketProposal(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "BTC/USD(USDT)-Perp-Mainnet",
Code: "BTC/USD-PERP-MAINNET",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_btcusd_mainnet2.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func NewBTCUSDMainnet2MarketProposal(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: "BTC/USD(USDT)-Perp Mainnet2",
Code: "BTC/USD-PERP-MAINNET2",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_btcusd_pyth.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func NewBTCUSDPythPerpetualMarketProposal(
PositionDecimalPlaces: -1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "BTCUSDT.PYTH.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_daiusd.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func NewDAIUSDPerpetualMarketProposal(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.01",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "DAIUSD.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_ethusd.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func NewETHUSDPerpetualMarketProposal(
PositionDecimalPlaces: 3,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "ETHEREUM.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_eurusd.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func NewEURUSDPerpetualMarketProposal(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.01",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "EURUSD.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_inj_uniswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func NewINJUSDPerpetualMarketProposal(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "INJUSD.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_jupusd_pyth.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func NewJUPUSDPythPerpetualMarketProposal(
PositionDecimalPlaces: -1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "JUPUSDT.PYTH.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_linkusd.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func NewLINKUSDPerpetualMarketProposal(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.01",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "LINKUSD.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_pepe_uniswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func New1000PEPEUSDPerpetualMarketProposal(
PositionDecimalPlaces: -3, // min 100
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "1000PEPEUSDT.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_perp_snx_uniswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func NewSNXUSDPerpetualMarketProposal(
PositionDecimalPlaces: 1,
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: name,
Code: "SNXUSD.PERP",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_tsla.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewTSLAMarketProposal(
PositionDecimalPlaces: 3,
LinearSlippageFactor: "0.1",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: Name,
Code: "TSLA.QM21",
Expand Down
1 change: 1 addition & 0 deletions governance/market/market_unidai.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewUNIDAIMarketProposal(
PositionDecimalPlaces: 3,
LinearSlippageFactor: "0.1",
QuadraticSlippageFactor: "0.0",
TickSize: "1",
Instrument: &vega.InstrumentConfiguration{
Name: Name,
Code: "UNIDAI.MF21",
Expand Down
1 change: 1 addition & 0 deletions governance/market/upadte_mainnet_btc_with_pyth.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func UpdateBTCUSDMainnetMarketProposal(
},
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0",
TickSize: "1",
Instrument: &vega.UpdateInstrumentConfiguration{
Name: "BTC/USD(USDT)-Perp-Mainnet",
Code: "BTC/USD-PERP-MAINNET",
Expand Down
1 change: 1 addition & 0 deletions governance/market/upadte_mainnet_eth_with_pyth.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func UpdateETHUSDMainnetMarketProposal(
},
LinearSlippageFactor: "0.001",
QuadraticSlippageFactor: "0",
TickSize: "1",
Instrument: &vega.UpdateInstrumentConfiguration{
Name: "ETH/USD(USDT)-Perp-Mainnet",
Code: "ETH/USD-PERP-MAINNET",
Expand Down

0 comments on commit 988317a

Please sign in to comment.