Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CNS-397: removed vrf #465

Merged
merged 4 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cookbook/plans/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
],
"geolocation_profile": "18446744073709551615",
"total_cu_limit": "1000000",
"epoch_cu_limit": "20000",
"epoch_cu_limit": "100000",
"max_providers_to_pair": "3"
}
}
Expand Down
98 changes: 0 additions & 98 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29844,8 +29844,6 @@ paths:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
epochBlockHash:
Expand Down Expand Up @@ -30013,8 +30011,6 @@ paths:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
epochBlockHash:
Expand Down Expand Up @@ -30097,8 +30093,6 @@ paths:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
output:
Expand Down Expand Up @@ -30349,8 +30343,6 @@ paths:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
current_epoch:
Expand Down Expand Up @@ -30700,8 +30692,6 @@ paths:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
output:
Expand Down Expand Up @@ -30787,8 +30777,6 @@ paths:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
default:
Expand Down Expand Up @@ -31039,8 +31027,6 @@ paths:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
maxCU:
Expand Down Expand Up @@ -31381,11 +31367,6 @@ paths:
default: NONE
title: 'bitmap, must only be power of 2'
title: 'the key type, determines the privilages of the key'
vrfpk:
type: string
title: >-
the vrf public key used to calculate data
reliability
title: list of the projects keys
admin_policy:
type: object
Expand Down Expand Up @@ -31523,11 +31504,6 @@ paths:
default: NONE
title: 'bitmap, must only be power of 2'
title: 'the key type, determines the privilages of the key'
vrfpk:
type: string
title: >-
the vrf public key used to calculate data
reliability
title: list of the projects keys
admin_policy:
type: object
Expand Down Expand Up @@ -54602,35 +54578,6 @@ definitions:
salt:
type: string
format: byte
data_reliability:
type: object
properties:
chain_id:
type: string
epoch:
type: string
format: int64
differentiator:
type: boolean
vrf_value:
type: string
format: byte
vrf_proof:
type: string
format: byte
provider_sig:
type: string
format: byte
all_data_hash:
type: string
format: byte
query_hash:
type: string
format: byte
title: we only need it for payment later
sig:
type: string
format: byte
lavanet.lava.pairing.VRFData:
type: object
properties:
Expand All @@ -54655,18 +54602,6 @@ definitions:
sig:
type: string
format: byte
chain_id:
type: string
epoch:
type: string
format: int64
all_data_hash:
type: string
format: byte
query_hash:
type: string
format: byte
title: we only need it for payment later
lavanet.lava.epochstorage.Endpoint:
type: object
properties:
Expand Down Expand Up @@ -54814,8 +54749,6 @@ definitions:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
epochBlockHash:
Expand Down Expand Up @@ -54927,8 +54860,6 @@ definitions:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
epochBlockHash:
Expand Down Expand Up @@ -54994,8 +54925,6 @@ definitions:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
lavanet.lava.epochstorage.StakeStorage:
Expand Down Expand Up @@ -55045,8 +54974,6 @@ definitions:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
epochBlockHash:
Expand Down Expand Up @@ -55325,8 +55252,6 @@ definitions:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
output:
Expand Down Expand Up @@ -55388,8 +55313,6 @@ definitions:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
current_epoch:
Expand Down Expand Up @@ -55521,8 +55444,6 @@ definitions:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
output:
Expand Down Expand Up @@ -55572,8 +55493,6 @@ definitions:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
lavanet.lava.pairing.QueryUserEntryResponse:
Expand Down Expand Up @@ -55619,8 +55538,6 @@ definitions:
format: uint64
chain:
type: string
vrfpk:
type: string
moniker:
type: string
maxCU:
Expand Down Expand Up @@ -56006,9 +55923,6 @@ definitions:
default: NONE
title: 'bitmap, must only be power of 2'
title: 'the key type, determines the privilages of the key'
vrfpk:
type: string
title: the vrf public key used to calculate data reliability
title: list of the projects keys
admin_policy:
type: object
Expand Down Expand Up @@ -56088,9 +56002,6 @@ definitions:
default: NONE
title: 'bitmap, must only be power of 2'
title: 'the key type, determines the privilages of the key'
vrfpk:
type: string
title: the vrf public key used to calculate data reliability
lavanet.lava.projects.ProjectKey.KEY_TYPE:
type: string
enum:
Expand Down Expand Up @@ -56138,9 +56049,6 @@ definitions:
default: NONE
title: 'bitmap, must only be power of 2'
title: 'the key type, determines the privilages of the key'
vrfpk:
type: string
title: the vrf public key used to calculate data reliability
title: list of the projects keys
admin_policy:
type: object
Expand Down Expand Up @@ -56246,9 +56154,6 @@ definitions:
default: NONE
title: 'bitmap, must only be power of 2'
title: 'the key type, determines the privilages of the key'
vrfpk:
type: string
title: the vrf public key used to calculate data reliability
title: list of the projects keys
admin_policy:
type: object
Expand Down Expand Up @@ -57518,9 +57423,6 @@ definitions:
default: NONE
title: 'bitmap, must only be power of 2'
title: 'the key type, determines the privilages of the key'
vrfpk:
type: string
title: the vrf public key used to calculate data reliability
policy:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ require (
github.com/joho/godotenv v1.3.0
github.com/newrelic/go-agent/v3 v3.20.4
github.com/spf13/pflag v1.0.5
gonum.org/v1/gonum v0.13.0
)

require (
Expand All @@ -47,7 +48,6 @@ require (
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
golang.org/x/mod v0.9.0 // indirect
golang.org/x/tools v0.7.0 // indirect
gonum.org/v1/gonum v0.13.0 // indirect
)

require (
Expand Down
14 changes: 0 additions & 14 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1534,8 +1534,6 @@ golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EH
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw=
golang.org/x/exp v0.0.0-20220426173459-3bcf042a4bf5/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE=
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e h1:+WEEuIdZHnUeJJmEUjyYC2gfUMj69yZXw17EnHg/otA=
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA=
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 h1:ooxPy7fPvB4kwsA2h+iBNHkAbp/4JxTSwCmvdjEYmug=
golang.org/x/exp v0.0.0-20230321023759-10a507213a29/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
Expand Down Expand Up @@ -1567,8 +1565,6 @@ golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
golang.org/x/mod v0.6.0-dev.0.20211013180041-c96bc1413d57/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
golang.org/x/mod v0.7.0 h1:LapD9S96VoQRhi/GrNTqeBJFrUjs5UHCAtTlgwA5oZA=
golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs=
golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand Down Expand Up @@ -1635,8 +1631,6 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx
golang.org/x/net v0.0.0-20220111093109-d55c255bac03/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
Expand Down Expand Up @@ -1776,15 +1770,11 @@ golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.5.0 h1:n2a8QNdAb0sZNpU9R1ALUXBbY+w51fCQDN+7EdxNBsY=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Expand All @@ -1796,8 +1786,6 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
Expand Down Expand Up @@ -1881,8 +1869,6 @@ golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.8-0.20211029000441-d6a9af8af023/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
golang.org/x/tools v0.2.0 h1:G6AHpWxTMGY1KyEYoAQ5WTtIekUUvDNjan3ugu60JvE=
golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4=
golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
3 changes: 1 addition & 2 deletions proto/epochstorage/stake_entry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";

message StakeEntry {

reserved 7;
cosmos.base.v1beta1.Coin stake = 1 [(gogoproto.nullable) = false];
string address = 2;
uint64 stake_applied_block = 3;
repeated Endpoint endpoints = 4 [(gogoproto.nullable) = false];
uint64 geolocation = 5;
string chain = 6;
string vrfpk = 7;
string moniker = 8;
}
Loading