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

DDO types, nv22 edition #236

Closed
wants to merge 54 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
2a426c9
wip nv12 direct data onboarding types
magik6k Aug 28, 2023
231a5d9
feat: add simple nv22 migration
arajasek Dec 5, 2023
e88e97a
Merge remote-tracking branch 'origin/asr/migration-nv22' into feat/dd…
magik6k Dec 7, 2023
5a41c76
v13 ddo types
magik6k Dec 8, 2023
a2d0012
cbor gen
magik6k Dec 8, 2023
50bc873
cleanup v12
magik6k Dec 8, 2023
1fb1d84
add missing v13 ddo method types/defs
magik6k Dec 13, 2023
b22c917
make gen
magik6k Dec 13, 2023
0e53b05
update Go to a less obsolete version
magik6k Dec 13, 2023
3fa8f86
fix new lint errors
magik6k Dec 13, 2023
f48622c
fix v13 miner types
magik6k Dec 13, 2023
b448fa9
v13: apparently some types use transparent serde
magik6k Dec 13, 2023
7de5fbb
v13: miner: Prove*2 -> Prove*3
magik6k Jan 3, 2024
575a3b6
v13: ddo market migration
magik6k Jan 3, 2024
0439243
fix deferred migration
magik6k Jan 3, 2024
9941a91
v13: actually run deferred migrations
magik6k Jan 3, 2024
8092cb6
feat: add simple nv22 migration
arajasek Dec 5, 2023
eaa52b3
Merge remote-tracking branch 'origin/asr/migration-nv22' into feat/dd…
magik6k Jan 23, 2024
d14906d
update cbor-gen
magik6k Jan 24, 2024
24c91c4
Fix the SectorDealIDs type
magik6k Jan 24, 2024
177a064
Add AggregateProofType to v13 ProveCommitSectors3Params
magik6k Jan 24, 2024
e625a47
v13: Cleanup migration a bit
magik6k Jan 24, 2024
dbf4b5b
v13 Address review
magik6k Jan 25, 2024
08bdf6c
v13: Cached migration
magik6k Jan 26, 2024
419c7cd
v13: Use correct bitwidth in market diff migrator
magik6k Jan 26, 2024
e4fd320
v13: Don't use AppendContinous for deal states
magik6k Jan 26, 2024
dd19785
v13: Fixes in cached migration
magik6k Jan 26, 2024
e41b8a3
v13: Support snapdeals/extension in diff migration
magik6k Jan 27, 2024
c382eb0
v13: Correctly persist actorSectors, thanks mr linter
magik6k Jan 27, 2024
d349fbb
v13: More migration edge-case handling
magik6k Jan 27, 2024
d0fe71d
Make deferred migrations use explicit method
magik6k Feb 1, 2024
877d407
v13: Address review
magik6k Feb 5, 2024
01402d0
v13: Invariant for dealState.SectorNumber
magik6k Feb 5, 2024
e4f30ab
v13: Invariants for ProviderSectors
magik6k Feb 5, 2024
5021f0b
v13: Match the FIP-76 migration text more strictly
magik6k Feb 6, 2024
c34fd9b
v13: review: Update invariants
magik6k Feb 6, 2024
a6102ce
v13: Diff migration fixes
magik6k Feb 6, 2024
92fe7cc
v13: Remove deals in diff migration wo miner state changes
magik6k Feb 6, 2024
191c05a
v13: Mute migration comments
magik6k Feb 6, 2024
6809342
v13: Use TryDelete in providerSectorsMemRemoved loop
magik6k Feb 7, 2024
791c685
v13: debug logging again
magik6k Feb 7, 2024
4abc56a
v13: Don't reuse variables in migration wrongly
magik6k Feb 7, 2024
4be4b30
v13 not slashed is -1, not slashed is -1, not sla..
magik6k Feb 7, 2024
b4466b2
v13 more migration debug logs
magik6k Feb 8, 2024
e88d613
v13: Remove DEALS in providerSectorsMemRemoved loop
magik6k Feb 8, 2024
a7dbfc3
v13: Mute migration comments
magik6k Feb 8, 2024
c675d85
v13: make AggregateProofType optional on ProveCommitSectors3Params & …
rvagg Feb 6, 2024
2eac3d4
Update for cbor-gen with nullable ints and without globals
rvagg Feb 7, 2024
90fc5ee
v13: Simplify invariants
magik6k Feb 8, 2024
e44a284
v13: Add missing provider entries invarient
magik6k Feb 9, 2024
90e0f57
v13: Move some global checks into market checks
magik6k Feb 9, 2024
884c4fc
v13: Cleanup miner migration
magik6k Feb 9, 2024
f339bd4
v13: Cleanup market migration
magik6k Feb 9, 2024
11fc27c
v13: fix deal sector match predicate
magik6k Feb 12, 2024
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
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
executors:
golang:
docker:
- image: circleci/golang:1.17
- image: cimg/go:1.18
resource_class: small

commands:
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- run:
name: "Install goimports"
command: |
cd / && go get golang.org/x/tools/cmd/goimports
cd / && go install golang.org/x/tools/cmd/goimports@latest
- run:
name: "Ensure we don't need to run 'make gen'"
command: |
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
default: golang
golangci-lint-version:
type: string
default: 1.42.1
default: 1.55.2
concurrency:
type: string
default: '2'
Expand Down
19 changes: 16 additions & 3 deletions builtin/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ var MethodsPaych = struct {
4,
}

// ext::miner::SECTOR_CONTENT_CHANGED
var MethodSectorContentChanged = MustGenerateFRCMethodNum("SectorContentChanged")

var MethodsMarket = struct {
Constructor abi.MethodNum
AddBalance abi.MethodNum
Expand All @@ -125,6 +128,8 @@ var MethodsMarket = struct {
GetDealProviderCollateralExported abi.MethodNum
GetDealVerifiedExported abi.MethodNum
GetDealActivationExported abi.MethodNum
GetDealSectorExported abi.MethodNum
SectorContentChangedExported abi.MethodNum
}{
MethodConstructor,
2,
Expand All @@ -149,6 +154,8 @@ var MethodsMarket = struct {
MustGenerateFRCMethodNum("GetDealProviderCollateral"),
MustGenerateFRCMethodNum("GetDealVerified"),
MustGenerateFRCMethodNum("GetDealActivation"),
MustGenerateFRCMethodNum("GetDealSector"),
MethodSectorContentChanged,
}

var MethodsPower = struct {
Expand Down Expand Up @@ -191,7 +198,7 @@ var MethodsMiner = struct {
ChangePeerID abi.MethodNum
ChangePeerIDExported abi.MethodNum
SubmitWindowedPoSt abi.MethodNum
PreCommitSector abi.MethodNum
PreCommitSector abi.MethodNum // deprecated av13
ProveCommitSector abi.MethodNum
ExtendSectorExpiration abi.MethodNum
TerminateSectors abi.MethodNum
Expand All @@ -215,11 +222,11 @@ var MethodsMiner = struct {
ChangeOwnerAddress abi.MethodNum
ChangeOwnerAddressExported abi.MethodNum
DisputeWindowedPoSt abi.MethodNum
PreCommitSectorBatch abi.MethodNum
PreCommitSectorBatch abi.MethodNum // deprecated av13
ProveCommitAggregate abi.MethodNum
ProveReplicaUpdates abi.MethodNum
PreCommitSectorBatch2 abi.MethodNum
ProveReplicaUpdates2 abi.MethodNum
ProveReplicaUpdates2 abi.MethodNum // deprecated av13
ChangeBeneficiary abi.MethodNum
ChangeBeneficiaryExported abi.MethodNum
GetBeneficiary abi.MethodNum
Expand All @@ -231,6 +238,9 @@ var MethodsMiner = struct {
GetVestingFundsExported abi.MethodNum
GetPeerIDExported abi.MethodNum
GetMultiaddrsExported abi.MethodNum
// MovePartitionsExported abi.MethodNum
ProveCommitSectors3 abi.MethodNum
ProveReplicaUpdates3 abi.MethodNum
}{
MethodConstructor,
2,
Expand Down Expand Up @@ -279,6 +289,9 @@ var MethodsMiner = struct {
MustGenerateFRCMethodNum("GetVestingFunds"),
MustGenerateFRCMethodNum("GetPeerID"),
MustGenerateFRCMethodNum("GetMultiaddrs"),
// MovePartitions: 33,
34,
35,
}

var MethodsVerifiedRegistry = struct {
Expand Down
19 changes: 11 additions & 8 deletions builtin/v10/account/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions builtin/v10/cron/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading