2021-03-23 12:42:56 +00:00
|
|
|
// Code generated by github.com/filecoin-project/lotus/gen/api. DO NOT EDIT.
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
package api
|
2019-06-29 09:19:06 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2021-08-20 15:31:01 +00:00
|
|
|
"encoding/json"
|
2020-07-08 15:23:27 +00:00
|
|
|
"time"
|
2019-12-05 04:43:54 +00:00
|
|
|
|
2024-02-11 13:08:54 +00:00
|
|
|
"github.com/google/uuid"
|
|
|
|
blocks "github.com/ipfs/go-block-format"
|
|
|
|
"github.com/ipfs/go-cid"
|
|
|
|
"github.com/libp2p/go-libp2p/core/metrics"
|
|
|
|
"github.com/libp2p/go-libp2p/core/network"
|
|
|
|
"github.com/libp2p/go-libp2p/core/peer"
|
|
|
|
"github.com/libp2p/go-libp2p/core/protocol"
|
|
|
|
"golang.org/x/xerrors"
|
|
|
|
|
OpenRPC Support (#5843)
* main: init implement rpc.Discover RPC method
This implement the basic functionality for the method
over HTTP RPC.
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init example with go-openrpc-reflect lib
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* main: make variable name human-friendly
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init impl of go-openrp-reflect printing document
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* go.mod,go.sum: use go-openrpc-reflect and open-rpc/meta-schema hackforks
This is for development only.
Versions need to be bumped when they're ready for use
as canonical remotes.
Signed-off-by: meows <b5c6@protonmail.com>
* main,openrpc,main: refactor openrpc supporting code to own package
This eliminates code duplication.
Signed-off-by: meows <b5c6@protonmail.com>
* main: add rpc.Discover to openrpc document
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: fix rpc.discover method name casing
Also fixes casing stuff for the rest of Filecoin.
methods.
Signed-off-by: meows <b5c6@protonmail.com>
* Revert "main: add rpc.Discover to openrpc document"
This reverts commit 116898efb10f33e405ac74acb1aa6daefcd46a62.
* main: fix document creation method name
This fixes an issue caused with the latest reverting
commit.
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen,openrpc: refactor to share api parsing, etc as docgen exported stuff
Signed-off-by: meows <b5c6@protonmail.com>
Makefile: fix docgen refactoring for makefile use of command
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: add schema.examples to app reflector
There are quite of few of these already registered
for the docgen command, so it makes sense to use
those!
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init method pairing examples
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump go.mod to use latest meta-schema and openrpc-reflect versions
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init SchemaType mapper function
This function will handle the manual configurations
for app-specific data types w/r/t their json schema
representation.
This is useful for cases where the reflect library
is unable to provide a sufficient representation
automatically.
Provided in this commit is an initial implementation
for the integerD type (assuming number are represented
in the API as hexs), and a commonly used cid.Cid type.
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: tame dependencies by bumping etclabscore/go-openrpc-reflect
This removes a problematic dependency
on github.com/ethereum/go-ethereum, which was
imported as a dependency for a couple github.com/etclabscore/go-openrpc-reflect
tests.
etclabscore/go-openrpc-reflect v0.0.36 has removed this
dependency, so this commit is the result of bumping
that version and then running 'go mod tidy'
This is in response to a review at
https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
Date: 2020-11-21 06:52:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: add 'miner' arg to openrpc gen cmd
This allows the command to EITHER
generate the doc for Full or Miner APIs.
See comment for usage.
Date: 2020-11-21 07:48:05-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen: add missing examples for Miner API
Generating the Miner API OpenRPC doc
(via 'go run ./api/openrpc/cmd miner') caused
the example logic to panic because some types
were missing.
This commit adds those missing types, although
I'm not an expert in the API so I can't
suggest that the example values provided are
ideal or well representative.
Date: 2020-11-21 07:50:21-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json,build/openrpc/miner.json: add build/openrpc/[full/miner].json docs
These will be used as static documents
provided by the rpc.discover method.
Date: 2020-11-21 07:51:39-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: init go-rice openrpc static assets
Date: 2020-11-21 08:23:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: remove rpc.discover implementation from runtime plugin
Instead of generating the doc on the fly,
we're going to serve a static asset.
Rel https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
This removes the runtime implementation from the
RPC server construction.
Date: 2020-11-21 08:41:20-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,common: add Discover(ctx) method to CommonAPI interface and structs
Date: 2020-11-21 08:41:56-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: use rpc server method aliasing for rpc.discover
This depends on a currently-forked change at
filecoin-project/go-jsonrpc 8350f9463ee451b187d35c492e32f1b999e80210
which establishes this new method RPCServer.AliasMethod.
This solves the problem that the OpenRPC
spec says that the document should be served
at the system extension-prefixed endpoing
rpc.discover (not Filecoin.Discover).
In fact, the document will be available at BOTH
endpoints, but that duplicity is harmless.
Date: 2020-11-21 09:18:26-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,build,common: rpc.discover: return json object instead of string
Instead of casting the JSON asset from bytes to string,
unmarshal it to a map[string]interface{} so the
server will provide it as a JSON object.
Date: 2020-11-21 09:27:11-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile: merge resolve: docsgen command path
Date: 2020-11-22 07:19:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,main,docgen,openrpc: merge resolve: fix func exporteds, signatures
Date: 2020-11-22 07:31:03-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: 'get get' auto-bumps version
Date: 2020-11-22 07:31:44-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,docgen,main,build/openrpc: refactor openrpc documentation generation
This creates Makefile command docsgen-openrpc-json,
and refactors the docsgen command to generate both
the markdown and openrpc json documents, redirecting
the output of the openrpc json documentation to
the build/openrpc/ directory, where those json
files will be compiled as static assets via go-rice
boxes.
The api/openrpc/cmd now uses usage argumentation
congruent to that of the docgen command (switching
on API context).
Date: 2020-11-22 08:01:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc: rename api/openrpc -> api/docgen-openrpc
Renames the package as well.
This is intended to parallel the
existing docgen package and command
namespacing.
Date: 2020-11-22 10:34:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,docgen,build,build/openrpc: use typed Discover response
Instead of using a map[string]interface{}, use
a typed response for the Discover method implementation.
This avoids having to set a docgen Example for
the generic map[string]interface{} (as an openrpc document)
which both pollutes the generic type and lacks
useful information for the Discover method example.
Date: 2020-11-22 08:31:16-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,build,main,impl: implement Discover method for Worker and StorageMiner APIs
Methods return static compiled assets respective
to the APIs.
Date: 2020-11-22 08:57:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen_openrpc,build/openrpc: remove timestamping from openrpc doc info
This should allow openrpc docs generated at different
times to be equal. This is important because the CI
(Circle) runs the docgen command and tests that
the output and the source are unchanged (via git diff).
Date: 2020-11-22 10:47:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc,main,build: fix lint issues
Fixes goimports, staticcheck, golint issues.
Date: 2020-11-22 11:06:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: fix: don't use an underscore in package name (golint)
Date: 2020-11-22 11:07:53-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: fix: mod-tidy-check (run 'go mod tidy')
Date: 2020-11-22 11:09:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc dep to latest
This version includes the necessary RPCServer.AliasMethod
method.
Date: 2020-11-23 12:16:15-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,main,build,build/openrpc: init gzipped openrpc static docs
Date: 2020-11-24 06:15:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: refactor gzip reading
Date: 2020-11-24 06:18:34-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: add basic test for openrpc doc from static assets
Date: 2020-11-24 06:30:23-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: handle reader Close error
This keeps the errcheck linter happy.
Date: 2020-11-24 06:33:14-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: run 'go mod tidy'
Date: 2020-11-24 06:36:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: go mod tidy
Tidying up after resolving the merge conflicts
with master at go.mod
Date: 2020-11-24 06:40:45-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc to latest
This is a repeat of 76e6fd2, since the latest merge
to master seems to have reverted this.
Date: 2020-11-24 06:42:30-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc,build/openrpc: remove method example pairings, improve schema examples
Removing method example pairings since they were
redundant to schema examples and were not
implemented well.
Improved schema examples by using the ExampleValue
method instead of the map lookup.
Made a note in the comment here that this is
not ideal, since we have to make a shortcut assumption
/workaround by using 'unknown' as the method name
and the typea as its own parent.
Luckily these values aren't heavily used by the
method logic.
Date: 2020-11-27 12:57:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: use generic number jsonschema for number types
Previously used an integer schema assuming
hex encoding. It appears, based on review some
of the examples, that this may not be the case.
Obvioussly this schema could be more descriptive,
but just shooting for mostly likely to be
not wrong at this point.
Date: 2020-12-15 14:44:37-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* cmd/lotus,go.mod,go.sum: maybe fix straggling merge resolution conflicts
Date: 2021-01-19 12:30:42-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json.gz,build/openrpc/miner.json.gz,build/openrpc/worker.json.gz: run 'make docsgen'
Date: 2021-01-19 12:33:55-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/apistruct,node/impl: (lint) gofmt
Date: 2021-01-19 12:39:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: maybe fix parse error: open ./api: no such file or directory
Date: 2021-01-19 12:52:04-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen,build/openrpc: maybe fix no such file error and run 'make docsgen'
Date: 2021-01-19 12:55:52-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: return if AST comment/groupdoc parsing encounters any error
This will returns empty comments/docs maps.
This should fix issues like:
https://app.circleci.com/pipelines/github/filecoin-project/lotus/12445/workflows/4ebadce9-a298-4ad1-939b-f19ef4c0a5bf/jobs/107218
where the environment makes file lookups hard or
impossible.
Date: 2021-01-19 13:04:58-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api: Don't depend on build/
* make: support parallel docsgen
* openrpc gen: Use simple build version
* methodgen
* goimports
Co-authored-by: meows <b5c6@protonmail.com>
2021-03-19 18:22:46 +00:00
|
|
|
"github.com/filecoin-project/go-address"
|
|
|
|
"github.com/filecoin-project/go-bitfield"
|
2023-01-16 13:54:26 +00:00
|
|
|
"github.com/filecoin-project/go-jsonrpc"
|
2020-05-20 18:23:51 +00:00
|
|
|
"github.com/filecoin-project/go-jsonrpc/auth"
|
2020-09-07 03:49:10 +00:00
|
|
|
"github.com/filecoin-project/go-state-types/abi"
|
2022-04-20 21:34:28 +00:00
|
|
|
"github.com/filecoin-project/go-state-types/builtin/v8/paych"
|
2022-10-03 05:51:30 +00:00
|
|
|
verifregtypes "github.com/filecoin-project/go-state-types/builtin/v9/verifreg"
|
2020-09-07 03:49:10 +00:00
|
|
|
"github.com/filecoin-project/go-state-types/crypto"
|
2020-09-14 13:17:00 +00:00
|
|
|
"github.com/filecoin-project/go-state-types/dline"
|
2021-12-08 17:11:19 +00:00
|
|
|
abinetwork "github.com/filecoin-project/go-state-types/network"
|
2022-04-20 21:34:28 +00:00
|
|
|
"github.com/filecoin-project/go-state-types/proof"
|
2024-02-11 13:08:54 +00:00
|
|
|
|
OpenRPC Support (#5843)
* main: init implement rpc.Discover RPC method
This implement the basic functionality for the method
over HTTP RPC.
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init example with go-openrpc-reflect lib
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* main: make variable name human-friendly
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init impl of go-openrp-reflect printing document
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* go.mod,go.sum: use go-openrpc-reflect and open-rpc/meta-schema hackforks
This is for development only.
Versions need to be bumped when they're ready for use
as canonical remotes.
Signed-off-by: meows <b5c6@protonmail.com>
* main,openrpc,main: refactor openrpc supporting code to own package
This eliminates code duplication.
Signed-off-by: meows <b5c6@protonmail.com>
* main: add rpc.Discover to openrpc document
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: fix rpc.discover method name casing
Also fixes casing stuff for the rest of Filecoin.
methods.
Signed-off-by: meows <b5c6@protonmail.com>
* Revert "main: add rpc.Discover to openrpc document"
This reverts commit 116898efb10f33e405ac74acb1aa6daefcd46a62.
* main: fix document creation method name
This fixes an issue caused with the latest reverting
commit.
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen,openrpc: refactor to share api parsing, etc as docgen exported stuff
Signed-off-by: meows <b5c6@protonmail.com>
Makefile: fix docgen refactoring for makefile use of command
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: add schema.examples to app reflector
There are quite of few of these already registered
for the docgen command, so it makes sense to use
those!
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init method pairing examples
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump go.mod to use latest meta-schema and openrpc-reflect versions
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init SchemaType mapper function
This function will handle the manual configurations
for app-specific data types w/r/t their json schema
representation.
This is useful for cases where the reflect library
is unable to provide a sufficient representation
automatically.
Provided in this commit is an initial implementation
for the integerD type (assuming number are represented
in the API as hexs), and a commonly used cid.Cid type.
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: tame dependencies by bumping etclabscore/go-openrpc-reflect
This removes a problematic dependency
on github.com/ethereum/go-ethereum, which was
imported as a dependency for a couple github.com/etclabscore/go-openrpc-reflect
tests.
etclabscore/go-openrpc-reflect v0.0.36 has removed this
dependency, so this commit is the result of bumping
that version and then running 'go mod tidy'
This is in response to a review at
https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
Date: 2020-11-21 06:52:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: add 'miner' arg to openrpc gen cmd
This allows the command to EITHER
generate the doc for Full or Miner APIs.
See comment for usage.
Date: 2020-11-21 07:48:05-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen: add missing examples for Miner API
Generating the Miner API OpenRPC doc
(via 'go run ./api/openrpc/cmd miner') caused
the example logic to panic because some types
were missing.
This commit adds those missing types, although
I'm not an expert in the API so I can't
suggest that the example values provided are
ideal or well representative.
Date: 2020-11-21 07:50:21-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json,build/openrpc/miner.json: add build/openrpc/[full/miner].json docs
These will be used as static documents
provided by the rpc.discover method.
Date: 2020-11-21 07:51:39-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: init go-rice openrpc static assets
Date: 2020-11-21 08:23:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: remove rpc.discover implementation from runtime plugin
Instead of generating the doc on the fly,
we're going to serve a static asset.
Rel https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
This removes the runtime implementation from the
RPC server construction.
Date: 2020-11-21 08:41:20-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,common: add Discover(ctx) method to CommonAPI interface and structs
Date: 2020-11-21 08:41:56-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: use rpc server method aliasing for rpc.discover
This depends on a currently-forked change at
filecoin-project/go-jsonrpc 8350f9463ee451b187d35c492e32f1b999e80210
which establishes this new method RPCServer.AliasMethod.
This solves the problem that the OpenRPC
spec says that the document should be served
at the system extension-prefixed endpoing
rpc.discover (not Filecoin.Discover).
In fact, the document will be available at BOTH
endpoints, but that duplicity is harmless.
Date: 2020-11-21 09:18:26-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,build,common: rpc.discover: return json object instead of string
Instead of casting the JSON asset from bytes to string,
unmarshal it to a map[string]interface{} so the
server will provide it as a JSON object.
Date: 2020-11-21 09:27:11-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile: merge resolve: docsgen command path
Date: 2020-11-22 07:19:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,main,docgen,openrpc: merge resolve: fix func exporteds, signatures
Date: 2020-11-22 07:31:03-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: 'get get' auto-bumps version
Date: 2020-11-22 07:31:44-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,docgen,main,build/openrpc: refactor openrpc documentation generation
This creates Makefile command docsgen-openrpc-json,
and refactors the docsgen command to generate both
the markdown and openrpc json documents, redirecting
the output of the openrpc json documentation to
the build/openrpc/ directory, where those json
files will be compiled as static assets via go-rice
boxes.
The api/openrpc/cmd now uses usage argumentation
congruent to that of the docgen command (switching
on API context).
Date: 2020-11-22 08:01:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc: rename api/openrpc -> api/docgen-openrpc
Renames the package as well.
This is intended to parallel the
existing docgen package and command
namespacing.
Date: 2020-11-22 10:34:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,docgen,build,build/openrpc: use typed Discover response
Instead of using a map[string]interface{}, use
a typed response for the Discover method implementation.
This avoids having to set a docgen Example for
the generic map[string]interface{} (as an openrpc document)
which both pollutes the generic type and lacks
useful information for the Discover method example.
Date: 2020-11-22 08:31:16-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,build,main,impl: implement Discover method for Worker and StorageMiner APIs
Methods return static compiled assets respective
to the APIs.
Date: 2020-11-22 08:57:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen_openrpc,build/openrpc: remove timestamping from openrpc doc info
This should allow openrpc docs generated at different
times to be equal. This is important because the CI
(Circle) runs the docgen command and tests that
the output and the source are unchanged (via git diff).
Date: 2020-11-22 10:47:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc,main,build: fix lint issues
Fixes goimports, staticcheck, golint issues.
Date: 2020-11-22 11:06:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: fix: don't use an underscore in package name (golint)
Date: 2020-11-22 11:07:53-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: fix: mod-tidy-check (run 'go mod tidy')
Date: 2020-11-22 11:09:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc dep to latest
This version includes the necessary RPCServer.AliasMethod
method.
Date: 2020-11-23 12:16:15-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,main,build,build/openrpc: init gzipped openrpc static docs
Date: 2020-11-24 06:15:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: refactor gzip reading
Date: 2020-11-24 06:18:34-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: add basic test for openrpc doc from static assets
Date: 2020-11-24 06:30:23-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: handle reader Close error
This keeps the errcheck linter happy.
Date: 2020-11-24 06:33:14-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: run 'go mod tidy'
Date: 2020-11-24 06:36:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: go mod tidy
Tidying up after resolving the merge conflicts
with master at go.mod
Date: 2020-11-24 06:40:45-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc to latest
This is a repeat of 76e6fd2, since the latest merge
to master seems to have reverted this.
Date: 2020-11-24 06:42:30-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc,build/openrpc: remove method example pairings, improve schema examples
Removing method example pairings since they were
redundant to schema examples and were not
implemented well.
Improved schema examples by using the ExampleValue
method instead of the map lookup.
Made a note in the comment here that this is
not ideal, since we have to make a shortcut assumption
/workaround by using 'unknown' as the method name
and the typea as its own parent.
Luckily these values aren't heavily used by the
method logic.
Date: 2020-11-27 12:57:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: use generic number jsonschema for number types
Previously used an integer schema assuming
hex encoding. It appears, based on review some
of the examples, that this may not be the case.
Obvioussly this schema could be more descriptive,
but just shooting for mostly likely to be
not wrong at this point.
Date: 2020-12-15 14:44:37-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* cmd/lotus,go.mod,go.sum: maybe fix straggling merge resolution conflicts
Date: 2021-01-19 12:30:42-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json.gz,build/openrpc/miner.json.gz,build/openrpc/worker.json.gz: run 'make docsgen'
Date: 2021-01-19 12:33:55-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/apistruct,node/impl: (lint) gofmt
Date: 2021-01-19 12:39:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: maybe fix parse error: open ./api: no such file or directory
Date: 2021-01-19 12:52:04-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen,build/openrpc: maybe fix no such file error and run 'make docsgen'
Date: 2021-01-19 12:55:52-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: return if AST comment/groupdoc parsing encounters any error
This will returns empty comments/docs maps.
This should fix issues like:
https://app.circleci.com/pipelines/github/filecoin-project/lotus/12445/workflows/4ebadce9-a298-4ad1-939b-f19ef4c0a5bf/jobs/107218
where the environment makes file lookups hard or
impossible.
Date: 2021-01-19 13:04:58-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api: Don't depend on build/
* make: support parallel docsgen
* openrpc gen: Use simple build version
* methodgen
* goimports
Co-authored-by: meows <b5c6@protonmail.com>
2021-03-19 18:22:46 +00:00
|
|
|
apitypes "github.com/filecoin-project/lotus/api/types"
|
2022-11-10 15:04:58 +00:00
|
|
|
builtinactors "github.com/filecoin-project/lotus/chain/actors/builtin"
|
2023-08-29 13:16:05 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/actors/builtin/verifreg"
|
2019-10-18 04:47:41 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/types"
|
2022-12-16 21:35:43 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/types/ethtypes"
|
2021-08-17 12:51:54 +00:00
|
|
|
"github.com/filecoin-project/lotus/journal/alerting"
|
2020-03-31 23:13:37 +00:00
|
|
|
"github.com/filecoin-project/lotus/node/modules/dtypes"
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
"github.com/filecoin-project/lotus/storage/pipeline/piece"
|
2022-06-14 17:41:59 +00:00
|
|
|
"github.com/filecoin-project/lotus/storage/pipeline/sealiface"
|
2022-06-14 18:03:38 +00:00
|
|
|
"github.com/filecoin-project/lotus/storage/sealer/fsutil"
|
|
|
|
"github.com/filecoin-project/lotus/storage/sealer/sealtasks"
|
2022-06-15 10:31:02 +00:00
|
|
|
"github.com/filecoin-project/lotus/storage/sealer/storiface"
|
2019-06-29 09:19:06 +00:00
|
|
|
)
|
|
|
|
|
2021-07-23 23:16:42 +00:00
|
|
|
var ErrNotSupported = xerrors.New("method not supported")
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
type ChainIOStruct struct {
|
2023-01-16 13:54:26 +00:00
|
|
|
Internal ChainIOMethods
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
type ChainIOMethods struct {
|
|
|
|
ChainHasObj func(p0 context.Context, p1 cid.Cid) (bool, error) ``
|
2022-06-07 03:14:16 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainPutObj func(p0 context.Context, p1 blocks.Block) error ``
|
|
|
|
|
|
|
|
ChainReadObj func(p0 context.Context, p1 cid.Cid) ([]byte, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
}
|
2019-07-23 20:05:44 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
type ChainIOStub struct {
|
|
|
|
}
|
|
|
|
|
2019-07-24 00:09:34 +00:00
|
|
|
type CommonStruct struct {
|
2023-01-16 13:54:26 +00:00
|
|
|
Internal CommonMethods
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
type CommonMethods struct {
|
|
|
|
AuthNew func(p0 context.Context, p1 []auth.Permission) ([]byte, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
AuthVerify func(p0 context.Context, p1 string) ([]auth.Permission, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Closing func(p0 context.Context) (<-chan struct{}, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Discover func(p0 context.Context) (apitypes.OpenRPCDocument, error) `perm:"read"`
|
2021-08-17 12:51:54 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
LogAlerts func(p0 context.Context) ([]alerting.Alert, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
LogList func(p0 context.Context) ([]string, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
LogSetLevel func(p0 context.Context, p1 string, p2 string) error `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Session func(p0 context.Context) (uuid.UUID, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Shutdown func(p0 context.Context) error `perm:"admin"`
|
2022-10-05 19:44:55 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StartTime func(p0 context.Context) (time.Time, error) `perm:"read"`
|
|
|
|
|
|
|
|
Version func(p0 context.Context) (APIVersion, error) `perm:"read"`
|
2019-07-24 00:09:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
type CommonStub struct {
|
|
|
|
}
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
type EthSubscriberStruct struct {
|
|
|
|
Internal EthSubscriberMethods
|
|
|
|
}
|
|
|
|
|
|
|
|
type EthSubscriberMethods struct {
|
2023-02-17 23:06:58 +00:00
|
|
|
EthSubscription func(p0 context.Context, p1 jsonrpc.RawParams) error `notify:"true" rpc_method:"eth_subscription"`
|
2023-01-16 13:54:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type EthSubscriberStub struct {
|
|
|
|
}
|
|
|
|
|
2019-07-24 00:09:34 +00:00
|
|
|
type FullNodeStruct struct {
|
|
|
|
CommonStruct
|
2019-07-08 19:07:16 +00:00
|
|
|
|
2021-06-29 12:07:00 +00:00
|
|
|
NetStruct
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Internal FullNodeMethods
|
|
|
|
}
|
|
|
|
|
|
|
|
type FullNodeMethods struct {
|
|
|
|
ChainBlockstoreInfo func(p0 context.Context) (map[string]interface{}, error) `perm:"read"`
|
2021-07-26 05:33:25 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainCheckBlockstore func(p0 context.Context) error `perm:"admin"`
|
2021-07-25 08:25:29 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainDeleteObj func(p0 context.Context, p1 cid.Cid) error `perm:"admin"`
|
2019-12-11 23:31:59 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainExport func(p0 context.Context, p1 abi.ChainEpoch, p2 bool, p3 types.TipSetKey) (<-chan []byte, error) `perm:"read"`
|
2019-07-23 17:27:45 +00:00
|
|
|
|
2023-02-14 14:32:28 +00:00
|
|
|
ChainExportRangeInternal func(p0 context.Context, p1 types.TipSetKey, p2 types.TipSetKey, p3 ChainExportConfig) error `perm:"admin"`
|
2022-08-20 00:41:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetBlock func(p0 context.Context, p1 cid.Cid) (*types.BlockHeader, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetBlockMessages func(p0 context.Context, p1 cid.Cid) (*BlockMessages, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetEvents func(p0 context.Context, p1 cid.Cid) ([]types.Event, error) `perm:"read"`
|
2022-11-16 13:53:27 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetGenesis func(p0 context.Context) (*types.TipSet, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetMessage func(p0 context.Context, p1 cid.Cid) (*types.Message, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetMessagesInTipset func(p0 context.Context, p1 types.TipSetKey) ([]Message, error) `perm:"read"`
|
2021-07-01 03:20:22 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetNode func(p0 context.Context, p1 string) (*IpldObject, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetParentMessages func(p0 context.Context, p1 cid.Cid) ([]Message, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetParentReceipts func(p0 context.Context, p1 cid.Cid) ([]*types.MessageReceipt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetPath func(p0 context.Context, p1 types.TipSetKey, p2 types.TipSetKey) ([]*HeadChange, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetTipSet func(p0 context.Context, p1 types.TipSetKey) (*types.TipSet, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetTipSetAfterHeight func(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) `perm:"read"`
|
2021-08-05 17:53:12 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetTipSetByHeight func(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainHasObj func(p0 context.Context, p1 cid.Cid) (bool, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainHead func(p0 context.Context) (*types.TipSet, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-03-03 16:14:52 +00:00
|
|
|
ChainHotGC func(p0 context.Context, p1 HotGCOpts) error `perm:"admin"`
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainNotify func(p0 context.Context) (<-chan []*HeadChange, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainPrune func(p0 context.Context, p1 PruneOpts) error `perm:"admin"`
|
2022-08-05 20:34:16 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainPutObj func(p0 context.Context, p1 blocks.Block) error `perm:"admin"`
|
2022-06-07 03:14:16 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainReadObj func(p0 context.Context, p1 cid.Cid) ([]byte, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainSetHead func(p0 context.Context, p1 types.TipSetKey) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainStatObj func(p0 context.Context, p1 cid.Cid, p2 cid.Cid) (ObjStat, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainTipSetWeight func(p0 context.Context, p1 types.TipSetKey) (types.BigInt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
CreateBackup func(p0 context.Context, p1 string) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthAccounts func(p0 context.Context) ([]ethtypes.EthAddress, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-02-15 19:17:00 +00:00
|
|
|
EthAddressToFilecoinAddress func(p0 context.Context, p1 ethtypes.EthAddress) (address.Address, error) `perm:"read"`
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthBlockNumber func(p0 context.Context) (ethtypes.EthUint64, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthCall func(p0 context.Context, p1 ethtypes.EthCall, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) `perm:"read"`
|
2022-09-12 21:46:15 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthChainId func(p0 context.Context) (ethtypes.EthUint64, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-11-29 10:17:10 +00:00
|
|
|
EthEstimateGas func(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthUint64, error) `perm:"read"`
|
2022-09-12 21:46:15 +00:00
|
|
|
|
2023-02-10 18:33:59 +00:00
|
|
|
EthFeeHistory func(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthFeeHistory, error) `perm:"read"`
|
2022-10-22 15:31:58 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGasPrice func(p0 context.Context) (ethtypes.EthBigInt, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthGetBalance func(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBigInt, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetBlockByHash func(p0 context.Context, p1 ethtypes.EthHash, p2 bool) (ethtypes.EthBlock, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetBlockByNumber func(p0 context.Context, p1 string, p2 bool) (ethtypes.EthBlock, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetBlockTransactionCountByHash func(p0 context.Context, p1 ethtypes.EthHash) (ethtypes.EthUint64, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetBlockTransactionCountByNumber func(p0 context.Context, p1 ethtypes.EthUint64) (ethtypes.EthUint64, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthGetCode func(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-05-04 16:09:57 +00:00
|
|
|
EthGetFilterChanges func(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) `perm:"read"`
|
2022-11-10 15:04:58 +00:00
|
|
|
|
2023-05-04 16:09:57 +00:00
|
|
|
EthGetFilterLogs func(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) `perm:"read"`
|
2022-11-10 15:04:58 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetLogs func(p0 context.Context, p1 *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error) `perm:"read"`
|
2022-11-10 15:04:58 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetMessageCidByTransactionHash func(p0 context.Context, p1 *ethtypes.EthHash) (*cid.Cid, error) `perm:"read"`
|
2023-01-18 22:48:10 +00:00
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthGetStorageAt func(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBytes, p3 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetTransactionByBlockHashAndIndex func(p0 context.Context, p1 ethtypes.EthHash, p2 ethtypes.EthUint64) (ethtypes.EthTx, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetTransactionByBlockNumberAndIndex func(p0 context.Context, p1 ethtypes.EthUint64, p2 ethtypes.EthUint64) (ethtypes.EthTx, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetTransactionByHash func(p0 context.Context, p1 *ethtypes.EthHash) (*ethtypes.EthTx, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-03-14 04:59:16 +00:00
|
|
|
EthGetTransactionByHashLimited func(p0 context.Context, p1 *ethtypes.EthHash, p2 abi.ChainEpoch) (*ethtypes.EthTx, error) `perm:"read"`
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthGetTransactionCount func(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthUint64, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetTransactionHashByCid func(p0 context.Context, p1 cid.Cid) (*ethtypes.EthHash, error) `perm:"read"`
|
2023-01-04 13:22:41 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetTransactionReceipt func(p0 context.Context, p1 ethtypes.EthHash) (*EthTxReceipt, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-03-14 04:59:16 +00:00
|
|
|
EthGetTransactionReceiptLimited func(p0 context.Context, p1 ethtypes.EthHash, p2 abi.ChainEpoch) (*EthTxReceipt, error) `perm:"read"`
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthMaxPriorityFeePerGas func(p0 context.Context) (ethtypes.EthBigInt, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-05-04 16:09:57 +00:00
|
|
|
EthNewBlockFilter func(p0 context.Context) (ethtypes.EthFilterID, error) `perm:"read"`
|
2022-11-10 15:04:58 +00:00
|
|
|
|
2023-05-04 16:09:57 +00:00
|
|
|
EthNewFilter func(p0 context.Context, p1 *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error) `perm:"read"`
|
2022-11-10 15:04:58 +00:00
|
|
|
|
2023-05-04 16:09:57 +00:00
|
|
|
EthNewPendingTransactionFilter func(p0 context.Context) (ethtypes.EthFilterID, error) `perm:"read"`
|
2022-11-10 15:04:58 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthProtocolVersion func(p0 context.Context) (ethtypes.EthUint64, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthSendRawTransaction func(p0 context.Context, p1 ethtypes.EthBytes) (ethtypes.EthHash, error) `perm:"read"`
|
2022-09-28 14:58:24 +00:00
|
|
|
|
2023-05-04 16:09:57 +00:00
|
|
|
EthSubscribe func(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error) `perm:"read"`
|
2022-11-10 15:04:58 +00:00
|
|
|
|
2023-04-21 12:02:40 +00:00
|
|
|
EthSyncing func(p0 context.Context) (ethtypes.EthSyncingResult, error) `perm:"read"`
|
|
|
|
|
2023-08-22 16:15:14 +00:00
|
|
|
EthTraceBlock func(p0 context.Context, p1 string) ([]*ethtypes.EthTraceBlock, error) `perm:"read"`
|
|
|
|
|
|
|
|
EthTraceReplayBlockTransactions func(p0 context.Context, p1 string, p2 []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error) `perm:"read"`
|
|
|
|
|
2024-06-07 18:14:34 +00:00
|
|
|
EthTraceTransaction func(p0 context.Context, p1 string) ([]*ethtypes.EthTraceTransaction, error) `perm:"read"`
|
|
|
|
|
2023-05-04 16:09:57 +00:00
|
|
|
EthUninstallFilter func(p0 context.Context, p1 ethtypes.EthFilterID) (bool, error) `perm:"read"`
|
2022-11-10 15:04:58 +00:00
|
|
|
|
2023-05-04 16:09:57 +00:00
|
|
|
EthUnsubscribe func(p0 context.Context, p1 ethtypes.EthSubscriptionID) (bool, error) `perm:"read"`
|
2022-11-10 15:04:58 +00:00
|
|
|
|
2023-02-24 19:19:52 +00:00
|
|
|
FilecoinAddressToEthAddress func(p0 context.Context, p1 address.Address) (ethtypes.EthAddress, error) `perm:"read"`
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
GasEstimateFeeCap func(p0 context.Context, p1 *types.Message, p2 int64, p3 types.TipSetKey) (types.BigInt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
GasEstimateGasLimit func(p0 context.Context, p1 *types.Message, p2 types.TipSetKey) (int64, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
GasEstimateGasPremium func(p0 context.Context, p1 uint64, p2 address.Address, p3 int64, p4 types.TipSetKey) (types.BigInt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
GasEstimateMessageGas func(p0 context.Context, p1 *types.Message, p2 *MessageSendSpec, p3 types.TipSetKey) (*types.Message, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
GetActorEventsRaw func(p0 context.Context, p1 *types.ActorEventFilter) ([]*types.ActorEvent, error) `perm:"read"`
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MarketAddBalance func(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (cid.Cid, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MarketGetReserved func(p0 context.Context, p1 address.Address) (types.BigInt, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MarketReleaseFunds func(p0 context.Context, p1 address.Address, p2 types.BigInt) error `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MarketReserveFunds func(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (cid.Cid, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MarketWithdraw func(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (cid.Cid, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MinerCreateBlock func(p0 context.Context, p1 *BlockTemplate) (*types.BlockMsg, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MinerGetBaseInfo func(p0 context.Context, p1 address.Address, p2 abi.ChainEpoch, p3 types.TipSetKey) (*MiningBaseInfo, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolBatchPush func(p0 context.Context, p1 []*types.SignedMessage) ([]cid.Cid, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolBatchPushMessage func(p0 context.Context, p1 []*types.Message, p2 *MessageSendSpec) ([]*types.SignedMessage, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolBatchPushUntrusted func(p0 context.Context, p1 []*types.SignedMessage) ([]cid.Cid, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolCheckMessages func(p0 context.Context, p1 []*MessagePrototype) ([][]MessageCheckStatus, error) `perm:"read"`
|
2021-03-12 15:10:12 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolCheckPendingMessages func(p0 context.Context, p1 address.Address) ([][]MessageCheckStatus, error) `perm:"read"`
|
2021-03-12 15:10:12 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolCheckReplaceMessages func(p0 context.Context, p1 []*types.Message) ([][]MessageCheckStatus, error) `perm:"read"`
|
2021-03-23 14:55:38 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolClear func(p0 context.Context, p1 bool) error `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolGetConfig func(p0 context.Context) (*types.MpoolConfig, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolGetNonce func(p0 context.Context, p1 address.Address) (uint64, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolPending func(p0 context.Context, p1 types.TipSetKey) ([]*types.SignedMessage, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolPush func(p0 context.Context, p1 *types.SignedMessage) (cid.Cid, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolPushMessage func(p0 context.Context, p1 *types.Message, p2 *MessageSendSpec) (*types.SignedMessage, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolPushUntrusted func(p0 context.Context, p1 *types.SignedMessage) (cid.Cid, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolSelect func(p0 context.Context, p1 types.TipSetKey, p2 float64) ([]*types.SignedMessage, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolSetConfig func(p0 context.Context, p1 *types.MpoolConfig) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolSub func(p0 context.Context) (<-chan MpoolUpdate, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigAddApprove func(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 address.Address, p6 bool) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigAddCancel func(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 bool) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigAddPropose func(p0 context.Context, p1 address.Address, p2 address.Address, p3 address.Address, p4 bool) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigApprove func(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigApproveTxnHash func(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address, p4 address.Address, p5 types.BigInt, p6 address.Address, p7 uint64, p8 []byte) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigCancel func(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address) (*MessagePrototype, error) `perm:"sign"`
|
2021-11-18 23:52:20 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigCancelTxnHash func(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address, p4 types.BigInt, p5 address.Address, p6 uint64, p7 []byte) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigCreate func(p0 context.Context, p1 uint64, p2 []address.Address, p3 abi.ChainEpoch, p4 types.BigInt, p5 address.Address, p6 types.BigInt) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigGetAvailableBalance func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigGetPending func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*MsigTransaction, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigGetVested func(p0 context.Context, p1 address.Address, p2 types.TipSetKey, p3 types.TipSetKey) (types.BigInt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigGetVestingSchedule func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MsigVesting, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigPropose func(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt, p4 address.Address, p5 uint64, p6 []byte) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigRemoveSigner func(p0 context.Context, p1 address.Address, p2 address.Address, p3 address.Address, p4 bool) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigSwapApprove func(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 address.Address, p6 address.Address) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigSwapCancel func(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 address.Address) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigSwapPropose func(p0 context.Context, p1 address.Address, p2 address.Address, p3 address.Address, p4 address.Address) (*MessagePrototype, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetListening func(p0 context.Context) (bool, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetVersion func(p0 context.Context) (string, error) `perm:"read"`
|
2022-09-09 17:59:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NodeStatus func(p0 context.Context, p1 bool) (NodeStatus, error) `perm:"read"`
|
2021-03-10 17:22:35 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychAllocateLane func(p0 context.Context, p1 address.Address) (uint64, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychAvailableFunds func(p0 context.Context, p1 address.Address) (*ChannelAvailableFunds, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychAvailableFundsByFromTo func(p0 context.Context, p1 address.Address, p2 address.Address) (*ChannelAvailableFunds, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychCollect func(p0 context.Context, p1 address.Address) (cid.Cid, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychFund func(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (*ChannelInfo, error) `perm:"sign"`
|
2022-02-14 18:56:02 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychGet func(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt, p4 PaychGetOpts) (*ChannelInfo, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychGetWaitReady func(p0 context.Context, p1 cid.Cid) (address.Address, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychList func(p0 context.Context) ([]address.Address, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychNewPayment func(p0 context.Context, p1 address.Address, p2 address.Address, p3 []VoucherSpec) (*PaymentInfo, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychSettle func(p0 context.Context, p1 address.Address) (cid.Cid, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychStatus func(p0 context.Context, p1 address.Address) (*PaychStatus, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychVoucherAdd func(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher, p3 []byte, p4 types.BigInt) (types.BigInt, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychVoucherCheckSpendable func(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher, p3 []byte, p4 []byte) (bool, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychVoucherCheckValid func(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher) error `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychVoucherCreate func(p0 context.Context, p1 address.Address, p2 types.BigInt, p3 uint64) (*VoucherCreateResult, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychVoucherList func(p0 context.Context, p1 address.Address) ([]*paych.SignedVoucher, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PaychVoucherSubmit func(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher, p3 []byte, p4 []byte) (cid.Cid, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateAccountKey func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateActorCodeCIDs func(p0 context.Context, p1 abinetwork.Version) (map[string]cid.Cid, error) `perm:"read"`
|
2022-06-23 18:05:20 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateActorManifestCID func(p0 context.Context, p1 abinetwork.Version) (cid.Cid, error) `perm:"read"`
|
2022-08-22 21:10:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateAllMinerFaults func(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) ([]*Fault, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateCall func(p0 context.Context, p1 *types.Message, p2 types.TipSetKey) (*InvocResult, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateChangedActors func(p0 context.Context, p1 cid.Cid, p2 cid.Cid) (map[string]types.Actor, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateCirculatingSupply func(p0 context.Context, p1 types.TipSetKey) (abi.TokenAmount, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateCompute func(p0 context.Context, p1 abi.ChainEpoch, p2 []*types.Message, p3 types.TipSetKey) (*ComputeStateOutput, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateComputeDataCID func(p0 context.Context, p1 address.Address, p2 abi.RegisteredSealProof, p3 []abi.DealID, p4 types.TipSetKey) (cid.Cid, error) `perm:"read"`
|
2022-06-16 11:26:50 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateDealProviderCollateralBounds func(p0 context.Context, p1 abi.PaddedPieceSize, p2 bool, p3 types.TipSetKey) (DealCollateralBounds, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateDecodeParams func(p0 context.Context, p1 address.Address, p2 abi.MethodNum, p3 []byte, p4 types.TipSetKey) (interface{}, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateEncodeParams func(p0 context.Context, p1 cid.Cid, p2 abi.MethodNum, p3 json.RawMessage) ([]byte, error) `perm:"read"`
|
2021-08-20 15:31:01 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetActor func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*types.Actor, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
StateGetAllAllocations func(p0 context.Context, p1 types.TipSetKey) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error) `perm:"read"`
|
|
|
|
|
|
|
|
StateGetAllClaims func(p0 context.Context, p1 types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error) `perm:"read"`
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetAllocation func(p0 context.Context, p1 address.Address, p2 verifregtypes.AllocationId, p3 types.TipSetKey) (*verifregtypes.Allocation, error) `perm:"read"`
|
2022-10-03 05:51:30 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetAllocationForPendingDeal func(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*verifregtypes.Allocation, error) `perm:"read"`
|
2021-09-27 01:23:41 +00:00
|
|
|
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
StateGetAllocationIdForPendingDeal func(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (verifreg.AllocationId, error) `perm:"read"`
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetAllocations func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error) `perm:"read"`
|
2022-10-05 22:45:43 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetBeaconEntry func(p0 context.Context, p1 abi.ChainEpoch) (*types.BeaconEntry, error) `perm:"read"`
|
2021-09-27 01:23:41 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetClaim func(p0 context.Context, p1 address.Address, p2 verifregtypes.ClaimId, p3 types.TipSetKey) (*verifregtypes.Claim, error) `perm:"read"`
|
2022-10-05 22:45:43 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetClaims func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error) `perm:"read"`
|
2022-10-05 22:45:43 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetNetworkParams func(p0 context.Context) (*NetworkParams, error) `perm:"read"`
|
2022-04-24 05:48:07 +00:00
|
|
|
|
2023-08-16 15:55:37 +00:00
|
|
|
StateGetRandomnessDigestFromBeacon func(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (abi.Randomness, error) `perm:"read"`
|
|
|
|
|
|
|
|
StateGetRandomnessDigestFromTickets func(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (abi.Randomness, error) `perm:"read"`
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetRandomnessFromBeacon func(p0 context.Context, p1 crypto.DomainSeparationTag, p2 abi.ChainEpoch, p3 []byte, p4 types.TipSetKey) (abi.Randomness, error) `perm:"read"`
|
2021-09-12 02:24:53 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetRandomnessFromTickets func(p0 context.Context, p1 crypto.DomainSeparationTag, p2 abi.ChainEpoch, p3 []byte, p4 types.TipSetKey) (abi.Randomness, error) `perm:"read"`
|
2021-09-12 02:24:53 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateListActors func(p0 context.Context, p1 types.TipSetKey) ([]address.Address, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateListMessages func(p0 context.Context, p1 *MessageMatch, p2 types.TipSetKey, p3 abi.ChainEpoch) ([]cid.Cid, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateListMiners func(p0 context.Context, p1 types.TipSetKey) ([]address.Address, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateLookupID func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateLookupRobustAddress func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) `perm:"read"`
|
2022-04-14 21:30:07 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMarketBalance func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MarketBalance, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMarketDeals func(p0 context.Context, p1 types.TipSetKey) (map[string]*MarketDeal, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMarketParticipants func(p0 context.Context, p1 types.TipSetKey) (map[string]MarketBalance, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMarketStorageDeal func(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*MarketDeal, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerActiveSectors func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*miner.SectorOnChainInfo, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerAllocated func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*bitfield.BitField, error) `perm:"read"`
|
2022-08-22 18:41:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerAvailableBalance func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerDeadlines func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]Deadline, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerFaults func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (bitfield.BitField, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerInfo func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerInfo, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerInitialPledgeCollateral func(p0 context.Context, p1 address.Address, p2 miner.SectorPreCommitInfo, p3 types.TipSetKey) (types.BigInt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerPartitions func(p0 context.Context, p1 address.Address, p2 uint64, p3 types.TipSetKey) ([]Partition, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerPower func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*MinerPower, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerPreCommitDepositForPower func(p0 context.Context, p1 address.Address, p2 miner.SectorPreCommitInfo, p3 types.TipSetKey) (types.BigInt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerProvingDeadline func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*dline.Info, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerRecoveries func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (bitfield.BitField, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerSectorAllocated func(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (bool, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerSectorCount func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerSectors, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerSectors func(p0 context.Context, p1 address.Address, p2 *bitfield.BitField, p3 types.TipSetKey) ([]*miner.SectorOnChainInfo, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateNetworkName func(p0 context.Context) (dtypes.NetworkName, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateNetworkVersion func(p0 context.Context, p1 types.TipSetKey) (apitypes.NetworkVersion, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateReadState func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*ActorState, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateReplay func(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid) (*InvocResult, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateSearchMsg func(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-08-29 13:16:05 +00:00
|
|
|
StateSectorExpiration func(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorExpiration, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateSectorGetInfo func(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorOnChainInfo, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-08-29 13:16:05 +00:00
|
|
|
StateSectorPartition func(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorLocation, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateSectorPreCommitInfo func(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorPreCommitOnChainInfo, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateVMCirculatingSupplyInternal func(p0 context.Context, p1 types.TipSetKey) (CirculatingSupply, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateVerifiedClientStatus func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateVerifiedRegistryRootKey func(p0 context.Context, p1 types.TipSetKey) (address.Address, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateVerifierStatus func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateWaitMsg func(p0 context.Context, p1 cid.Cid, p2 uint64, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
SubscribeActorEventsRaw func(p0 context.Context, p1 *types.ActorEventFilter) (<-chan *types.ActorEvent, error) `perm:"read"`
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SyncCheckBad func(p0 context.Context, p1 cid.Cid) (string, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SyncCheckpoint func(p0 context.Context, p1 types.TipSetKey) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SyncIncomingBlocks func(p0 context.Context) (<-chan *types.BlockHeader, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SyncMarkBad func(p0 context.Context, p1 cid.Cid) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SyncState func(p0 context.Context) (*SyncState, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SyncSubmitBlock func(p0 context.Context, p1 *types.BlockMsg) error `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SyncUnmarkAllBad func(p0 context.Context) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SyncUnmarkBad func(p0 context.Context, p1 cid.Cid) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SyncValidateTipset func(p0 context.Context, p1 types.TipSetKey) (bool, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletBalance func(p0 context.Context, p1 address.Address) (types.BigInt, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletDefaultAddress func(p0 context.Context) (address.Address, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletDelete func(p0 context.Context, p1 address.Address) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletExport func(p0 context.Context, p1 address.Address) (*types.KeyInfo, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletHas func(p0 context.Context, p1 address.Address) (bool, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletImport func(p0 context.Context, p1 *types.KeyInfo) (address.Address, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletList func(p0 context.Context) ([]address.Address, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletNew func(p0 context.Context, p1 types.KeyType) (address.Address, error) `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletSetDefault func(p0 context.Context, p1 address.Address) error `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletSign func(p0 context.Context, p1 address.Address, p2 []byte) (*crypto.Signature, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletSignMessage func(p0 context.Context, p1 address.Address, p2 *types.Message) (*types.SignedMessage, error) `perm:"sign"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletValidateAddress func(p0 context.Context, p1 string) (address.Address, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletVerify func(p0 context.Context, p1 address.Address, p2 []byte, p3 *crypto.Signature) (bool, error) `perm:"read"`
|
2023-01-25 03:56:04 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Web3ClientVersion func(p0 context.Context) (string, error) `perm:"read"`
|
2019-07-23 17:27:45 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
type FullNodeStub struct {
|
|
|
|
CommonStub
|
2021-06-29 12:07:00 +00:00
|
|
|
|
|
|
|
NetStub
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
type GatewayStruct struct {
|
2023-01-16 13:54:26 +00:00
|
|
|
Internal GatewayMethods
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
type GatewayMethods struct {
|
2023-03-24 18:39:15 +00:00
|
|
|
ChainGetBlock func(p0 context.Context, p1 cid.Cid) (*types.BlockHeader, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetBlockMessages func(p0 context.Context, p1 cid.Cid) (*BlockMessages, error) ``
|
2021-11-18 21:55:33 +00:00
|
|
|
|
2024-03-15 14:27:21 +00:00
|
|
|
ChainGetEvents func(p0 context.Context, p1 cid.Cid) ([]types.Event, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetGenesis func(p0 context.Context) (*types.TipSet, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetMessage func(p0 context.Context, p1 cid.Cid) (*types.Message, error) ``
|
2021-11-18 21:55:33 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetParentMessages func(p0 context.Context, p1 cid.Cid) ([]Message, error) ``
|
2021-11-18 21:55:33 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetParentReceipts func(p0 context.Context, p1 cid.Cid) ([]*types.MessageReceipt, error) ``
|
2021-08-27 19:25:43 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetPath func(p0 context.Context, p1 types.TipSetKey, p2 types.TipSetKey) ([]*HeadChange, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetTipSet func(p0 context.Context, p1 types.TipSetKey) (*types.TipSet, error) ``
|
2021-08-05 17:53:12 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetTipSetAfterHeight func(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainGetTipSetByHeight func(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainHasObj func(p0 context.Context, p1 cid.Cid) (bool, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainHead func(p0 context.Context) (*types.TipSet, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainNotify func(p0 context.Context) (<-chan []*HeadChange, error) ``
|
2022-06-07 03:14:16 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainPutObj func(p0 context.Context, p1 blocks.Block) error ``
|
2020-03-11 01:57:52 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ChainReadObj func(p0 context.Context, p1 cid.Cid) ([]byte, error) ``
|
2022-05-27 11:35:23 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Discover func(p0 context.Context) (apitypes.OpenRPCDocument, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthAccounts func(p0 context.Context) ([]ethtypes.EthAddress, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2024-05-08 13:35:00 +00:00
|
|
|
EthAddressToFilecoinAddress func(p0 context.Context, p1 ethtypes.EthAddress) (address.Address, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthBlockNumber func(p0 context.Context) (ethtypes.EthUint64, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthCall func(p0 context.Context, p1 ethtypes.EthCall, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthChainId func(p0 context.Context) (ethtypes.EthUint64, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-11-29 10:17:10 +00:00
|
|
|
EthEstimateGas func(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthUint64, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-02-10 18:33:59 +00:00
|
|
|
EthFeeHistory func(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthFeeHistory, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGasPrice func(p0 context.Context) (ethtypes.EthBigInt, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthGetBalance func(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBigInt, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetBlockByHash func(p0 context.Context, p1 ethtypes.EthHash, p2 bool) (ethtypes.EthBlock, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetBlockByNumber func(p0 context.Context, p1 string, p2 bool) (ethtypes.EthBlock, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetBlockTransactionCountByHash func(p0 context.Context, p1 ethtypes.EthHash) (ethtypes.EthUint64, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetBlockTransactionCountByNumber func(p0 context.Context, p1 ethtypes.EthUint64) (ethtypes.EthUint64, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthGetCode func(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetFilterChanges func(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetFilterLogs func(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetLogs func(p0 context.Context, p1 *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-02-02 12:25:50 +00:00
|
|
|
EthGetMessageCidByTransactionHash func(p0 context.Context, p1 *ethtypes.EthHash) (*cid.Cid, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthGetStorageAt func(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBytes, p3 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetTransactionByHash func(p0 context.Context, p1 *ethtypes.EthHash) (*ethtypes.EthTx, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-03-14 15:45:56 +00:00
|
|
|
EthGetTransactionByHashLimited func(p0 context.Context, p1 *ethtypes.EthHash, p2 abi.ChainEpoch) (*ethtypes.EthTx, error) ``
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
EthGetTransactionCount func(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthUint64, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-02-02 12:25:50 +00:00
|
|
|
EthGetTransactionHashByCid func(p0 context.Context, p1 cid.Cid) (*ethtypes.EthHash, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthGetTransactionReceipt func(p0 context.Context, p1 ethtypes.EthHash) (*EthTxReceipt, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-03-14 15:45:56 +00:00
|
|
|
EthGetTransactionReceiptLimited func(p0 context.Context, p1 ethtypes.EthHash, p2 abi.ChainEpoch) (*EthTxReceipt, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthMaxPriorityFeePerGas func(p0 context.Context) (ethtypes.EthBigInt, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthNewBlockFilter func(p0 context.Context) (ethtypes.EthFilterID, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthNewFilter func(p0 context.Context, p1 *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthNewPendingTransactionFilter func(p0 context.Context) (ethtypes.EthFilterID, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthProtocolVersion func(p0 context.Context) (ethtypes.EthUint64, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthSendRawTransaction func(p0 context.Context, p1 ethtypes.EthBytes) (ethtypes.EthHash, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-31 10:00:15 +00:00
|
|
|
EthSubscribe func(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error) ``
|
2020-03-11 01:57:52 +00:00
|
|
|
|
2023-04-21 12:02:40 +00:00
|
|
|
EthSyncing func(p0 context.Context) (ethtypes.EthSyncingResult, error) ``
|
|
|
|
|
2023-08-22 16:15:14 +00:00
|
|
|
EthTraceBlock func(p0 context.Context, p1 string) ([]*ethtypes.EthTraceBlock, error) ``
|
|
|
|
|
|
|
|
EthTraceReplayBlockTransactions func(p0 context.Context, p1 string, p2 []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error) ``
|
|
|
|
|
2024-06-07 18:14:34 +00:00
|
|
|
EthTraceTransaction func(p0 context.Context, p1 string) ([]*ethtypes.EthTraceTransaction, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthUninstallFilter func(p0 context.Context, p1 ethtypes.EthFilterID) (bool, error) ``
|
2020-03-11 01:57:52 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
EthUnsubscribe func(p0 context.Context, p1 ethtypes.EthSubscriptionID) (bool, error) ``
|
2020-04-28 10:57:24 +00:00
|
|
|
|
2024-05-08 13:35:00 +00:00
|
|
|
FilecoinAddressToEthAddress func(p0 context.Context, p1 address.Address) (ethtypes.EthAddress, error) ``
|
|
|
|
|
2023-03-11 07:27:42 +00:00
|
|
|
GasEstimateGasPremium func(p0 context.Context, p1 uint64, p2 address.Address, p3 int64, p4 types.TipSetKey) (types.BigInt, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
GasEstimateMessageGas func(p0 context.Context, p1 *types.Message, p2 *MessageSendSpec, p3 types.TipSetKey) (*types.Message, error) ``
|
2020-11-26 16:33:22 +00:00
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
GetActorEventsRaw func(p0 context.Context, p1 *types.ActorEventFilter) ([]*types.ActorEvent, error) ``
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
|
2023-03-24 18:39:15 +00:00
|
|
|
MinerGetBaseInfo func(p0 context.Context, p1 address.Address, p2 abi.ChainEpoch, p3 types.TipSetKey) (*MiningBaseInfo, error) ``
|
|
|
|
|
2023-03-08 16:53:19 +00:00
|
|
|
MpoolGetNonce func(p0 context.Context, p1 address.Address) (uint64, error) ``
|
2023-03-07 20:19:20 +00:00
|
|
|
|
2023-03-24 18:39:15 +00:00
|
|
|
MpoolPending func(p0 context.Context, p1 types.TipSetKey) ([]*types.SignedMessage, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MpoolPush func(p0 context.Context, p1 *types.SignedMessage) (cid.Cid, error) ``
|
2020-05-26 08:20:32 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigGetAvailableBalance func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) ``
|
2022-02-16 07:30:07 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigGetPending func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*MsigTransaction, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigGetVested func(p0 context.Context, p1 address.Address, p2 types.TipSetKey, p3 types.TipSetKey) (types.BigInt, error) ``
|
2022-12-13 17:14:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MsigGetVestingSchedule func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MsigVesting, error) ``
|
2020-10-27 16:28:44 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetListening func(p0 context.Context) (bool, error) ``
|
2020-10-27 16:28:44 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetVersion func(p0 context.Context) (string, error) ``
|
OpenRPC Support (#5843)
* main: init implement rpc.Discover RPC method
This implement the basic functionality for the method
over HTTP RPC.
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init example with go-openrpc-reflect lib
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* main: make variable name human-friendly
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init impl of go-openrp-reflect printing document
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* go.mod,go.sum: use go-openrpc-reflect and open-rpc/meta-schema hackforks
This is for development only.
Versions need to be bumped when they're ready for use
as canonical remotes.
Signed-off-by: meows <b5c6@protonmail.com>
* main,openrpc,main: refactor openrpc supporting code to own package
This eliminates code duplication.
Signed-off-by: meows <b5c6@protonmail.com>
* main: add rpc.Discover to openrpc document
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: fix rpc.discover method name casing
Also fixes casing stuff for the rest of Filecoin.
methods.
Signed-off-by: meows <b5c6@protonmail.com>
* Revert "main: add rpc.Discover to openrpc document"
This reverts commit 116898efb10f33e405ac74acb1aa6daefcd46a62.
* main: fix document creation method name
This fixes an issue caused with the latest reverting
commit.
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen,openrpc: refactor to share api parsing, etc as docgen exported stuff
Signed-off-by: meows <b5c6@protonmail.com>
Makefile: fix docgen refactoring for makefile use of command
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: add schema.examples to app reflector
There are quite of few of these already registered
for the docgen command, so it makes sense to use
those!
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init method pairing examples
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump go.mod to use latest meta-schema and openrpc-reflect versions
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init SchemaType mapper function
This function will handle the manual configurations
for app-specific data types w/r/t their json schema
representation.
This is useful for cases where the reflect library
is unable to provide a sufficient representation
automatically.
Provided in this commit is an initial implementation
for the integerD type (assuming number are represented
in the API as hexs), and a commonly used cid.Cid type.
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: tame dependencies by bumping etclabscore/go-openrpc-reflect
This removes a problematic dependency
on github.com/ethereum/go-ethereum, which was
imported as a dependency for a couple github.com/etclabscore/go-openrpc-reflect
tests.
etclabscore/go-openrpc-reflect v0.0.36 has removed this
dependency, so this commit is the result of bumping
that version and then running 'go mod tidy'
This is in response to a review at
https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
Date: 2020-11-21 06:52:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: add 'miner' arg to openrpc gen cmd
This allows the command to EITHER
generate the doc for Full or Miner APIs.
See comment for usage.
Date: 2020-11-21 07:48:05-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen: add missing examples for Miner API
Generating the Miner API OpenRPC doc
(via 'go run ./api/openrpc/cmd miner') caused
the example logic to panic because some types
were missing.
This commit adds those missing types, although
I'm not an expert in the API so I can't
suggest that the example values provided are
ideal or well representative.
Date: 2020-11-21 07:50:21-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json,build/openrpc/miner.json: add build/openrpc/[full/miner].json docs
These will be used as static documents
provided by the rpc.discover method.
Date: 2020-11-21 07:51:39-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: init go-rice openrpc static assets
Date: 2020-11-21 08:23:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: remove rpc.discover implementation from runtime plugin
Instead of generating the doc on the fly,
we're going to serve a static asset.
Rel https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
This removes the runtime implementation from the
RPC server construction.
Date: 2020-11-21 08:41:20-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,common: add Discover(ctx) method to CommonAPI interface and structs
Date: 2020-11-21 08:41:56-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: use rpc server method aliasing for rpc.discover
This depends on a currently-forked change at
filecoin-project/go-jsonrpc 8350f9463ee451b187d35c492e32f1b999e80210
which establishes this new method RPCServer.AliasMethod.
This solves the problem that the OpenRPC
spec says that the document should be served
at the system extension-prefixed endpoing
rpc.discover (not Filecoin.Discover).
In fact, the document will be available at BOTH
endpoints, but that duplicity is harmless.
Date: 2020-11-21 09:18:26-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,build,common: rpc.discover: return json object instead of string
Instead of casting the JSON asset from bytes to string,
unmarshal it to a map[string]interface{} so the
server will provide it as a JSON object.
Date: 2020-11-21 09:27:11-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile: merge resolve: docsgen command path
Date: 2020-11-22 07:19:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,main,docgen,openrpc: merge resolve: fix func exporteds, signatures
Date: 2020-11-22 07:31:03-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: 'get get' auto-bumps version
Date: 2020-11-22 07:31:44-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,docgen,main,build/openrpc: refactor openrpc documentation generation
This creates Makefile command docsgen-openrpc-json,
and refactors the docsgen command to generate both
the markdown and openrpc json documents, redirecting
the output of the openrpc json documentation to
the build/openrpc/ directory, where those json
files will be compiled as static assets via go-rice
boxes.
The api/openrpc/cmd now uses usage argumentation
congruent to that of the docgen command (switching
on API context).
Date: 2020-11-22 08:01:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc: rename api/openrpc -> api/docgen-openrpc
Renames the package as well.
This is intended to parallel the
existing docgen package and command
namespacing.
Date: 2020-11-22 10:34:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,docgen,build,build/openrpc: use typed Discover response
Instead of using a map[string]interface{}, use
a typed response for the Discover method implementation.
This avoids having to set a docgen Example for
the generic map[string]interface{} (as an openrpc document)
which both pollutes the generic type and lacks
useful information for the Discover method example.
Date: 2020-11-22 08:31:16-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,build,main,impl: implement Discover method for Worker and StorageMiner APIs
Methods return static compiled assets respective
to the APIs.
Date: 2020-11-22 08:57:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen_openrpc,build/openrpc: remove timestamping from openrpc doc info
This should allow openrpc docs generated at different
times to be equal. This is important because the CI
(Circle) runs the docgen command and tests that
the output and the source are unchanged (via git diff).
Date: 2020-11-22 10:47:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc,main,build: fix lint issues
Fixes goimports, staticcheck, golint issues.
Date: 2020-11-22 11:06:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: fix: don't use an underscore in package name (golint)
Date: 2020-11-22 11:07:53-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: fix: mod-tidy-check (run 'go mod tidy')
Date: 2020-11-22 11:09:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc dep to latest
This version includes the necessary RPCServer.AliasMethod
method.
Date: 2020-11-23 12:16:15-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,main,build,build/openrpc: init gzipped openrpc static docs
Date: 2020-11-24 06:15:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: refactor gzip reading
Date: 2020-11-24 06:18:34-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: add basic test for openrpc doc from static assets
Date: 2020-11-24 06:30:23-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: handle reader Close error
This keeps the errcheck linter happy.
Date: 2020-11-24 06:33:14-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: run 'go mod tidy'
Date: 2020-11-24 06:36:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: go mod tidy
Tidying up after resolving the merge conflicts
with master at go.mod
Date: 2020-11-24 06:40:45-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc to latest
This is a repeat of 76e6fd2, since the latest merge
to master seems to have reverted this.
Date: 2020-11-24 06:42:30-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc,build/openrpc: remove method example pairings, improve schema examples
Removing method example pairings since they were
redundant to schema examples and were not
implemented well.
Improved schema examples by using the ExampleValue
method instead of the map lookup.
Made a note in the comment here that this is
not ideal, since we have to make a shortcut assumption
/workaround by using 'unknown' as the method name
and the typea as its own parent.
Luckily these values aren't heavily used by the
method logic.
Date: 2020-11-27 12:57:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: use generic number jsonschema for number types
Previously used an integer schema assuming
hex encoding. It appears, based on review some
of the examples, that this may not be the case.
Obvioussly this schema could be more descriptive,
but just shooting for mostly likely to be
not wrong at this point.
Date: 2020-12-15 14:44:37-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* cmd/lotus,go.mod,go.sum: maybe fix straggling merge resolution conflicts
Date: 2021-01-19 12:30:42-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json.gz,build/openrpc/miner.json.gz,build/openrpc/worker.json.gz: run 'make docsgen'
Date: 2021-01-19 12:33:55-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/apistruct,node/impl: (lint) gofmt
Date: 2021-01-19 12:39:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: maybe fix parse error: open ./api: no such file or directory
Date: 2021-01-19 12:52:04-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen,build/openrpc: maybe fix no such file error and run 'make docsgen'
Date: 2021-01-19 12:55:52-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: return if AST comment/groupdoc parsing encounters any error
This will returns empty comments/docs maps.
This should fix issues like:
https://app.circleci.com/pipelines/github/filecoin-project/lotus/12445/workflows/4ebadce9-a298-4ad1-939b-f19ef4c0a5bf/jobs/107218
where the environment makes file lookups hard or
impossible.
Date: 2021-01-19 13:04:58-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api: Don't depend on build/
* make: support parallel docsgen
* openrpc gen: Use simple build version
* methodgen
* goimports
Co-authored-by: meows <b5c6@protonmail.com>
2021-03-19 18:22:46 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateAccountKey func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-03-08 16:53:19 +00:00
|
|
|
StateCall func(p0 context.Context, p1 *types.Message, p2 types.TipSetKey) (*InvocResult, error) ``
|
2023-03-08 01:15:52 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateDealProviderCollateralBounds func(p0 context.Context, p1 abi.PaddedPieceSize, p2 bool, p3 types.TipSetKey) (DealCollateralBounds, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-03-08 16:53:19 +00:00
|
|
|
StateDecodeParams func(p0 context.Context, p1 address.Address, p2 abi.MethodNum, p3 []byte, p4 types.TipSetKey) (interface{}, error) ``
|
2023-03-08 01:15:52 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateGetActor func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*types.Actor, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-08-18 07:28:01 +00:00
|
|
|
StateGetAllocation func(p0 context.Context, p1 address.Address, p2 verifregtypes.AllocationId, p3 types.TipSetKey) (*verifregtypes.Allocation, error) ``
|
|
|
|
|
|
|
|
StateGetAllocationForPendingDeal func(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*verifregtypes.Allocation, error) ``
|
|
|
|
|
|
|
|
StateGetAllocations func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error) ``
|
|
|
|
|
|
|
|
StateGetClaim func(p0 context.Context, p1 address.Address, p2 verifregtypes.ClaimId, p3 types.TipSetKey) (*verifregtypes.Claim, error) ``
|
|
|
|
|
|
|
|
StateGetClaims func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateListMiners func(p0 context.Context, p1 types.TipSetKey) ([]address.Address, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateLookupID func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMarketBalance func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MarketBalance, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMarketStorageDeal func(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*MarketDeal, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2024-03-14 19:12:02 +00:00
|
|
|
StateMinerDeadlines func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]Deadline, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerInfo func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerInfo, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerPower func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*MinerPower, error) ``
|
2021-07-22 00:21:28 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateMinerProvingDeadline func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*dline.Info, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-03-11 07:27:42 +00:00
|
|
|
StateMinerSectorCount func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerSectors, error) ``
|
|
|
|
|
2023-03-08 16:53:19 +00:00
|
|
|
StateNetworkName func(p0 context.Context) (dtypes.NetworkName, error) ``
|
2023-03-07 17:36:11 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateNetworkVersion func(p0 context.Context, p1 types.TipSetKey) (apitypes.NetworkVersion, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-03-08 16:53:19 +00:00
|
|
|
StateReadState func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*ActorState, error) ``
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-03-11 07:27:42 +00:00
|
|
|
StateReplay func(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid) (*InvocResult, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateSearchMsg func(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) ``
|
2021-04-21 04:55:47 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateSectorGetInfo func(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorOnChainInfo, error) ``
|
2021-06-28 17:00:49 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateVerifiedClientStatus func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) ``
|
2021-04-21 04:55:47 +00:00
|
|
|
|
2023-03-14 17:35:26 +00:00
|
|
|
StateVerifierStatus func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) ``
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StateWaitMsg func(p0 context.Context, p1 cid.Cid, p2 uint64, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) ``
|
2021-06-28 17:00:49 +00:00
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
SubscribeActorEventsRaw func(p0 context.Context, p1 *types.ActorEventFilter) (<-chan *types.ActorEvent, error) ``
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Version func(p0 context.Context) (APIVersion, error) ``
|
|
|
|
|
|
|
|
WalletBalance func(p0 context.Context, p1 address.Address) (types.BigInt, error) ``
|
2023-02-02 12:25:50 +00:00
|
|
|
|
|
|
|
Web3ClientVersion func(p0 context.Context) (string, error) ``
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
type GatewayStub struct {
|
|
|
|
}
|
|
|
|
|
2021-06-29 12:07:00 +00:00
|
|
|
type NetStruct struct {
|
2023-01-16 13:54:26 +00:00
|
|
|
Internal NetMethods
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
type NetMethods struct {
|
|
|
|
ID func(p0 context.Context) (peer.ID, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetAddrsListen func(p0 context.Context) (peer.AddrInfo, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetAgentVersion func(p0 context.Context, p1 peer.ID) (string, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetAutoNatStatus func(p0 context.Context) (NatInfo, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetBandwidthStats func(p0 context.Context) (metrics.Stats, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetBandwidthStatsByPeer func(p0 context.Context) (map[string]metrics.Stats, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetBandwidthStatsByProtocol func(p0 context.Context) (map[protocol.ID]metrics.Stats, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetBlockAdd func(p0 context.Context, p1 NetBlockList) error `perm:"admin"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetBlockList func(p0 context.Context) (NetBlockList, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetBlockRemove func(p0 context.Context, p1 NetBlockList) error `perm:"admin"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetConnect func(p0 context.Context, p1 peer.AddrInfo) error `perm:"write"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetConnectedness func(p0 context.Context, p1 peer.ID) (network.Connectedness, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetDisconnect func(p0 context.Context, p1 peer.ID) error `perm:"write"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetFindPeer func(p0 context.Context, p1 peer.ID) (peer.AddrInfo, error) `perm:"read"`
|
2022-01-20 09:44:01 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetLimit func(p0 context.Context, p1 string) (NetLimit, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetPeerInfo func(p0 context.Context, p1 peer.ID) (*ExtendedPeerInfo, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetPeers func(p0 context.Context) ([]peer.AddrInfo, error) `perm:"read"`
|
2022-02-17 09:10:28 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetPing func(p0 context.Context, p1 peer.ID) (time.Duration, error) `perm:"read"`
|
2022-02-03 16:24:49 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetProtectAdd func(p0 context.Context, p1 []peer.ID) error `perm:"admin"`
|
2022-02-03 16:24:49 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetProtectList func(p0 context.Context) ([]peer.ID, error) `perm:"read"`
|
2022-02-03 16:24:49 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetProtectRemove func(p0 context.Context, p1 []peer.ID) error `perm:"admin"`
|
2022-01-20 09:44:01 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetPubsubScores func(p0 context.Context) ([]PubsubScore, error) `perm:"read"`
|
2022-01-20 09:44:01 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
NetSetLimit func(p0 context.Context, p1 string, p2 NetLimit) error `perm:"admin"`
|
|
|
|
|
|
|
|
NetStat func(p0 context.Context, p1 string) (NetStat, error) `perm:"read"`
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type NetStub struct {
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
type SignableStruct struct {
|
2023-01-16 13:54:26 +00:00
|
|
|
Internal SignableMethods
|
|
|
|
}
|
|
|
|
|
|
|
|
type SignableMethods struct {
|
|
|
|
Sign func(p0 context.Context, p1 SignFunc) error ``
|
2020-09-29 15:25:45 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
type SignableStub struct {
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
type StorageMinerStruct struct {
|
|
|
|
CommonStruct
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Internal StorageMinerMethods
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
type StorageMinerMethods struct {
|
|
|
|
ActorAddress func(p0 context.Context) (address.Address, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ActorAddressConfig func(p0 context.Context) (AddressConfig, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ActorSectorSize func(p0 context.Context, p1 address.Address) (abi.SectorSize, error) `perm:"read"`
|
2022-08-02 07:34:54 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ActorWithdrawBalance func(p0 context.Context, p1 abi.TokenAmount) (cid.Cid, error) `perm:"admin"`
|
2022-09-14 04:19:47 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
BeneficiaryWithdrawBalance func(p0 context.Context, p1 abi.TokenAmount) (cid.Cid, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
CheckProvable func(p0 context.Context, p1 abi.RegisteredPoStProof, p2 []storiface.SectorRef) (map[abi.SectorNumber]string, error) `perm:"admin"`
|
2022-04-26 19:37:48 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ComputeDataCid func(p0 context.Context, p1 abi.UnpaddedPieceSize, p2 storiface.Data) (abi.PieceInfo, error) `perm:"admin"`
|
2021-03-26 05:32:03 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ComputeProof func(p0 context.Context, p1 []builtinactors.ExtendedSectorInfo, p2 abi.PoStRandomness, p3 abi.ChainEpoch, p4 abinetwork.Version) ([]builtinactors.PoStProof, error) `perm:"read"`
|
2022-03-28 20:54:22 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ComputeWindowPoSt func(p0 context.Context, p1 uint64, p2 types.TipSetKey) ([]miner.SubmitWindowedPoStParams, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
CreateBackup func(p0 context.Context, p1 string) error `perm:"admin"`
|
integrate DAG store and CARv2 in deal-making (#6671)
This commit removes badger from the deal-making processes, and
moves to a new architecture with the dagstore as the cental
component on the miner-side, and CARv2s on the client-side.
Every deal that has been handed off to the sealing subsystem becomes
a shard in the dagstore. Shards are mounted via the LotusMount, which
teaches the dagstore how to load the related piece when serving
retrievals.
When the miner starts the Lotus for the first time with this patch,
we will perform a one-time migration of all active deals into the
dagstore. This is a lightweight process, and it consists simply
of registering the shards in the dagstore.
Shards are backed by the unsealed copy of the piece. This is currently
a CARv1. However, the dagstore keeps CARv2 indices for all pieces, so
when it's time to acquire a shard to serve a retrieval, the unsealed
CARv1 is joined with its index (safeguarded by the dagstore), to form
a read-only blockstore, thus taking the place of the monolithic
badger.
Data transfers have been adjusted to interface directly with CARv2 files.
On inbound transfers (client retrievals, miner storage deals), we stream
the received data into a CARv2 ReadWrite blockstore. On outbound transfers
(client storage deals, miner retrievals), we serve the data off a CARv2
ReadOnly blockstore.
Client-side imports are managed by the refactored *imports.Manager
component (when not using IPFS integration). Just like it before, we use
the go-filestore library to avoid duplicating the data from the original
file in the resulting UnixFS DAG (concretely the leaves). However, the
target of those imports are what we call "ref-CARv2s": CARv2 files placed
under the `$LOTUS_PATH/imports` directory, containing the intermediate
nodes in full, and the leaves as positional references to the original file
on disk.
Client-side retrievals are placed into CARv2 files in the location:
`$LOTUS_PATH/retrievals`.
A new set of `Dagstore*` JSON-RPC operations and `lotus-miner dagstore`
subcommands have been introduced on the miner-side to inspect and manage
the dagstore.
Despite moving to a CARv2-backed system, the IPFS integration has been
respected, and it continues to be possible to make storage deals with data
held in an IPFS node, and to perform retrievals directly into an IPFS node.
NOTE: because the "staging" and "client" Badger blockstores are no longer
used, existing imports on the client will be rendered useless. On startup,
Lotus will enumerate all imports and print WARN statements on the log for
each import that needs to be reimported. These log lines contain these
messages:
- import lacks carv2 path; import will not work; please reimport
- import has missing/broken carv2; please reimport
At the end, we will print a "sanity check completed" message indicating
the count of imports found, and how many were deemed broken.
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Dirk McCormick <dirkmdev@gmail.com>
Co-authored-by: Raúl Kripalani <raul@protocol.ai>
Co-authored-by: Dirk McCormick <dirkmdev@gmail.com>
2021-08-16 22:34:32 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MarketListDeals func(p0 context.Context) ([]*MarketDeal, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MiningBase func(p0 context.Context) (*types.TipSet, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
PledgeSector func(p0 context.Context) (abi.SectorID, error) `perm:"write"`
|
2022-09-06 15:47:30 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
RecoverFault func(p0 context.Context, p1 []abi.SectorNumber) ([]cid.Cid, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnAddPiece func(p0 context.Context, p1 storiface.CallID, p2 abi.PieceInfo, p3 *storiface.CallError) error `perm:"admin"`
|
2022-04-26 16:22:52 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnDataCid func(p0 context.Context, p1 storiface.CallID, p2 abi.PieceInfo, p3 *storiface.CallError) error `perm:"admin"`
|
2022-08-31 11:56:25 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnDownloadSector func(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnFetch func(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error `perm:"admin"`
|
2022-02-08 14:06:42 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnFinalizeReplicaUpdate func(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnFinalizeSector func(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error `perm:"admin"`
|
2021-12-01 19:01:55 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnGenerateSectorKeyFromData func(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnMoveStorage func(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error `perm:"admin"`
|
2021-11-10 18:53:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnProveReplicaUpdate1 func(p0 context.Context, p1 storiface.CallID, p2 storiface.ReplicaVanillaProofs, p3 *storiface.CallError) error `perm:"admin"`
|
2021-11-10 18:53:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnProveReplicaUpdate2 func(p0 context.Context, p1 storiface.CallID, p2 storiface.ReplicaUpdateProof, p3 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnReadPiece func(p0 context.Context, p1 storiface.CallID, p2 bool, p3 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnReleaseUnsealed func(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error `perm:"admin"`
|
2021-11-10 18:53:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnReplicaUpdate func(p0 context.Context, p1 storiface.CallID, p2 storiface.ReplicaUpdateOut, p3 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnSealCommit1 func(p0 context.Context, p1 storiface.CallID, p2 storiface.Commit1Out, p3 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnSealCommit2 func(p0 context.Context, p1 storiface.CallID, p2 storiface.Proof, p3 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnSealPreCommit1 func(p0 context.Context, p1 storiface.CallID, p2 storiface.PreCommit1Out, p3 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnSealPreCommit2 func(p0 context.Context, p1 storiface.CallID, p2 storiface.SectorCids, p3 *storiface.CallError) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReturnUnsealPiece func(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error `perm:"admin"`
|
2021-07-28 09:10:17 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
RuntimeSubsystems func(p0 context.Context) (MinerSubsystems, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SealingAbort func(p0 context.Context, p1 storiface.CallID) error `perm:"admin"`
|
2022-07-20 04:50:05 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SealingRemoveRequest func(p0 context.Context, p1 uuid.UUID) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SealingSchedDiag func(p0 context.Context, p1 bool) (interface{}, error) `perm:"admin"`
|
2022-01-21 17:39:18 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorAbortUpgrade func(p0 context.Context, p1 abi.SectorNumber) error `perm:"admin"`
|
2021-05-19 11:05:07 +00:00
|
|
|
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
SectorAddPieceToAny func(p0 context.Context, p1 abi.UnpaddedPieceSize, p2 storiface.Data, p3 piece.PieceDealInfo) (SectorOffset, error) `perm:"admin"`
|
2021-03-10 15:16:44 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorCommitFlush func(p0 context.Context) ([]sealiface.CommitBatchRes, error) `perm:"admin"`
|
2021-03-10 15:16:44 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorCommitPending func(p0 context.Context) ([]abi.SectorID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorGetExpectedSealDuration func(p0 context.Context) (time.Duration, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorGetSealDelay func(p0 context.Context) (time.Duration, error) `perm:"read"`
|
2021-12-08 17:11:19 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorMarkForUpgrade func(p0 context.Context, p1 abi.SectorNumber, p2 bool) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorMatchPendingPiecesToOpenSectors func(p0 context.Context) error `perm:"admin"`
|
2022-08-18 14:37:22 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorNumAssignerMeta func(p0 context.Context) (NumAssignerMeta, error) `perm:"read"`
|
2022-08-18 14:37:22 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorNumFree func(p0 context.Context, p1 string) error `perm:"admin"`
|
2022-08-18 14:37:22 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorNumReservations func(p0 context.Context) (map[string]bitfield.BitField, error) `perm:"read"`
|
2022-08-18 14:37:22 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorNumReserve func(p0 context.Context, p1 string, p2 bitfield.BitField, p3 bool) error `perm:"admin"`
|
2022-08-24 15:25:37 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorNumReserveCount func(p0 context.Context, p1 string, p2 uint64) (bitfield.BitField, error) `perm:"admin"`
|
2021-05-18 14:51:06 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorPreCommitFlush func(p0 context.Context) ([]sealiface.PreCommitBatchRes, error) `perm:"admin"`
|
2021-05-18 14:51:06 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorPreCommitPending func(p0 context.Context) ([]abi.SectorID, error) `perm:"admin"`
|
2022-08-24 19:27:27 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorReceive func(p0 context.Context, p1 RemoteSectorMeta) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorRemove func(p0 context.Context, p1 abi.SectorNumber) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorSetExpectedSealDuration func(p0 context.Context, p1 time.Duration) error `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorSetSealDelay func(p0 context.Context, p1 time.Duration) error `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorStartSealing func(p0 context.Context, p1 abi.SectorNumber) error `perm:"write"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorTerminate func(p0 context.Context, p1 abi.SectorNumber) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorTerminateFlush func(p0 context.Context) (*cid.Cid, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorTerminatePending func(p0 context.Context) ([]abi.SectorID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-04-17 16:12:15 +00:00
|
|
|
SectorUnseal func(p0 context.Context, p1 abi.SectorNumber) error `perm:"admin"`
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorsList func(p0 context.Context) ([]abi.SectorNumber, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorsListInStates func(p0 context.Context, p1 []SectorState) ([]abi.SectorNumber, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorsRefs func(p0 context.Context) (map[string][]SealedRef, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorsStatus func(p0 context.Context, p1 abi.SectorNumber, p2 bool) (SectorInfo, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorsSummary func(p0 context.Context) (map[SectorState]int, error) `perm:"read"`
|
2021-05-19 11:05:07 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorsUnsealPiece func(p0 context.Context, p1 storiface.SectorRef, p2 storiface.UnpaddedByteIndex, p3 abi.UnpaddedPieceSize, p4 abi.SealRandomness, p5 *cid.Cid) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SectorsUpdate func(p0 context.Context, p1 abi.SectorNumber, p2 SectorState) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageAddLocal func(p0 context.Context, p1 string) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageAttach func(p0 context.Context, p1 storiface.StorageInfo, p2 fsutil.FsStat) error `perm:"admin"`
|
2022-07-06 20:15:16 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageAuthVerify func(p0 context.Context, p1 string) ([]auth.Permission, error) `perm:"read"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2024-04-01 18:19:00 +00:00
|
|
|
StorageBestAlloc func(p0 context.Context, p1 storiface.SectorFileType, p2 abi.SectorSize, p3 storiface.PathType, p4 abi.ActorID) ([]storiface.StorageInfo, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageDeclareSector func(p0 context.Context, p1 storiface.ID, p2 abi.SectorID, p3 storiface.SectorFileType, p4 bool) error `perm:"admin"`
|
2022-07-14 13:18:21 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageDetach func(p0 context.Context, p1 storiface.ID, p2 string) error `perm:"admin"`
|
2022-07-15 10:44:05 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageDetachLocal func(p0 context.Context, p1 string) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageDropSector func(p0 context.Context, p1 storiface.ID, p2 abi.SectorID, p3 storiface.SectorFileType) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageFindSector func(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 abi.SectorSize, p4 bool) ([]storiface.SectorStorageInfo, error) `perm:"admin"`
|
2021-12-03 11:33:23 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageGetLocks func(p0 context.Context) (storiface.SectorLocks, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageInfo func(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageList func(p0 context.Context) (map[storiface.ID][]storiface.Decl, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageLocal func(p0 context.Context) (map[storiface.ID]string, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageLock func(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 storiface.SectorFileType) error `perm:"admin"`
|
2022-07-15 10:44:05 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageRedeclareLocal func(p0 context.Context, p1 *storiface.ID, p2 bool) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageReportHealth func(p0 context.Context, p1 storiface.ID, p2 storiface.HealthReport) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageStat func(p0 context.Context, p1 storiface.ID) (fsutil.FsStat, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageTryLock func(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 storiface.SectorFileType) (bool, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WorkerConnect func(p0 context.Context, p1 string) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WorkerJobs func(p0 context.Context) (map[uuid.UUID][]storiface.WorkerJob, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WorkerStats func(p0 context.Context) (map[uuid.UUID]storiface.WorkerStats, error) `perm:"admin"`
|
2020-09-05 19:36:32 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
type StorageMinerStub struct {
|
|
|
|
CommonStub
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
type WalletStruct struct {
|
2023-01-16 13:54:26 +00:00
|
|
|
Internal WalletMethods
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
type WalletMethods struct {
|
|
|
|
WalletDelete func(p0 context.Context, p1 address.Address) error `perm:"admin"`
|
2020-05-04 19:29:26 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletExport func(p0 context.Context, p1 address.Address) (*types.KeyInfo, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletHas func(p0 context.Context, p1 address.Address) (bool, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletImport func(p0 context.Context, p1 *types.KeyInfo) (address.Address, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletList func(p0 context.Context) ([]address.Address, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
WalletNew func(p0 context.Context, p1 types.KeyType) (address.Address, error) `perm:"admin"`
|
|
|
|
|
|
|
|
WalletSign func(p0 context.Context, p1 address.Address, p2 []byte, p3 MsgMeta) (*crypto.Signature, error) `perm:"admin"`
|
2019-07-24 00:58:31 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
type WalletStub struct {
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
type WorkerStruct struct {
|
2023-01-16 13:54:26 +00:00
|
|
|
Internal WorkerMethods
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
type WorkerMethods struct {
|
|
|
|
AddPiece func(p0 context.Context, p1 storiface.SectorRef, p2 []abi.UnpaddedPieceSize, p3 abi.UnpaddedPieceSize, p4 storiface.Data) (storiface.CallID, error) `perm:"admin"`
|
2022-04-26 16:22:52 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
DataCid func(p0 context.Context, p1 abi.UnpaddedPieceSize, p2 storiface.Data) (storiface.CallID, error) `perm:"admin"`
|
2022-08-31 11:56:25 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
DownloadSectorData func(p0 context.Context, p1 storiface.SectorRef, p2 bool, p3 map[storiface.SectorFileType]storiface.SectorLocation) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Enabled func(p0 context.Context) (bool, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Fetch func(p0 context.Context, p1 storiface.SectorRef, p2 storiface.SectorFileType, p3 storiface.PathType, p4 storiface.AcquireMode) (storiface.CallID, error) `perm:"admin"`
|
2022-02-02 20:23:35 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
FinalizeReplicaUpdate func(p0 context.Context, p1 storiface.SectorRef) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
FinalizeSector func(p0 context.Context, p1 storiface.SectorRef) (storiface.CallID, error) `perm:"admin"`
|
2021-12-01 19:01:55 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
GenerateSectorKeyFromData func(p0 context.Context, p1 storiface.SectorRef, p2 cid.Cid) (storiface.CallID, error) `perm:"admin"`
|
2021-07-27 03:15:53 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
GenerateWindowPoSt func(p0 context.Context, p1 abi.RegisteredPoStProof, p2 abi.ActorID, p3 []storiface.PostSectorChallenge, p4 int, p5 abi.PoStRandomness) (storiface.WindowPoStResult, error) `perm:"admin"`
|
2021-07-27 03:15:53 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
GenerateWinningPoSt func(p0 context.Context, p1 abi.RegisteredPoStProof, p2 abi.ActorID, p3 []storiface.PostSectorChallenge, p4 abi.PoStRandomness) ([]proof.PoStProof, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Info func(p0 context.Context) (storiface.WorkerInfo, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
MoveStorage func(p0 context.Context, p1 storiface.SectorRef, p2 storiface.SectorFileType) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Paths func(p0 context.Context) ([]storiface.StoragePath, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ProcessSession func(p0 context.Context) (uuid.UUID, error) `perm:"admin"`
|
2021-11-10 18:53:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ProveReplicaUpdate1 func(p0 context.Context, p1 storiface.SectorRef, p2 cid.Cid, p3 cid.Cid, p4 cid.Cid) (storiface.CallID, error) `perm:"admin"`
|
2021-11-10 18:53:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ProveReplicaUpdate2 func(p0 context.Context, p1 storiface.SectorRef, p2 cid.Cid, p3 cid.Cid, p4 cid.Cid, p5 storiface.ReplicaVanillaProofs) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReleaseUnsealed func(p0 context.Context, p1 storiface.SectorRef, p2 []storiface.Range) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Remove func(p0 context.Context, p1 abi.SectorID) error `perm:"admin"`
|
2021-11-10 18:53:00 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
ReplicaUpdate func(p0 context.Context, p1 storiface.SectorRef, p2 []abi.PieceInfo) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SealCommit1 func(p0 context.Context, p1 storiface.SectorRef, p2 abi.SealRandomness, p3 abi.InteractiveSealRandomness, p4 []abi.PieceInfo, p5 storiface.SectorCids) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SealCommit2 func(p0 context.Context, p1 storiface.SectorRef, p2 storiface.Commit1Out) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SealPreCommit1 func(p0 context.Context, p1 storiface.SectorRef, p2 abi.SealRandomness, p3 []abi.PieceInfo) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SealPreCommit2 func(p0 context.Context, p1 storiface.SectorRef, p2 storiface.PreCommit1Out) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Session func(p0 context.Context) (uuid.UUID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
SetEnabled func(p0 context.Context, p1 bool) error `perm:"admin"`
|
2022-07-29 22:33:30 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Shutdown func(p0 context.Context) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageAddLocal func(p0 context.Context, p1 string) error `perm:"admin"`
|
2022-08-10 21:06:01 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageDetachAll func(p0 context.Context) error `perm:"admin"`
|
2022-07-13 18:09:21 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageDetachLocal func(p0 context.Context, p1 string) error `perm:"admin"`
|
2022-07-15 14:09:13 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageLocal func(p0 context.Context) (map[storiface.ID]string, error) `perm:"admin"`
|
2022-07-13 18:09:21 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
StorageRedeclareLocal func(p0 context.Context, p1 *storiface.ID, p2 bool) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
TaskDisable func(p0 context.Context, p1 sealtasks.TaskType) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
TaskEnable func(p0 context.Context, p1 sealtasks.TaskType) error `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
TaskTypes func(p0 context.Context) (map[sealtasks.TaskType]struct{}, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
UnsealPiece func(p0 context.Context, p1 storiface.SectorRef, p2 storiface.UnpaddedByteIndex, p3 abi.UnpaddedPieceSize, p4 abi.SealRandomness, p5 cid.Cid) (storiface.CallID, error) `perm:"admin"`
|
2021-03-23 12:42:56 +00:00
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
Version func(p0 context.Context) (Version, error) `perm:"admin"`
|
|
|
|
|
|
|
|
WaitQuiet func(p0 context.Context) error `perm:"admin"`
|
2019-07-24 00:58:31 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
type WorkerStub struct {
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *ChainIOStruct) ChainHasObj(p0 context.Context, p1 cid.Cid) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainHasObj == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainHasObj(p0, p1)
|
2020-06-03 01:13:49 +00:00
|
|
|
}
|
2020-08-13 11:18:14 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *ChainIOStub) ChainHasObj(p0 context.Context, p1 cid.Cid) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-07 03:14:16 +00:00
|
|
|
func (s *ChainIOStruct) ChainPutObj(p0 context.Context, p1 blocks.Block) error {
|
|
|
|
if s.Internal.ChainPutObj == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainPutObj(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *ChainIOStub) ChainPutObj(p0 context.Context, p1 blocks.Block) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *ChainIOStruct) ChainReadObj(p0 context.Context, p1 cid.Cid) ([]byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainReadObj == nil {
|
|
|
|
return *new([]byte), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainReadObj(p0, p1)
|
2019-07-25 00:55:19 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *ChainIOStub) ChainReadObj(p0 context.Context, p1 cid.Cid) ([]byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]byte), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *CommonStruct) AuthNew(p0 context.Context, p1 []auth.Permission) ([]byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.AuthNew == nil {
|
|
|
|
return *new([]byte), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.AuthNew(p0, p1)
|
2019-07-24 00:58:31 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *CommonStub) AuthNew(p0 context.Context, p1 []auth.Permission) ([]byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]byte), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *CommonStruct) AuthVerify(p0 context.Context, p1 string) ([]auth.Permission, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.AuthVerify == nil {
|
|
|
|
return *new([]auth.Permission), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.AuthVerify(p0, p1)
|
2019-07-24 00:58:31 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *CommonStub) AuthVerify(p0 context.Context, p1 string) ([]auth.Permission, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]auth.Permission), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *CommonStruct) Closing(p0 context.Context) (<-chan struct{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Closing == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Closing(p0)
|
2019-07-25 00:55:19 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *CommonStub) Closing(p0 context.Context) (<-chan struct{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *CommonStruct) Discover(p0 context.Context) (apitypes.OpenRPCDocument, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Discover == nil {
|
|
|
|
return *new(apitypes.OpenRPCDocument), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Discover(p0)
|
2019-07-24 00:58:31 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *CommonStub) Discover(p0 context.Context) (apitypes.OpenRPCDocument, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(apitypes.OpenRPCDocument), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-08-17 12:51:54 +00:00
|
|
|
func (s *CommonStruct) LogAlerts(p0 context.Context) ([]alerting.Alert, error) {
|
|
|
|
if s.Internal.LogAlerts == nil {
|
|
|
|
return *new([]alerting.Alert), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.LogAlerts(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CommonStub) LogAlerts(p0 context.Context) ([]alerting.Alert, error) {
|
|
|
|
return *new([]alerting.Alert), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *CommonStruct) LogList(p0 context.Context) ([]string, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.LogList == nil {
|
|
|
|
return *new([]string), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.LogList(p0)
|
2020-08-13 11:18:14 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *CommonStub) LogList(p0 context.Context) ([]string, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]string), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *CommonStruct) LogSetLevel(p0 context.Context, p1 string, p2 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.LogSetLevel == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.LogSetLevel(p0, p1, p2)
|
2020-09-02 22:25:53 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *CommonStub) LogSetLevel(p0 context.Context, p1 string, p2 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *CommonStruct) Session(p0 context.Context) (uuid.UUID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Session == nil {
|
|
|
|
return *new(uuid.UUID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Session(p0)
|
2019-07-12 10:44:01 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *CommonStub) Session(p0 context.Context) (uuid.UUID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(uuid.UUID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *CommonStruct) Shutdown(p0 context.Context) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Shutdown == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Shutdown(p0)
|
2020-07-07 11:45:02 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *CommonStub) Shutdown(p0 context.Context) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-10-05 19:44:55 +00:00
|
|
|
func (s *CommonStruct) StartTime(p0 context.Context) (time.Time, error) {
|
|
|
|
if s.Internal.StartTime == nil {
|
|
|
|
return *new(time.Time), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StartTime(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *CommonStub) StartTime(p0 context.Context) (time.Time, error) {
|
|
|
|
return *new(time.Time), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *CommonStruct) Version(p0 context.Context) (APIVersion, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Version == nil {
|
|
|
|
return *new(APIVersion), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Version(p0)
|
2019-07-12 09:59:18 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *CommonStub) Version(p0 context.Context) (APIVersion, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(APIVersion), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-01-16 13:54:26 +00:00
|
|
|
func (s *EthSubscriberStruct) EthSubscription(p0 context.Context, p1 jsonrpc.RawParams) error {
|
|
|
|
if s.Internal.EthSubscription == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthSubscription(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *EthSubscriberStub) EthSubscription(p0 context.Context, p1 jsonrpc.RawParams) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-07-26 05:33:25 +00:00
|
|
|
func (s *FullNodeStruct) ChainBlockstoreInfo(p0 context.Context) (map[string]interface{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainBlockstoreInfo == nil {
|
|
|
|
return *new(map[string]interface{}), ErrNotSupported
|
|
|
|
}
|
2021-07-26 05:33:25 +00:00
|
|
|
return s.Internal.ChainBlockstoreInfo(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) ChainBlockstoreInfo(p0 context.Context) (map[string]interface{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[string]interface{}), ErrNotSupported
|
2021-07-26 05:33:25 +00:00
|
|
|
}
|
|
|
|
|
2021-07-25 08:25:29 +00:00
|
|
|
func (s *FullNodeStruct) ChainCheckBlockstore(p0 context.Context) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainCheckBlockstore == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-07-25 08:25:29 +00:00
|
|
|
return s.Internal.ChainCheckBlockstore(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) ChainCheckBlockstore(p0 context.Context) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-07-25 08:25:29 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainDeleteObj(p0 context.Context, p1 cid.Cid) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainDeleteObj == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainDeleteObj(p0, p1)
|
2019-08-26 13:45:36 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainDeleteObj(p0 context.Context, p1 cid.Cid) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainExport(p0 context.Context, p1 abi.ChainEpoch, p2 bool, p3 types.TipSetKey) (<-chan []byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainExport == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainExport(p0, p1, p2, p3)
|
2020-06-16 14:14:49 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainExport(p0 context.Context, p1 abi.ChainEpoch, p2 bool, p3 types.TipSetKey) (<-chan []byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-02-02 16:51:52 +00:00
|
|
|
func (s *FullNodeStruct) ChainExportRangeInternal(p0 context.Context, p1 types.TipSetKey, p2 types.TipSetKey, p3 ChainExportConfig) error {
|
2022-08-20 00:41:03 +00:00
|
|
|
if s.Internal.ChainExportRangeInternal == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainExportRangeInternal(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
2023-02-02 16:51:52 +00:00
|
|
|
func (s *FullNodeStub) ChainExportRangeInternal(p0 context.Context, p1 types.TipSetKey, p2 types.TipSetKey, p3 ChainExportConfig) error {
|
2022-08-20 00:41:03 +00:00
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetBlock(p0 context.Context, p1 cid.Cid) (*types.BlockHeader, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetBlock == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetBlock(p0, p1)
|
2019-08-01 17:12:41 +00:00
|
|
|
}
|
2020-08-04 23:40:29 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetBlock(p0 context.Context, p1 cid.Cid) (*types.BlockHeader, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetBlockMessages(p0 context.Context, p1 cid.Cid) (*BlockMessages, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetBlockMessages == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetBlockMessages(p0, p1)
|
2019-11-06 19:44:28 +00:00
|
|
|
}
|
2019-08-27 18:45:21 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetBlockMessages(p0 context.Context, p1 cid.Cid) (*BlockMessages, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-11-16 13:53:27 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetEvents(p0 context.Context, p1 cid.Cid) ([]types.Event, error) {
|
|
|
|
if s.Internal.ChainGetEvents == nil {
|
|
|
|
return *new([]types.Event), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainGetEvents(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) ChainGetEvents(p0 context.Context, p1 cid.Cid) ([]types.Event, error) {
|
|
|
|
return *new([]types.Event), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetGenesis(p0 context.Context) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetGenesis == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetGenesis(p0)
|
2020-10-07 06:13:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetGenesis(p0 context.Context) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetMessage(p0 context.Context, p1 cid.Cid) (*types.Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetMessage == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetMessage(p0, p1)
|
2019-09-10 14:13:24 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetMessage(p0 context.Context, p1 cid.Cid) (*types.Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-07-01 03:20:22 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetMessagesInTipset(p0 context.Context, p1 types.TipSetKey) ([]Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetMessagesInTipset == nil {
|
|
|
|
return *new([]Message), ErrNotSupported
|
|
|
|
}
|
2021-07-01 03:20:22 +00:00
|
|
|
return s.Internal.ChainGetMessagesInTipset(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) ChainGetMessagesInTipset(p0 context.Context, p1 types.TipSetKey) ([]Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]Message), ErrNotSupported
|
2021-07-01 03:20:22 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetNode(p0 context.Context, p1 string) (*IpldObject, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetNode == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetNode(p0, p1)
|
2020-08-27 18:32:51 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetNode(p0 context.Context, p1 string) (*IpldObject, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetParentMessages(p0 context.Context, p1 cid.Cid) ([]Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetParentMessages == nil {
|
|
|
|
return *new([]Message), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetParentMessages(p0, p1)
|
2019-08-27 18:45:21 +00:00
|
|
|
}
|
2019-08-01 17:12:41 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetParentMessages(p0 context.Context, p1 cid.Cid) ([]Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]Message), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetParentReceipts(p0 context.Context, p1 cid.Cid) ([]*types.MessageReceipt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetParentReceipts == nil {
|
|
|
|
return *new([]*types.MessageReceipt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetParentReceipts(p0, p1)
|
2020-08-18 09:49:56 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetParentReceipts(p0 context.Context, p1 cid.Cid) ([]*types.MessageReceipt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*types.MessageReceipt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetPath(p0 context.Context, p1 types.TipSetKey, p2 types.TipSetKey) ([]*HeadChange, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetPath == nil {
|
|
|
|
return *new([]*HeadChange), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetPath(p0, p1, p2)
|
2019-09-13 21:00:36 +00:00
|
|
|
}
|
2020-10-22 11:59:08 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetPath(p0 context.Context, p1 types.TipSetKey, p2 types.TipSetKey) ([]*HeadChange, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*HeadChange), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetTipSet(p0 context.Context, p1 types.TipSetKey) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetTipSet == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetTipSet(p0, p1)
|
2020-04-03 22:17:57 +00:00
|
|
|
}
|
2019-09-13 21:00:36 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetTipSet(p0 context.Context, p1 types.TipSetKey) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-08-05 17:53:12 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetTipSetAfterHeight(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) {
|
|
|
|
if s.Internal.ChainGetTipSetAfterHeight == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainGetTipSetAfterHeight(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) ChainGetTipSetAfterHeight(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainGetTipSetByHeight(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetTipSetByHeight == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetTipSetByHeight(p0, p1, p2)
|
2020-07-31 16:22:04 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainGetTipSetByHeight(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainHasObj(p0 context.Context, p1 cid.Cid) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainHasObj == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainHasObj(p0, p1)
|
2020-08-18 23:26:21 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainHasObj(p0 context.Context, p1 cid.Cid) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainHead(p0 context.Context) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainHead == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainHead(p0)
|
2020-08-19 00:36:22 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainHead(p0 context.Context) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-03-03 16:14:52 +00:00
|
|
|
func (s *FullNodeStruct) ChainHotGC(p0 context.Context, p1 HotGCOpts) error {
|
|
|
|
if s.Internal.ChainHotGC == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainHotGC(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) ChainHotGC(p0 context.Context, p1 HotGCOpts) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) ChainNotify(p0 context.Context) (<-chan []*HeadChange, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainNotify == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainNotify(p0)
|
2020-10-13 10:37:00 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainNotify(p0 context.Context) (<-chan []*HeadChange, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-08-05 20:34:16 +00:00
|
|
|
func (s *FullNodeStruct) ChainPrune(p0 context.Context, p1 PruneOpts) error {
|
|
|
|
if s.Internal.ChainPrune == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainPrune(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) ChainPrune(p0 context.Context, p1 PruneOpts) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-06-07 03:14:16 +00:00
|
|
|
func (s *FullNodeStruct) ChainPutObj(p0 context.Context, p1 blocks.Block) error {
|
|
|
|
if s.Internal.ChainPutObj == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainPutObj(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) ChainPutObj(p0 context.Context, p1 blocks.Block) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainReadObj(p0 context.Context, p1 cid.Cid) ([]byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainReadObj == nil {
|
|
|
|
return *new([]byte), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainReadObj(p0, p1)
|
2020-10-22 20:40:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainReadObj(p0 context.Context, p1 cid.Cid) ([]byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]byte), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainSetHead(p0 context.Context, p1 types.TipSetKey) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainSetHead == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainSetHead(p0, p1)
|
2020-09-04 05:34:59 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainSetHead(p0 context.Context, p1 types.TipSetKey) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) ChainStatObj(p0 context.Context, p1 cid.Cid, p2 cid.Cid) (ObjStat, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainStatObj == nil {
|
|
|
|
return *new(ObjStat), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainStatObj(p0, p1, p2)
|
2020-07-20 17:48:30 +00:00
|
|
|
}
|
2020-08-19 21:25:58 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainStatObj(p0 context.Context, p1 cid.Cid, p2 cid.Cid) (ObjStat, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(ObjStat), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) ChainTipSetWeight(p0 context.Context, p1 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainTipSetWeight == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainTipSetWeight(p0, p1)
|
2020-08-06 22:10:55 +00:00
|
|
|
}
|
2020-07-20 17:48:30 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) ChainTipSetWeight(p0 context.Context, p1 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) CreateBackup(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.CreateBackup == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.CreateBackup(p0, p1)
|
2019-07-18 20:26:04 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) CreateBackup(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthAccounts(p0 context.Context) ([]ethtypes.EthAddress, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthAccounts == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new([]ethtypes.EthAddress), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthAccounts(p0)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthAccounts(p0 context.Context) ([]ethtypes.EthAddress, error) {
|
|
|
|
return *new([]ethtypes.EthAddress), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2023-02-15 19:17:00 +00:00
|
|
|
func (s *FullNodeStruct) EthAddressToFilecoinAddress(p0 context.Context, p1 ethtypes.EthAddress) (address.Address, error) {
|
|
|
|
if s.Internal.EthAddressToFilecoinAddress == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthAddressToFilecoinAddress(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) EthAddressToFilecoinAddress(p0 context.Context, p1 ethtypes.EthAddress) (address.Address, error) {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthBlockNumber(p0 context.Context) (ethtypes.EthUint64, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthBlockNumber == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthBlockNumber(p0)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthBlockNumber(p0 context.Context) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStruct) EthCall(p0 context.Context, p1 ethtypes.EthCall, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-09-12 21:46:15 +00:00
|
|
|
if s.Internal.EthCall == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
2022-09-12 21:46:15 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthCall(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStub) EthCall(p0 context.Context, p1 ethtypes.EthCall, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
2022-09-12 21:46:15 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthChainId(p0 context.Context) (ethtypes.EthUint64, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthChainId == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthChainId(p0)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthChainId(p0 context.Context) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2023-11-29 10:17:10 +00:00
|
|
|
func (s *FullNodeStruct) EthEstimateGas(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthUint64, error) {
|
2022-09-12 21:46:15 +00:00
|
|
|
if s.Internal.EthEstimateGas == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-12 21:46:15 +00:00
|
|
|
}
|
2023-11-29 10:17:10 +00:00
|
|
|
return s.Internal.EthEstimateGas(p0, p1)
|
2022-09-12 21:46:15 +00:00
|
|
|
}
|
|
|
|
|
2023-11-29 10:17:10 +00:00
|
|
|
func (s *FullNodeStub) EthEstimateGas(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthUint64, error) {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-12 21:46:15 +00:00
|
|
|
}
|
|
|
|
|
2023-02-10 18:33:59 +00:00
|
|
|
func (s *FullNodeStruct) EthFeeHistory(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthFeeHistory, error) {
|
2022-10-22 15:31:58 +00:00
|
|
|
if s.Internal.EthFeeHistory == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthFeeHistory), ErrNotSupported
|
2022-10-22 15:31:58 +00:00
|
|
|
}
|
2023-02-10 18:33:59 +00:00
|
|
|
return s.Internal.EthFeeHistory(p0, p1)
|
2022-10-22 15:31:58 +00:00
|
|
|
}
|
|
|
|
|
2023-02-10 18:33:59 +00:00
|
|
|
func (s *FullNodeStub) EthFeeHistory(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthFeeHistory, error) {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthFeeHistory), ErrNotSupported
|
2022-10-22 15:31:58 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGasPrice(p0 context.Context) (ethtypes.EthBigInt, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGasPrice == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGasPrice(p0)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGasPrice(p0 context.Context) (ethtypes.EthBigInt, error) {
|
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStruct) EthGetBalance(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBigInt, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetBalance == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetBalance(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStub) EthGetBalance(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBigInt, error) {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetBlockByHash(p0 context.Context, p1 ethtypes.EthHash, p2 bool) (ethtypes.EthBlock, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetBlockByHash == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBlock), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetBlockByHash(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetBlockByHash(p0 context.Context, p1 ethtypes.EthHash, p2 bool) (ethtypes.EthBlock, error) {
|
|
|
|
return *new(ethtypes.EthBlock), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetBlockByNumber(p0 context.Context, p1 string, p2 bool) (ethtypes.EthBlock, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetBlockByNumber == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBlock), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetBlockByNumber(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetBlockByNumber(p0 context.Context, p1 string, p2 bool) (ethtypes.EthBlock, error) {
|
|
|
|
return *new(ethtypes.EthBlock), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetBlockTransactionCountByHash(p0 context.Context, p1 ethtypes.EthHash) (ethtypes.EthUint64, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetBlockTransactionCountByHash == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetBlockTransactionCountByHash(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetBlockTransactionCountByHash(p0 context.Context, p1 ethtypes.EthHash) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetBlockTransactionCountByNumber(p0 context.Context, p1 ethtypes.EthUint64) (ethtypes.EthUint64, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetBlockTransactionCountByNumber == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetBlockTransactionCountByNumber(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetBlockTransactionCountByNumber(p0 context.Context, p1 ethtypes.EthUint64) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStruct) EthGetCode(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetCode == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
2022-10-21 11:15:24 +00:00
|
|
|
return s.Internal.EthGetCode(p0, p1, p2)
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStub) EthGetCode(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetFilterChanges(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
if s.Internal.EthGetFilterChanges == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetFilterChanges(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetFilterChanges(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetFilterLogs(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
if s.Internal.EthGetFilterLogs == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetFilterLogs(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetFilterLogs(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetLogs(p0 context.Context, p1 *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
if s.Internal.EthGetLogs == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetLogs(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetLogs(p0 context.Context, p1 *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-01-18 22:48:10 +00:00
|
|
|
func (s *FullNodeStruct) EthGetMessageCidByTransactionHash(p0 context.Context, p1 *ethtypes.EthHash) (*cid.Cid, error) {
|
|
|
|
if s.Internal.EthGetMessageCidByTransactionHash == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetMessageCidByTransactionHash(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) EthGetMessageCidByTransactionHash(p0 context.Context, p1 *ethtypes.EthHash) (*cid.Cid, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStruct) EthGetStorageAt(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBytes, p3 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetStorageAt == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetStorageAt(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStub) EthGetStorageAt(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBytes, p3 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetTransactionByBlockHashAndIndex(p0 context.Context, p1 ethtypes.EthHash, p2 ethtypes.EthUint64) (ethtypes.EthTx, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetTransactionByBlockHashAndIndex == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthTx), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionByBlockHashAndIndex(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetTransactionByBlockHashAndIndex(p0 context.Context, p1 ethtypes.EthHash, p2 ethtypes.EthUint64) (ethtypes.EthTx, error) {
|
|
|
|
return *new(ethtypes.EthTx), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetTransactionByBlockNumberAndIndex(p0 context.Context, p1 ethtypes.EthUint64, p2 ethtypes.EthUint64) (ethtypes.EthTx, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetTransactionByBlockNumberAndIndex == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthTx), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionByBlockNumberAndIndex(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetTransactionByBlockNumberAndIndex(p0 context.Context, p1 ethtypes.EthUint64, p2 ethtypes.EthUint64) (ethtypes.EthTx, error) {
|
|
|
|
return *new(ethtypes.EthTx), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetTransactionByHash(p0 context.Context, p1 *ethtypes.EthHash) (*ethtypes.EthTx, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetTransactionByHash == nil {
|
2022-09-29 20:46:59 +00:00
|
|
|
return nil, ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionByHash(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetTransactionByHash(p0 context.Context, p1 *ethtypes.EthHash) (*ethtypes.EthTx, error) {
|
2022-09-29 20:46:59 +00:00
|
|
|
return nil, ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2023-03-14 04:59:16 +00:00
|
|
|
func (s *FullNodeStruct) EthGetTransactionByHashLimited(p0 context.Context, p1 *ethtypes.EthHash, p2 abi.ChainEpoch) (*ethtypes.EthTx, error) {
|
|
|
|
if s.Internal.EthGetTransactionByHashLimited == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionByHashLimited(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) EthGetTransactionByHashLimited(p0 context.Context, p1 *ethtypes.EthHash, p2 abi.ChainEpoch) (*ethtypes.EthTx, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStruct) EthGetTransactionCount(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthUint64, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetTransactionCount == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionCount(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *FullNodeStub) EthGetTransactionCount(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthUint64, error) {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2023-01-04 13:22:41 +00:00
|
|
|
func (s *FullNodeStruct) EthGetTransactionHashByCid(p0 context.Context, p1 cid.Cid) (*ethtypes.EthHash, error) {
|
|
|
|
if s.Internal.EthGetTransactionHashByCid == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionHashByCid(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) EthGetTransactionHashByCid(p0 context.Context, p1 cid.Cid) (*ethtypes.EthHash, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthGetTransactionReceipt(p0 context.Context, p1 ethtypes.EthHash) (*EthTxReceipt, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthGetTransactionReceipt == nil {
|
2022-09-29 20:46:59 +00:00
|
|
|
return nil, ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionReceipt(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthGetTransactionReceipt(p0 context.Context, p1 ethtypes.EthHash) (*EthTxReceipt, error) {
|
2022-09-29 20:46:59 +00:00
|
|
|
return nil, ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2023-03-14 04:59:16 +00:00
|
|
|
func (s *FullNodeStruct) EthGetTransactionReceiptLimited(p0 context.Context, p1 ethtypes.EthHash, p2 abi.ChainEpoch) (*EthTxReceipt, error) {
|
|
|
|
if s.Internal.EthGetTransactionReceiptLimited == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionReceiptLimited(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) EthGetTransactionReceiptLimited(p0 context.Context, p1 ethtypes.EthHash, p2 abi.ChainEpoch) (*EthTxReceipt, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthMaxPriorityFeePerGas(p0 context.Context) (ethtypes.EthBigInt, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthMaxPriorityFeePerGas == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthMaxPriorityFeePerGas(p0)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthMaxPriorityFeePerGas(p0 context.Context) (ethtypes.EthBigInt, error) {
|
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthNewBlockFilter(p0 context.Context) (ethtypes.EthFilterID, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
if s.Internal.EthNewBlockFilter == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
2022-11-10 15:04:58 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthNewBlockFilter(p0)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthNewBlockFilter(p0 context.Context) (ethtypes.EthFilterID, error) {
|
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
2022-11-10 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthNewFilter(p0 context.Context, p1 *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
if s.Internal.EthNewFilter == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
2022-11-10 15:04:58 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthNewFilter(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthNewFilter(p0 context.Context, p1 *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error) {
|
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
2022-11-10 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthNewPendingTransactionFilter(p0 context.Context) (ethtypes.EthFilterID, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
if s.Internal.EthNewPendingTransactionFilter == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
2022-11-10 15:04:58 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthNewPendingTransactionFilter(p0)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthNewPendingTransactionFilter(p0 context.Context) (ethtypes.EthFilterID, error) {
|
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
2022-11-10 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthProtocolVersion(p0 context.Context) (ethtypes.EthUint64, error) {
|
2022-09-09 17:59:00 +00:00
|
|
|
if s.Internal.EthProtocolVersion == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthProtocolVersion(p0)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthProtocolVersion(p0 context.Context) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
2022-09-09 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthSendRawTransaction(p0 context.Context, p1 ethtypes.EthBytes) (ethtypes.EthHash, error) {
|
2022-09-28 14:58:24 +00:00
|
|
|
if s.Internal.EthSendRawTransaction == nil {
|
2022-12-16 21:35:43 +00:00
|
|
|
return *new(ethtypes.EthHash), ErrNotSupported
|
2022-09-28 14:58:24 +00:00
|
|
|
}
|
|
|
|
return s.Internal.EthSendRawTransaction(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthSendRawTransaction(p0 context.Context, p1 ethtypes.EthBytes) (ethtypes.EthHash, error) {
|
|
|
|
return *new(ethtypes.EthHash), ErrNotSupported
|
2022-09-28 14:58:24 +00:00
|
|
|
}
|
|
|
|
|
2023-01-31 10:00:15 +00:00
|
|
|
func (s *FullNodeStruct) EthSubscribe(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
if s.Internal.EthSubscribe == nil {
|
2023-01-16 13:54:26 +00:00
|
|
|
return *new(ethtypes.EthSubscriptionID), ErrNotSupported
|
2022-11-10 15:04:58 +00:00
|
|
|
}
|
2023-01-31 10:00:15 +00:00
|
|
|
return s.Internal.EthSubscribe(p0, p1)
|
2022-11-10 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
2023-01-31 10:00:15 +00:00
|
|
|
func (s *FullNodeStub) EthSubscribe(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error) {
|
2023-01-16 13:54:26 +00:00
|
|
|
return *new(ethtypes.EthSubscriptionID), ErrNotSupported
|
2022-11-10 15:04:58 +00:00
|
|
|
}
|
|
|
|
|
2023-04-21 12:02:40 +00:00
|
|
|
func (s *FullNodeStruct) EthSyncing(p0 context.Context) (ethtypes.EthSyncingResult, error) {
|
|
|
|
if s.Internal.EthSyncing == nil {
|
|
|
|
return *new(ethtypes.EthSyncingResult), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthSyncing(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) EthSyncing(p0 context.Context) (ethtypes.EthSyncingResult, error) {
|
|
|
|
return *new(ethtypes.EthSyncingResult), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-08-22 16:15:14 +00:00
|
|
|
func (s *FullNodeStruct) EthTraceBlock(p0 context.Context, p1 string) ([]*ethtypes.EthTraceBlock, error) {
|
|
|
|
if s.Internal.EthTraceBlock == nil {
|
|
|
|
return *new([]*ethtypes.EthTraceBlock), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthTraceBlock(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) EthTraceBlock(p0 context.Context, p1 string) ([]*ethtypes.EthTraceBlock, error) {
|
|
|
|
return *new([]*ethtypes.EthTraceBlock), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStruct) EthTraceReplayBlockTransactions(p0 context.Context, p1 string, p2 []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error) {
|
|
|
|
if s.Internal.EthTraceReplayBlockTransactions == nil {
|
|
|
|
return *new([]*ethtypes.EthTraceReplayBlockTransaction), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthTraceReplayBlockTransactions(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) EthTraceReplayBlockTransactions(p0 context.Context, p1 string, p2 []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error) {
|
|
|
|
return *new([]*ethtypes.EthTraceReplayBlockTransaction), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2024-06-07 18:14:34 +00:00
|
|
|
func (s *FullNodeStruct) EthTraceTransaction(p0 context.Context, p1 string) ([]*ethtypes.EthTraceTransaction, error) {
|
|
|
|
if s.Internal.EthTraceTransaction == nil {
|
|
|
|
return *new([]*ethtypes.EthTraceTransaction), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthTraceTransaction(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) EthTraceTransaction(p0 context.Context, p1 string) ([]*ethtypes.EthTraceTransaction, error) {
|
|
|
|
return *new([]*ethtypes.EthTraceTransaction), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthUninstallFilter(p0 context.Context, p1 ethtypes.EthFilterID) (bool, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
if s.Internal.EthUninstallFilter == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthUninstallFilter(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthUninstallFilter(p0 context.Context, p1 ethtypes.EthFilterID) (bool, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStruct) EthUnsubscribe(p0 context.Context, p1 ethtypes.EthSubscriptionID) (bool, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
if s.Internal.EthUnsubscribe == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthUnsubscribe(p0, p1)
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:35:43 +00:00
|
|
|
func (s *FullNodeStub) EthUnsubscribe(p0 context.Context, p1 ethtypes.EthSubscriptionID) (bool, error) {
|
2022-11-10 15:04:58 +00:00
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-02-24 19:19:52 +00:00
|
|
|
func (s *FullNodeStruct) FilecoinAddressToEthAddress(p0 context.Context, p1 address.Address) (ethtypes.EthAddress, error) {
|
|
|
|
if s.Internal.FilecoinAddressToEthAddress == nil {
|
|
|
|
return *new(ethtypes.EthAddress), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.FilecoinAddressToEthAddress(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) FilecoinAddressToEthAddress(p0 context.Context, p1 address.Address) (ethtypes.EthAddress, error) {
|
|
|
|
return *new(ethtypes.EthAddress), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) GasEstimateFeeCap(p0 context.Context, p1 *types.Message, p2 int64, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.GasEstimateFeeCap == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.GasEstimateFeeCap(p0, p1, p2, p3)
|
2019-07-17 03:05:55 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) GasEstimateFeeCap(p0 context.Context, p1 *types.Message, p2 int64, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) GasEstimateGasLimit(p0 context.Context, p1 *types.Message, p2 types.TipSetKey) (int64, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.GasEstimateGasLimit == nil {
|
|
|
|
return 0, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.GasEstimateGasLimit(p0, p1, p2)
|
2019-08-09 15:59:12 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) GasEstimateGasLimit(p0 context.Context, p1 *types.Message, p2 types.TipSetKey) (int64, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return 0, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) GasEstimateGasPremium(p0 context.Context, p1 uint64, p2 address.Address, p3 int64, p4 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.GasEstimateGasPremium == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.GasEstimateGasPremium(p0, p1, p2, p3, p4)
|
2020-02-25 23:17:15 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) GasEstimateGasPremium(p0 context.Context, p1 uint64, p2 address.Address, p3 int64, p4 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) GasEstimateMessageGas(p0 context.Context, p1 *types.Message, p2 *MessageSendSpec, p3 types.TipSetKey) (*types.Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.GasEstimateMessageGas == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.GasEstimateMessageGas(p0, p1, p2, p3)
|
2019-07-17 03:05:55 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) GasEstimateMessageGas(p0 context.Context, p1 *types.Message, p2 *MessageSendSpec, p3 types.TipSetKey) (*types.Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
func (s *FullNodeStruct) GetActorEventsRaw(p0 context.Context, p1 *types.ActorEventFilter) ([]*types.ActorEvent, error) {
|
|
|
|
if s.Internal.GetActorEventsRaw == nil {
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
return *new([]*types.ActorEvent), ErrNotSupported
|
|
|
|
}
|
2024-03-19 00:37:46 +00:00
|
|
|
return s.Internal.GetActorEventsRaw(p0, p1)
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
func (s *FullNodeStub) GetActorEventsRaw(p0 context.Context, p1 *types.ActorEventFilter) ([]*types.ActorEvent, error) {
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
return *new([]*types.ActorEvent), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MarketAddBalance(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MarketAddBalance == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MarketAddBalance(p0, p1, p2, p3)
|
2019-10-17 10:18:40 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MarketAddBalance(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MarketGetReserved(p0 context.Context, p1 address.Address) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MarketGetReserved == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MarketGetReserved(p0, p1)
|
2019-10-08 09:17:03 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MarketGetReserved(p0 context.Context, p1 address.Address) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MarketReleaseFunds(p0 context.Context, p1 address.Address, p2 types.BigInt) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MarketReleaseFunds == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MarketReleaseFunds(p0, p1, p2)
|
2019-10-08 09:17:03 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MarketReleaseFunds(p0 context.Context, p1 address.Address, p2 types.BigInt) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MarketReserveFunds(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MarketReserveFunds == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MarketReserveFunds(p0, p1, p2, p3)
|
2020-06-05 23:04:23 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MarketReserveFunds(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MarketWithdraw(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MarketWithdraw == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MarketWithdraw(p0, p1, p2, p3)
|
2020-09-30 05:43:10 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MarketWithdraw(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) MinerCreateBlock(p0 context.Context, p1 *BlockTemplate) (*types.BlockMsg, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MinerCreateBlock == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MinerCreateBlock(p0, p1)
|
2019-07-17 03:05:55 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MinerCreateBlock(p0 context.Context, p1 *BlockTemplate) (*types.BlockMsg, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) MinerGetBaseInfo(p0 context.Context, p1 address.Address, p2 abi.ChainEpoch, p3 types.TipSetKey) (*MiningBaseInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MinerGetBaseInfo == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MinerGetBaseInfo(p0, p1, p2, p3)
|
2019-07-23 00:54:27 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MinerGetBaseInfo(p0 context.Context, p1 address.Address, p2 abi.ChainEpoch, p3 types.TipSetKey) (*MiningBaseInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolBatchPush(p0 context.Context, p1 []*types.SignedMessage) ([]cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolBatchPush == nil {
|
|
|
|
return *new([]cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolBatchPush(p0, p1)
|
2019-10-11 06:25:25 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolBatchPush(p0 context.Context, p1 []*types.SignedMessage) ([]cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) MpoolBatchPushMessage(p0 context.Context, p1 []*types.Message, p2 *MessageSendSpec) ([]*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolBatchPushMessage == nil {
|
|
|
|
return *new([]*types.SignedMessage), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolBatchPushMessage(p0, p1, p2)
|
2019-07-23 00:54:27 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolBatchPushMessage(p0 context.Context, p1 []*types.Message, p2 *MessageSendSpec) ([]*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*types.SignedMessage), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolBatchPushUntrusted(p0 context.Context, p1 []*types.SignedMessage) ([]cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolBatchPushUntrusted == nil {
|
|
|
|
return *new([]cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolBatchPushUntrusted(p0, p1)
|
2019-10-03 20:22:21 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolBatchPushUntrusted(p0 context.Context, p1 []*types.SignedMessage) ([]cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-02 14:12:34 +00:00
|
|
|
func (s *FullNodeStruct) MpoolCheckMessages(p0 context.Context, p1 []*MessagePrototype) ([][]MessageCheckStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolCheckMessages == nil {
|
|
|
|
return *new([][]MessageCheckStatus), ErrNotSupported
|
|
|
|
}
|
2021-03-12 15:10:12 +00:00
|
|
|
return s.Internal.MpoolCheckMessages(p0, p1)
|
|
|
|
}
|
|
|
|
|
2021-04-02 14:12:34 +00:00
|
|
|
func (s *FullNodeStub) MpoolCheckMessages(p0 context.Context, p1 []*MessagePrototype) ([][]MessageCheckStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([][]MessageCheckStatus), ErrNotSupported
|
2021-03-12 15:10:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStruct) MpoolCheckPendingMessages(p0 context.Context, p1 address.Address) ([][]MessageCheckStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolCheckPendingMessages == nil {
|
|
|
|
return *new([][]MessageCheckStatus), ErrNotSupported
|
|
|
|
}
|
2021-03-12 15:10:12 +00:00
|
|
|
return s.Internal.MpoolCheckPendingMessages(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) MpoolCheckPendingMessages(p0 context.Context, p1 address.Address) ([][]MessageCheckStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([][]MessageCheckStatus), ErrNotSupported
|
2021-03-12 15:10:12 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 14:55:38 +00:00
|
|
|
func (s *FullNodeStruct) MpoolCheckReplaceMessages(p0 context.Context, p1 []*types.Message) ([][]MessageCheckStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolCheckReplaceMessages == nil {
|
|
|
|
return *new([][]MessageCheckStatus), ErrNotSupported
|
|
|
|
}
|
2021-03-23 14:55:38 +00:00
|
|
|
return s.Internal.MpoolCheckReplaceMessages(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) MpoolCheckReplaceMessages(p0 context.Context, p1 []*types.Message) ([][]MessageCheckStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([][]MessageCheckStatus), ErrNotSupported
|
2021-03-23 14:55:38 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolClear(p0 context.Context, p1 bool) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolClear == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolClear(p0, p1)
|
2019-08-07 23:22:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolClear(p0 context.Context, p1 bool) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolGetConfig(p0 context.Context) (*types.MpoolConfig, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolGetConfig == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolGetConfig(p0)
|
2019-07-28 19:19:33 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolGetConfig(p0 context.Context) (*types.MpoolConfig, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolGetNonce(p0 context.Context, p1 address.Address) (uint64, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolGetNonce == nil {
|
|
|
|
return 0, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolGetNonce(p0, p1)
|
2019-10-01 16:28:07 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolGetNonce(p0 context.Context, p1 address.Address) (uint64, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return 0, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolPending(p0 context.Context, p1 types.TipSetKey) ([]*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolPending == nil {
|
|
|
|
return *new([]*types.SignedMessage), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolPending(p0, p1)
|
2020-09-10 17:35:06 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolPending(p0 context.Context, p1 types.TipSetKey) ([]*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*types.SignedMessage), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolPush(p0 context.Context, p1 *types.SignedMessage) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolPush == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolPush(p0, p1)
|
2020-02-04 02:45:20 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolPush(p0 context.Context, p1 *types.SignedMessage) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) MpoolPushMessage(p0 context.Context, p1 *types.Message, p2 *MessageSendSpec) (*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolPushMessage == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolPushMessage(p0, p1, p2)
|
2020-03-04 23:52:28 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolPushMessage(p0 context.Context, p1 *types.Message, p2 *MessageSendSpec) (*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolPushUntrusted(p0 context.Context, p1 *types.SignedMessage) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolPushUntrusted == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolPushUntrusted(p0, p1)
|
2019-10-10 03:50:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolPushUntrusted(p0 context.Context, p1 *types.SignedMessage) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolSelect(p0 context.Context, p1 types.TipSetKey, p2 float64) ([]*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolSelect == nil {
|
|
|
|
return *new([]*types.SignedMessage), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolSelect(p0, p1, p2)
|
2019-10-11 02:14:22 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolSelect(p0 context.Context, p1 types.TipSetKey, p2 float64) ([]*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*types.SignedMessage), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MpoolSetConfig(p0 context.Context, p1 *types.MpoolConfig) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolSetConfig == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolSetConfig(p0, p1)
|
2019-10-15 05:00:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolSetConfig(p0 context.Context, p1 *types.MpoolConfig) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) MpoolSub(p0 context.Context) (<-chan MpoolUpdate, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolSub == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolSub(p0)
|
2019-12-19 15:50:18 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MpoolSub(p0 context.Context) (<-chan MpoolUpdate, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigAddApprove(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 address.Address, p6 bool) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigAddApprove == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigAddApprove(p0, p1, p2, p3, p4, p5, p6)
|
2020-01-07 19:03:11 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigAddApprove(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 address.Address, p6 bool) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigAddCancel(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 bool) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigAddCancel == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigAddCancel(p0, p1, p2, p3, p4, p5)
|
2020-01-15 00:24:08 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigAddCancel(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 bool) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigAddPropose(p0 context.Context, p1 address.Address, p2 address.Address, p3 address.Address, p4 bool) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigAddPropose == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigAddPropose(p0, p1, p2, p3, p4)
|
2020-01-20 23:51:02 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigAddPropose(p0 context.Context, p1 address.Address, p2 address.Address, p3 address.Address, p4 bool) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigApprove(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigApprove == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigApprove(p0, p1, p2, p3)
|
2020-08-05 00:01:21 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigApprove(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigApproveTxnHash(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address, p4 address.Address, p5 types.BigInt, p6 address.Address, p7 uint64, p8 []byte) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigApproveTxnHash == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigApproveTxnHash(p0, p1, p2, p3, p4, p5, p6, p7, p8)
|
2019-09-30 21:06:47 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigApproveTxnHash(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address, p4 address.Address, p5 types.BigInt, p6 address.Address, p7 uint64, p8 []byte) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-11-18 23:52:20 +00:00
|
|
|
func (s *FullNodeStruct) MsigCancel(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigCancel == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-11-18 23:52:20 +00:00
|
|
|
return s.Internal.MsigCancel(p0, p1, p2, p3)
|
2019-10-14 14:21:37 +00:00
|
|
|
}
|
|
|
|
|
2021-11-18 23:52:20 +00:00
|
|
|
func (s *FullNodeStub) MsigCancel(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address) (*MessagePrototype, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStruct) MsigCancelTxnHash(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address, p4 types.BigInt, p5 address.Address, p6 uint64, p7 []byte) (*MessagePrototype, error) {
|
|
|
|
if s.Internal.MsigCancelTxnHash == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.MsigCancelTxnHash(p0, p1, p2, p3, p4, p5, p6, p7)
|
2019-10-14 14:21:37 +00:00
|
|
|
}
|
|
|
|
|
2021-11-18 23:52:20 +00:00
|
|
|
func (s *FullNodeStub) MsigCancelTxnHash(p0 context.Context, p1 address.Address, p2 uint64, p3 address.Address, p4 types.BigInt, p5 address.Address, p6 uint64, p7 []byte) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigCreate(p0 context.Context, p1 uint64, p2 []address.Address, p3 abi.ChainEpoch, p4 types.BigInt, p5 address.Address, p6 types.BigInt) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigCreate == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigCreate(p0, p1, p2, p3, p4, p5, p6)
|
2019-11-18 21:39:07 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigCreate(p0 context.Context, p1 uint64, p2 []address.Address, p3 abi.ChainEpoch, p4 types.BigInt, p5 address.Address, p6 types.BigInt) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MsigGetAvailableBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigGetAvailableBalance == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigGetAvailableBalance(p0, p1, p2)
|
2020-09-09 05:14:01 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MsigGetAvailableBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) MsigGetPending(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*MsigTransaction, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigGetPending == nil {
|
|
|
|
return *new([]*MsigTransaction), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigGetPending(p0, p1, p2)
|
2019-12-21 06:10:40 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MsigGetPending(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*MsigTransaction, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*MsigTransaction), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) MsigGetVested(p0 context.Context, p1 address.Address, p2 types.TipSetKey, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigGetVested == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigGetVested(p0, p1, p2, p3)
|
2020-09-09 07:24:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MsigGetVested(p0 context.Context, p1 address.Address, p2 types.TipSetKey, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) MsigGetVestingSchedule(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MsigVesting, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigGetVestingSchedule == nil {
|
|
|
|
return *new(MsigVesting), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigGetVestingSchedule(p0, p1, p2)
|
2020-10-10 08:26:42 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) MsigGetVestingSchedule(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MsigVesting, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(MsigVesting), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigPropose(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt, p4 address.Address, p5 uint64, p6 []byte) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigPropose == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigPropose(p0, p1, p2, p3, p4, p5, p6)
|
2020-02-12 07:44:55 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigPropose(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt, p4 address.Address, p5 uint64, p6 []byte) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigRemoveSigner(p0 context.Context, p1 address.Address, p2 address.Address, p3 address.Address, p4 bool) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigRemoveSigner == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigRemoveSigner(p0, p1, p2, p3, p4)
|
2020-09-27 21:52:26 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigRemoveSigner(p0 context.Context, p1 address.Address, p2 address.Address, p3 address.Address, p4 bool) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigSwapApprove(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 address.Address, p6 address.Address) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigSwapApprove == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigSwapApprove(p0, p1, p2, p3, p4, p5, p6)
|
2020-03-31 23:13:37 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigSwapApprove(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 address.Address, p6 address.Address) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigSwapCancel(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 address.Address) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigSwapCancel == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigSwapCancel(p0, p1, p2, p3, p4, p5)
|
2019-08-07 06:35:57 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigSwapCancel(p0 context.Context, p1 address.Address, p2 address.Address, p3 uint64, p4 address.Address, p5 address.Address) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStruct) MsigSwapPropose(p0 context.Context, p1 address.Address, p2 address.Address, p3 address.Address, p4 address.Address) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigSwapPropose == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigSwapPropose(p0, p1, p2, p3, p4)
|
2020-04-15 20:40:46 +00:00
|
|
|
}
|
|
|
|
|
2021-03-27 14:35:46 +00:00
|
|
|
func (s *FullNodeStub) MsigSwapPropose(p0 context.Context, p1 address.Address, p2 address.Address, p3 address.Address, p4 address.Address) (*MessagePrototype, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-09-09 17:59:00 +00:00
|
|
|
func (s *FullNodeStruct) NetListening(p0 context.Context) (bool, error) {
|
|
|
|
if s.Internal.NetListening == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetListening(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) NetListening(p0 context.Context) (bool, error) {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStruct) NetVersion(p0 context.Context) (string, error) {
|
|
|
|
if s.Internal.NetVersion == nil {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetVersion(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) NetVersion(p0 context.Context) (string, error) {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-10 17:22:35 +00:00
|
|
|
func (s *FullNodeStruct) NodeStatus(p0 context.Context, p1 bool) (NodeStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NodeStatus == nil {
|
|
|
|
return *new(NodeStatus), ErrNotSupported
|
|
|
|
}
|
2021-03-10 17:22:35 +00:00
|
|
|
return s.Internal.NodeStatus(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) NodeStatus(p0 context.Context, p1 bool) (NodeStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(NodeStatus), ErrNotSupported
|
2021-03-10 17:22:35 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychAllocateLane(p0 context.Context, p1 address.Address) (uint64, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychAllocateLane == nil {
|
|
|
|
return 0, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychAllocateLane(p0, p1)
|
2020-04-24 17:12:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychAllocateLane(p0 context.Context, p1 address.Address) (uint64, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return 0, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) PaychAvailableFunds(p0 context.Context, p1 address.Address) (*ChannelAvailableFunds, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychAvailableFunds == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychAvailableFunds(p0, p1)
|
2019-08-21 16:31:14 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychAvailableFunds(p0 context.Context, p1 address.Address) (*ChannelAvailableFunds, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) PaychAvailableFundsByFromTo(p0 context.Context, p1 address.Address, p2 address.Address) (*ChannelAvailableFunds, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychAvailableFundsByFromTo == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychAvailableFundsByFromTo(p0, p1, p2)
|
2019-10-16 07:07:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychAvailableFundsByFromTo(p0 context.Context, p1 address.Address, p2 address.Address) (*ChannelAvailableFunds, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychCollect(p0 context.Context, p1 address.Address) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychCollect == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychCollect(p0, p1)
|
2020-04-15 20:22:58 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychCollect(p0 context.Context, p1 address.Address) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-02-14 18:56:02 +00:00
|
|
|
func (s *FullNodeStruct) PaychFund(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (*ChannelInfo, error) {
|
|
|
|
if s.Internal.PaychFund == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.PaychFund(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) PaychFund(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt) (*ChannelInfo, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-01-06 15:04:39 +00:00
|
|
|
func (s *FullNodeStruct) PaychGet(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt, p4 PaychGetOpts) (*ChannelInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychGet == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2022-01-04 19:33:49 +00:00
|
|
|
return s.Internal.PaychGet(p0, p1, p2, p3, p4)
|
2020-07-14 17:10:31 +00:00
|
|
|
}
|
|
|
|
|
2022-01-06 15:04:39 +00:00
|
|
|
func (s *FullNodeStub) PaychGet(p0 context.Context, p1 address.Address, p2 address.Address, p3 types.BigInt, p4 PaychGetOpts) (*ChannelInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychGetWaitReady(p0 context.Context, p1 cid.Cid) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychGetWaitReady == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychGetWaitReady(p0, p1)
|
2020-01-30 00:50:58 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychGetWaitReady(p0 context.Context, p1 cid.Cid) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychList(p0 context.Context) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychList == nil {
|
|
|
|
return *new([]address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychList(p0)
|
2020-01-30 00:50:58 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychList(p0 context.Context) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) PaychNewPayment(p0 context.Context, p1 address.Address, p2 address.Address, p3 []VoucherSpec) (*PaymentInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychNewPayment == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychNewPayment(p0, p1, p2, p3)
|
2020-05-16 21:50:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychNewPayment(p0 context.Context, p1 address.Address, p2 address.Address, p3 []VoucherSpec) (*PaymentInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychSettle(p0 context.Context, p1 address.Address) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychSettle == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychSettle(p0, p1)
|
2020-07-28 18:55:20 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychSettle(p0 context.Context, p1 address.Address) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) PaychStatus(p0 context.Context, p1 address.Address) (*PaychStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychStatus == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychStatus(p0, p1)
|
2020-04-23 19:39:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychStatus(p0 context.Context, p1 address.Address) (*PaychStatus, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychVoucherAdd(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher, p3 []byte, p4 types.BigInt) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychVoucherAdd == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychVoucherAdd(p0, p1, p2, p3, p4)
|
2020-04-23 19:39:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychVoucherAdd(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher, p3 []byte, p4 types.BigInt) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychVoucherCheckSpendable(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher, p3 []byte, p4 []byte) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychVoucherCheckSpendable == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychVoucherCheckSpendable(p0, p1, p2, p3, p4)
|
2020-10-13 19:35:29 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychVoucherCheckSpendable(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher, p3 []byte, p4 []byte) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychVoucherCheckValid(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychVoucherCheckValid == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychVoucherCheckValid(p0, p1, p2)
|
2020-04-04 02:55:19 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychVoucherCheckValid(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) PaychVoucherCreate(p0 context.Context, p1 address.Address, p2 types.BigInt, p3 uint64) (*VoucherCreateResult, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychVoucherCreate == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychVoucherCreate(p0, p1, p2, p3)
|
2020-05-28 00:06:29 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychVoucherCreate(p0 context.Context, p1 address.Address, p2 types.BigInt, p3 uint64) (*VoucherCreateResult, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychVoucherList(p0 context.Context, p1 address.Address) ([]*paych.SignedVoucher, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychVoucherList == nil {
|
|
|
|
return *new([]*paych.SignedVoucher), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychVoucherList(p0, p1)
|
2020-07-16 15:24:41 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychVoucherList(p0 context.Context, p1 address.Address) ([]*paych.SignedVoucher, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*paych.SignedVoucher), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) PaychVoucherSubmit(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher, p3 []byte, p4 []byte) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PaychVoucherSubmit == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PaychVoucherSubmit(p0, p1, p2, p3, p4)
|
2020-07-14 12:32:17 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) PaychVoucherSubmit(p0 context.Context, p1 address.Address, p2 *paych.SignedVoucher, p3 []byte, p4 []byte) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateAccountKey(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateAccountKey == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateAccountKey(p0, p1, p2)
|
2019-09-06 06:26:02 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateAccountKey(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-23 18:05:20 +00:00
|
|
|
func (s *FullNodeStruct) StateActorCodeCIDs(p0 context.Context, p1 abinetwork.Version) (map[string]cid.Cid, error) {
|
|
|
|
if s.Internal.StateActorCodeCIDs == nil {
|
|
|
|
return *new(map[string]cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateActorCodeCIDs(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateActorCodeCIDs(p0 context.Context, p1 abinetwork.Version) (map[string]cid.Cid, error) {
|
|
|
|
return *new(map[string]cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-08-22 21:10:03 +00:00
|
|
|
func (s *FullNodeStruct) StateActorManifestCID(p0 context.Context, p1 abinetwork.Version) (cid.Cid, error) {
|
|
|
|
if s.Internal.StateActorManifestCID == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateActorManifestCID(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateActorManifestCID(p0 context.Context, p1 abinetwork.Version) (cid.Cid, error) {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateAllMinerFaults(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) ([]*Fault, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateAllMinerFaults == nil {
|
|
|
|
return *new([]*Fault), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateAllMinerFaults(p0, p1, p2)
|
2019-09-19 20:25:18 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateAllMinerFaults(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) ([]*Fault, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*Fault), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateCall(p0 context.Context, p1 *types.Message, p2 types.TipSetKey) (*InvocResult, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateCall == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateCall(p0, p1, p2)
|
2019-09-06 06:26:02 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateCall(p0 context.Context, p1 *types.Message, p2 types.TipSetKey) (*InvocResult, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateChangedActors(p0 context.Context, p1 cid.Cid, p2 cid.Cid) (map[string]types.Actor, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateChangedActors == nil {
|
|
|
|
return *new(map[string]types.Actor), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateChangedActors(p0, p1, p2)
|
2019-09-06 06:26:02 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateChangedActors(p0 context.Context, p1 cid.Cid, p2 cid.Cid) (map[string]types.Actor, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[string]types.Actor), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateCirculatingSupply(p0 context.Context, p1 types.TipSetKey) (abi.TokenAmount, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateCirculatingSupply == nil {
|
|
|
|
return *new(abi.TokenAmount), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateCirculatingSupply(p0, p1)
|
2019-10-08 05:51:34 +00:00
|
|
|
}
|
2020-03-18 23:06:53 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateCirculatingSupply(p0 context.Context, p1 types.TipSetKey) (abi.TokenAmount, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(abi.TokenAmount), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateCompute(p0 context.Context, p1 abi.ChainEpoch, p2 []*types.Message, p3 types.TipSetKey) (*ComputeStateOutput, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateCompute == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateCompute(p0, p1, p2, p3)
|
2020-10-02 14:14:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateCompute(p0 context.Context, p1 abi.ChainEpoch, p2 []*types.Message, p3 types.TipSetKey) (*ComputeStateOutput, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-16 11:26:50 +00:00
|
|
|
func (s *FullNodeStruct) StateComputeDataCID(p0 context.Context, p1 address.Address, p2 abi.RegisteredSealProof, p3 []abi.DealID, p4 types.TipSetKey) (cid.Cid, error) {
|
|
|
|
if s.Internal.StateComputeDataCID == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateComputeDataCID(p0, p1, p2, p3, p4)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateComputeDataCID(p0 context.Context, p1 address.Address, p2 abi.RegisteredSealProof, p3 []abi.DealID, p4 types.TipSetKey) (cid.Cid, error) {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateDealProviderCollateralBounds(p0 context.Context, p1 abi.PaddedPieceSize, p2 bool, p3 types.TipSetKey) (DealCollateralBounds, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateDealProviderCollateralBounds == nil {
|
|
|
|
return *new(DealCollateralBounds), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateDealProviderCollateralBounds(p0, p1, p2, p3)
|
2020-03-18 23:06:53 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateDealProviderCollateralBounds(p0 context.Context, p1 abi.PaddedPieceSize, p2 bool, p3 types.TipSetKey) (DealCollateralBounds, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(DealCollateralBounds), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateDecodeParams(p0 context.Context, p1 address.Address, p2 abi.MethodNum, p3 []byte, p4 types.TipSetKey) (interface{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateDecodeParams == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateDecodeParams(p0, p1, p2, p3, p4)
|
2021-01-19 10:19:31 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateDecodeParams(p0 context.Context, p1 address.Address, p2 abi.MethodNum, p3 []byte, p4 types.TipSetKey) (interface{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-08-20 15:31:01 +00:00
|
|
|
func (s *FullNodeStruct) StateEncodeParams(p0 context.Context, p1 cid.Cid, p2 abi.MethodNum, p3 json.RawMessage) ([]byte, error) {
|
|
|
|
if s.Internal.StateEncodeParams == nil {
|
|
|
|
return *new([]byte), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateEncodeParams(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateEncodeParams(p0 context.Context, p1 cid.Cid, p2 abi.MethodNum, p3 json.RawMessage) ([]byte, error) {
|
|
|
|
return *new([]byte), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateGetActor(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*types.Actor, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateGetActor == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateGetActor(p0, p1, p2)
|
2019-10-12 06:45:48 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateGetActor(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*types.Actor, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
func (s *FullNodeStruct) StateGetAllAllocations(p0 context.Context, p1 types.TipSetKey) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error) {
|
|
|
|
if s.Internal.StateGetAllAllocations == nil {
|
|
|
|
return *new(map[verifregtypes.AllocationId]verifregtypes.Allocation), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetAllAllocations(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetAllAllocations(p0 context.Context, p1 types.TipSetKey) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error) {
|
|
|
|
return *new(map[verifregtypes.AllocationId]verifregtypes.Allocation), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStruct) StateGetAllClaims(p0 context.Context, p1 types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error) {
|
|
|
|
if s.Internal.StateGetAllClaims == nil {
|
|
|
|
return *new(map[verifregtypes.ClaimId]verifregtypes.Claim), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetAllClaims(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetAllClaims(p0 context.Context, p1 types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error) {
|
|
|
|
return *new(map[verifregtypes.ClaimId]verifregtypes.Claim), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-10-03 05:51:30 +00:00
|
|
|
func (s *FullNodeStruct) StateGetAllocation(p0 context.Context, p1 address.Address, p2 verifregtypes.AllocationId, p3 types.TipSetKey) (*verifregtypes.Allocation, error) {
|
|
|
|
if s.Internal.StateGetAllocation == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetAllocation(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetAllocation(p0 context.Context, p1 address.Address, p2 verifregtypes.AllocationId, p3 types.TipSetKey) (*verifregtypes.Allocation, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-10-05 18:43:16 +00:00
|
|
|
func (s *FullNodeStruct) StateGetAllocationForPendingDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*verifregtypes.Allocation, error) {
|
|
|
|
if s.Internal.StateGetAllocationForPendingDeal == nil {
|
2021-09-27 01:23:41 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2022-10-05 18:43:16 +00:00
|
|
|
return s.Internal.StateGetAllocationForPendingDeal(p0, p1, p2)
|
2021-09-27 01:23:41 +00:00
|
|
|
}
|
|
|
|
|
2022-10-05 18:43:16 +00:00
|
|
|
func (s *FullNodeStub) StateGetAllocationForPendingDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*verifregtypes.Allocation, error) {
|
2021-09-27 01:23:41 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
func (s *FullNodeStruct) StateGetAllocationIdForPendingDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (verifreg.AllocationId, error) {
|
|
|
|
if s.Internal.StateGetAllocationIdForPendingDeal == nil {
|
|
|
|
return *new(verifreg.AllocationId), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetAllocationIdForPendingDeal(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetAllocationIdForPendingDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (verifreg.AllocationId, error) {
|
|
|
|
return *new(verifreg.AllocationId), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-10-05 22:45:43 +00:00
|
|
|
func (s *FullNodeStruct) StateGetAllocations(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error) {
|
|
|
|
if s.Internal.StateGetAllocations == nil {
|
|
|
|
return *new(map[verifregtypes.AllocationId]verifregtypes.Allocation), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetAllocations(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetAllocations(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error) {
|
|
|
|
return *new(map[verifregtypes.AllocationId]verifregtypes.Allocation), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-09-27 01:23:41 +00:00
|
|
|
func (s *FullNodeStruct) StateGetBeaconEntry(p0 context.Context, p1 abi.ChainEpoch) (*types.BeaconEntry, error) {
|
|
|
|
if s.Internal.StateGetBeaconEntry == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetBeaconEntry(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetBeaconEntry(p0 context.Context, p1 abi.ChainEpoch) (*types.BeaconEntry, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-10-05 22:45:43 +00:00
|
|
|
func (s *FullNodeStruct) StateGetClaim(p0 context.Context, p1 address.Address, p2 verifregtypes.ClaimId, p3 types.TipSetKey) (*verifregtypes.Claim, error) {
|
|
|
|
if s.Internal.StateGetClaim == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetClaim(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetClaim(p0 context.Context, p1 address.Address, p2 verifregtypes.ClaimId, p3 types.TipSetKey) (*verifregtypes.Claim, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStruct) StateGetClaims(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error) {
|
|
|
|
if s.Internal.StateGetClaims == nil {
|
|
|
|
return *new(map[verifregtypes.ClaimId]verifregtypes.Claim), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetClaims(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetClaims(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error) {
|
|
|
|
return *new(map[verifregtypes.ClaimId]verifregtypes.Claim), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-04-24 05:48:07 +00:00
|
|
|
func (s *FullNodeStruct) StateGetNetworkParams(p0 context.Context) (*NetworkParams, error) {
|
|
|
|
if s.Internal.StateGetNetworkParams == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetNetworkParams(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetNetworkParams(p0 context.Context) (*NetworkParams, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-08-16 15:55:37 +00:00
|
|
|
func (s *FullNodeStruct) StateGetRandomnessDigestFromBeacon(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (abi.Randomness, error) {
|
|
|
|
if s.Internal.StateGetRandomnessDigestFromBeacon == nil {
|
|
|
|
return *new(abi.Randomness), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetRandomnessDigestFromBeacon(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetRandomnessDigestFromBeacon(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (abi.Randomness, error) {
|
|
|
|
return *new(abi.Randomness), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStruct) StateGetRandomnessDigestFromTickets(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (abi.Randomness, error) {
|
|
|
|
if s.Internal.StateGetRandomnessDigestFromTickets == nil {
|
|
|
|
return *new(abi.Randomness), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetRandomnessDigestFromTickets(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetRandomnessDigestFromTickets(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (abi.Randomness, error) {
|
|
|
|
return *new(abi.Randomness), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-09-12 02:24:53 +00:00
|
|
|
func (s *FullNodeStruct) StateGetRandomnessFromBeacon(p0 context.Context, p1 crypto.DomainSeparationTag, p2 abi.ChainEpoch, p3 []byte, p4 types.TipSetKey) (abi.Randomness, error) {
|
|
|
|
if s.Internal.StateGetRandomnessFromBeacon == nil {
|
|
|
|
return *new(abi.Randomness), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetRandomnessFromBeacon(p0, p1, p2, p3, p4)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetRandomnessFromBeacon(p0 context.Context, p1 crypto.DomainSeparationTag, p2 abi.ChainEpoch, p3 []byte, p4 types.TipSetKey) (abi.Randomness, error) {
|
|
|
|
return *new(abi.Randomness), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStruct) StateGetRandomnessFromTickets(p0 context.Context, p1 crypto.DomainSeparationTag, p2 abi.ChainEpoch, p3 []byte, p4 types.TipSetKey) (abi.Randomness, error) {
|
|
|
|
if s.Internal.StateGetRandomnessFromTickets == nil {
|
|
|
|
return *new(abi.Randomness), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetRandomnessFromTickets(p0, p1, p2, p3, p4)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateGetRandomnessFromTickets(p0 context.Context, p1 crypto.DomainSeparationTag, p2 abi.ChainEpoch, p3 []byte, p4 types.TipSetKey) (abi.Randomness, error) {
|
|
|
|
return *new(abi.Randomness), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateListActors(p0 context.Context, p1 types.TipSetKey) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateListActors == nil {
|
|
|
|
return *new([]address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateListActors(p0, p1)
|
2019-10-22 10:09:36 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateListActors(p0 context.Context, p1 types.TipSetKey) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateListMessages(p0 context.Context, p1 *MessageMatch, p2 types.TipSetKey, p3 abi.ChainEpoch) ([]cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateListMessages == nil {
|
|
|
|
return *new([]cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateListMessages(p0, p1, p2, p3)
|
2019-10-22 19:29:05 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateListMessages(p0 context.Context, p1 *MessageMatch, p2 types.TipSetKey, p3 abi.ChainEpoch) ([]cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateListMiners(p0 context.Context, p1 types.TipSetKey) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateListMiners == nil {
|
|
|
|
return *new([]address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateListMiners(p0, p1)
|
2019-10-22 19:29:05 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateListMiners(p0 context.Context, p1 types.TipSetKey) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateLookupID(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateLookupID == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateLookupID(p0, p1, p2)
|
2019-11-07 07:57:10 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateLookupID(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-04-14 21:30:07 +00:00
|
|
|
func (s *FullNodeStruct) StateLookupRobustAddress(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
|
|
|
if s.Internal.StateLookupRobustAddress == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateLookupRobustAddress(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateLookupRobustAddress(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateMarketBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MarketBalance, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMarketBalance == nil {
|
|
|
|
return *new(MarketBalance), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMarketBalance(p0, p1, p2)
|
2019-11-15 16:39:43 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMarketBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MarketBalance, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(MarketBalance), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-04-22 21:01:23 +00:00
|
|
|
func (s *FullNodeStruct) StateMarketDeals(p0 context.Context, p1 types.TipSetKey) (map[string]*MarketDeal, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMarketDeals == nil {
|
2022-04-22 21:01:23 +00:00
|
|
|
return *new(map[string]*MarketDeal), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMarketDeals(p0, p1)
|
2020-04-16 20:38:42 +00:00
|
|
|
}
|
|
|
|
|
2022-04-22 21:01:23 +00:00
|
|
|
func (s *FullNodeStub) StateMarketDeals(p0 context.Context, p1 types.TipSetKey) (map[string]*MarketDeal, error) {
|
|
|
|
return *new(map[string]*MarketDeal), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateMarketParticipants(p0 context.Context, p1 types.TipSetKey) (map[string]MarketBalance, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMarketParticipants == nil {
|
|
|
|
return *new(map[string]MarketBalance), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMarketParticipants(p0, p1)
|
2019-11-15 18:38:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMarketParticipants(p0 context.Context, p1 types.TipSetKey) (map[string]MarketBalance, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[string]MarketBalance), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateMarketStorageDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*MarketDeal, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMarketStorageDeal == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMarketStorageDeal(p0, p1, p2)
|
2019-11-19 21:27:25 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMarketStorageDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*MarketDeal, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerActiveSectors(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*miner.SectorOnChainInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerActiveSectors == nil {
|
|
|
|
return *new([]*miner.SectorOnChainInfo), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerActiveSectors(p0, p1, p2)
|
2020-01-07 19:03:11 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerActiveSectors(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*miner.SectorOnChainInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*miner.SectorOnChainInfo), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-08-22 18:41:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerAllocated(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*bitfield.BitField, error) {
|
|
|
|
if s.Internal.StateMinerAllocated == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateMinerAllocated(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) StateMinerAllocated(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*bitfield.BitField, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerAvailableBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerAvailableBalance == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerAvailableBalance(p0, p1, p2)
|
2020-09-29 07:01:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerAvailableBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerDeadlines(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]Deadline, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerDeadlines == nil {
|
|
|
|
return *new([]Deadline), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerDeadlines(p0, p1, p2)
|
2020-01-17 02:33:43 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerDeadlines(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]Deadline, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]Deadline), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerFaults(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (bitfield.BitField, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerFaults == nil {
|
|
|
|
return *new(bitfield.BitField), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerFaults(p0, p1, p2)
|
2020-10-01 07:14:59 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerFaults(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (bitfield.BitField, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(bitfield.BitField), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-04-20 21:34:28 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerInfo(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerInfo == nil {
|
2022-04-20 21:34:28 +00:00
|
|
|
return *new(MinerInfo), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerInfo(p0, p1, p2)
|
2020-07-02 15:57:10 +00:00
|
|
|
}
|
|
|
|
|
2022-04-20 21:34:28 +00:00
|
|
|
func (s *FullNodeStub) StateMinerInfo(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerInfo, error) {
|
|
|
|
return *new(MinerInfo), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerInitialPledgeCollateral(p0 context.Context, p1 address.Address, p2 miner.SectorPreCommitInfo, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerInitialPledgeCollateral == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerInitialPledgeCollateral(p0, p1, p2, p3)
|
2020-10-01 07:14:59 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerInitialPledgeCollateral(p0 context.Context, p1 address.Address, p2 miner.SectorPreCommitInfo, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerPartitions(p0 context.Context, p1 address.Address, p2 uint64, p3 types.TipSetKey) ([]Partition, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerPartitions == nil {
|
|
|
|
return *new([]Partition), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerPartitions(p0, p1, p2, p3)
|
2020-07-30 04:55:37 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerPartitions(p0 context.Context, p1 address.Address, p2 uint64, p3 types.TipSetKey) ([]Partition, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]Partition), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerPower(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*MinerPower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerPower == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerPower(p0, p1, p2)
|
2020-08-07 19:57:03 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerPower(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*MinerPower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerPreCommitDepositForPower(p0 context.Context, p1 address.Address, p2 miner.SectorPreCommitInfo, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerPreCommitDepositForPower == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerPreCommitDepositForPower(p0, p1, p2, p3)
|
2020-10-11 22:17:28 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerPreCommitDepositForPower(p0 context.Context, p1 address.Address, p2 miner.SectorPreCommitInfo, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerProvingDeadline(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*dline.Info, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerProvingDeadline == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerProvingDeadline(p0, p1, p2)
|
2020-09-17 01:56:02 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerProvingDeadline(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*dline.Info, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerRecoveries(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (bitfield.BitField, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerRecoveries == nil {
|
|
|
|
return *new(bitfield.BitField), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerRecoveries(p0, p1, p2)
|
2020-01-30 01:23:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerRecoveries(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (bitfield.BitField, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(bitfield.BitField), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerSectorAllocated(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerSectorAllocated == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerSectorAllocated(p0, p1, p2, p3)
|
2020-10-08 19:19:39 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerSectorAllocated(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerSectorCount(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerSectors, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerSectorCount == nil {
|
|
|
|
return *new(MinerSectors), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerSectorCount(p0, p1, p2)
|
2020-09-06 00:29:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerSectorCount(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerSectors, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(MinerSectors), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateMinerSectors(p0 context.Context, p1 address.Address, p2 *bitfield.BitField, p3 types.TipSetKey) ([]*miner.SectorOnChainInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerSectors == nil {
|
|
|
|
return *new([]*miner.SectorOnChainInfo), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerSectors(p0, p1, p2, p3)
|
2021-02-04 04:46:10 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateMinerSectors(p0 context.Context, p1 address.Address, p2 *bitfield.BitField, p3 types.TipSetKey) ([]*miner.SectorOnChainInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*miner.SectorOnChainInfo), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateNetworkName(p0 context.Context) (dtypes.NetworkName, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateNetworkName == nil {
|
|
|
|
return *new(dtypes.NetworkName), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateNetworkName(p0)
|
2020-05-04 19:29:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateNetworkName(p0 context.Context) (dtypes.NetworkName, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(dtypes.NetworkName), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateNetworkVersion(p0 context.Context, p1 types.TipSetKey) (apitypes.NetworkVersion, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateNetworkVersion == nil {
|
|
|
|
return *new(apitypes.NetworkVersion), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateNetworkVersion(p0, p1)
|
2020-05-04 19:29:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateNetworkVersion(p0 context.Context, p1 types.TipSetKey) (apitypes.NetworkVersion, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(apitypes.NetworkVersion), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateReadState(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*ActorState, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateReadState == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateReadState(p0, p1, p2)
|
2020-10-09 16:40:25 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateReadState(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*ActorState, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateReplay(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid) (*InvocResult, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateReplay == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateReplay(p0, p1, p2)
|
2020-05-04 19:29:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateReplay(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid) (*InvocResult, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-02 11:52:24 +00:00
|
|
|
func (s *FullNodeStruct) StateSearchMsg(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateSearchMsg == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-04-02 11:52:24 +00:00
|
|
|
return s.Internal.StateSearchMsg(p0, p1, p2, p3, p4)
|
2020-09-06 05:52:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateSearchMsg(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-08-29 13:16:05 +00:00
|
|
|
func (s *FullNodeStruct) StateSectorExpiration(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorExpiration, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateSectorExpiration == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateSectorExpiration(p0, p1, p2, p3)
|
2020-09-06 05:52:30 +00:00
|
|
|
}
|
|
|
|
|
2023-08-29 13:16:05 +00:00
|
|
|
func (s *FullNodeStub) StateSectorExpiration(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorExpiration, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateSectorGetInfo(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorOnChainInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateSectorGetInfo == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateSectorGetInfo(p0, p1, p2, p3)
|
2020-09-06 05:52:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateSectorGetInfo(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorOnChainInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-08-29 13:16:05 +00:00
|
|
|
func (s *FullNodeStruct) StateSectorPartition(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorLocation, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateSectorPartition == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateSectorPartition(p0, p1, p2, p3)
|
2020-07-16 00:55:27 +00:00
|
|
|
}
|
|
|
|
|
2023-08-29 13:16:05 +00:00
|
|
|
func (s *FullNodeStub) StateSectorPartition(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorLocation, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-16 12:19:53 +00:00
|
|
|
func (s *FullNodeStruct) StateSectorPreCommitInfo(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorPreCommitOnChainInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateSectorPreCommitInfo == nil {
|
2022-06-16 12:19:53 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateSectorPreCommitInfo(p0, p1, p2, p3)
|
2020-07-16 00:55:27 +00:00
|
|
|
}
|
|
|
|
|
2022-06-16 12:19:53 +00:00
|
|
|
func (s *FullNodeStub) StateSectorPreCommitInfo(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorPreCommitOnChainInfo, error) {
|
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) StateVMCirculatingSupplyInternal(p0 context.Context, p1 types.TipSetKey) (CirculatingSupply, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateVMCirculatingSupplyInternal == nil {
|
|
|
|
return *new(CirculatingSupply), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateVMCirculatingSupplyInternal(p0, p1)
|
2020-07-16 00:55:27 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateVMCirculatingSupplyInternal(p0 context.Context, p1 types.TipSetKey) (CirculatingSupply, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(CirculatingSupply), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateVerifiedClientStatus(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateVerifiedClientStatus == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateVerifiedClientStatus(p0, p1, p2)
|
2020-10-09 16:40:25 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateVerifiedClientStatus(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateVerifiedRegistryRootKey(p0 context.Context, p1 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateVerifiedRegistryRootKey == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateVerifiedRegistryRootKey(p0, p1)
|
2021-01-06 13:27:28 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateVerifiedRegistryRootKey(p0 context.Context, p1 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) StateVerifierStatus(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateVerifierStatus == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateVerifierStatus(p0, p1, p2)
|
2021-01-07 08:35:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateVerifierStatus(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-02 11:52:24 +00:00
|
|
|
func (s *FullNodeStruct) StateWaitMsg(p0 context.Context, p1 cid.Cid, p2 uint64, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateWaitMsg == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-04-02 11:52:24 +00:00
|
|
|
return s.Internal.StateWaitMsg(p0, p1, p2, p3, p4)
|
2019-11-08 17:15:38 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) StateWaitMsg(p0 context.Context, p1 cid.Cid, p2 uint64, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
func (s *FullNodeStruct) SubscribeActorEventsRaw(p0 context.Context, p1 *types.ActorEventFilter) (<-chan *types.ActorEvent, error) {
|
|
|
|
if s.Internal.SubscribeActorEventsRaw == nil {
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2024-03-19 00:37:46 +00:00
|
|
|
return s.Internal.SubscribeActorEventsRaw(p0, p1)
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
func (s *FullNodeStub) SubscribeActorEventsRaw(p0 context.Context, p1 *types.ActorEventFilter) (<-chan *types.ActorEvent, error) {
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) SyncCheckBad(p0 context.Context, p1 cid.Cid) (string, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SyncCheckBad == nil {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SyncCheckBad(p0, p1)
|
2020-12-03 20:47:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) SyncCheckBad(p0 context.Context, p1 cid.Cid) (string, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return "", ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) SyncCheckpoint(p0 context.Context, p1 types.TipSetKey) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SyncCheckpoint == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SyncCheckpoint(p0, p1)
|
2020-07-28 23:16:47 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) SyncCheckpoint(p0 context.Context, p1 types.TipSetKey) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) SyncIncomingBlocks(p0 context.Context) (<-chan *types.BlockHeader, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SyncIncomingBlocks == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SyncIncomingBlocks(p0)
|
2019-08-09 21:41:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) SyncIncomingBlocks(p0 context.Context) (<-chan *types.BlockHeader, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) SyncMarkBad(p0 context.Context, p1 cid.Cid) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SyncMarkBad == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SyncMarkBad(p0, p1)
|
2020-09-04 11:44:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) SyncMarkBad(p0 context.Context, p1 cid.Cid) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *FullNodeStruct) SyncState(p0 context.Context) (*SyncState, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SyncState == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SyncState(p0)
|
2020-09-01 14:33:44 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) SyncState(p0 context.Context) (*SyncState, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) SyncSubmitBlock(p0 context.Context, p1 *types.BlockMsg) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SyncSubmitBlock == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SyncSubmitBlock(p0, p1)
|
2019-08-09 21:41:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) SyncSubmitBlock(p0 context.Context, p1 *types.BlockMsg) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) SyncUnmarkAllBad(p0 context.Context) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SyncUnmarkAllBad == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SyncUnmarkAllBad(p0)
|
2019-08-09 21:41:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) SyncUnmarkAllBad(p0 context.Context) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) SyncUnmarkBad(p0 context.Context, p1 cid.Cid) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SyncUnmarkBad == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SyncUnmarkBad(p0, p1)
|
2019-08-09 21:41:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) SyncUnmarkBad(p0 context.Context, p1 cid.Cid) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) SyncValidateTipset(p0 context.Context, p1 types.TipSetKey) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SyncValidateTipset == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SyncValidateTipset(p0, p1)
|
2019-08-12 17:09:56 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) SyncValidateTipset(p0 context.Context, p1 types.TipSetKey) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletBalance(p0 context.Context, p1 address.Address) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletBalance == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletBalance(p0, p1)
|
2019-08-09 21:41:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletBalance(p0 context.Context, p1 address.Address) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletDefaultAddress(p0 context.Context) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletDefaultAddress == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletDefaultAddress(p0)
|
2019-08-09 21:41:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletDefaultAddress(p0 context.Context) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletDelete(p0 context.Context, p1 address.Address) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletDelete == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletDelete(p0, p1)
|
2019-08-09 21:41:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletDelete(p0 context.Context, p1 address.Address) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletExport(p0 context.Context, p1 address.Address) (*types.KeyInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletExport == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletExport(p0, p1)
|
2020-07-18 03:07:02 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletExport(p0 context.Context, p1 address.Address) (*types.KeyInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletHas(p0 context.Context, p1 address.Address) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletHas == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletHas(p0, p1)
|
2019-08-09 21:41:50 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletHas(p0 context.Context, p1 address.Address) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletImport(p0 context.Context, p1 *types.KeyInfo) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletImport == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletImport(p0, p1)
|
2019-09-16 13:46:05 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletImport(p0 context.Context, p1 *types.KeyInfo) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletList(p0 context.Context) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletList == nil {
|
|
|
|
return *new([]address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletList(p0)
|
2019-09-24 21:13:47 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletList(p0 context.Context) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletNew(p0 context.Context, p1 types.KeyType) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletNew == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletNew(p0, p1)
|
2019-08-13 04:27:54 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletNew(p0 context.Context, p1 types.KeyType) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletSetDefault(p0 context.Context, p1 address.Address) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletSetDefault == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletSetDefault(p0, p1)
|
2020-10-01 15:14:08 +00:00
|
|
|
}
|
2019-08-13 04:27:54 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletSetDefault(p0 context.Context, p1 address.Address) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletSign(p0 context.Context, p1 address.Address, p2 []byte) (*crypto.Signature, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletSign == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletSign(p0, p1, p2)
|
|
|
|
}
|
2020-05-04 19:29:26 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletSign(p0 context.Context, p1 address.Address, p2 []byte) (*crypto.Signature, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletSignMessage(p0 context.Context, p1 address.Address, p2 *types.Message) (*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletSignMessage == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletSignMessage(p0, p1, p2)
|
2019-08-10 01:54:45 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletSignMessage(p0 context.Context, p1 address.Address, p2 *types.Message) (*types.SignedMessage, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletValidateAddress(p0 context.Context, p1 string) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletValidateAddress == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletValidateAddress(p0, p1)
|
2020-04-23 21:12:42 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletValidateAddress(p0 context.Context, p1 string) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *FullNodeStruct) WalletVerify(p0 context.Context, p1 address.Address, p2 []byte, p3 *crypto.Signature) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletVerify == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletVerify(p0, p1, p2, p3)
|
2019-11-21 14:10:51 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *FullNodeStub) WalletVerify(p0 context.Context, p1 address.Address, p2 []byte, p3 *crypto.Signature) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-01-25 03:56:04 +00:00
|
|
|
func (s *FullNodeStruct) Web3ClientVersion(p0 context.Context) (string, error) {
|
|
|
|
if s.Internal.Web3ClientVersion == nil {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.Web3ClientVersion(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *FullNodeStub) Web3ClientVersion(p0 context.Context) (string, error) {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-03-24 18:39:15 +00:00
|
|
|
func (s *GatewayStruct) ChainGetBlock(p0 context.Context, p1 cid.Cid) (*types.BlockHeader, error) {
|
|
|
|
if s.Internal.ChainGetBlock == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainGetBlock(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) ChainGetBlock(p0 context.Context, p1 cid.Cid) (*types.BlockHeader, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *GatewayStruct) ChainGetBlockMessages(p0 context.Context, p1 cid.Cid) (*BlockMessages, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetBlockMessages == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetBlockMessages(p0, p1)
|
2020-12-02 19:46:07 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) ChainGetBlockMessages(p0 context.Context, p1 cid.Cid) (*BlockMessages, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2024-03-15 14:27:21 +00:00
|
|
|
func (s *GatewayStruct) ChainGetEvents(p0 context.Context, p1 cid.Cid) ([]types.Event, error) {
|
|
|
|
if s.Internal.ChainGetEvents == nil {
|
|
|
|
return *new([]types.Event), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainGetEvents(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) ChainGetEvents(p0 context.Context, p1 cid.Cid) ([]types.Event, error) {
|
|
|
|
return *new([]types.Event), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-11-18 21:55:33 +00:00
|
|
|
func (s *GatewayStruct) ChainGetGenesis(p0 context.Context) (*types.TipSet, error) {
|
|
|
|
if s.Internal.ChainGetGenesis == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainGetGenesis(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) ChainGetGenesis(p0 context.Context) (*types.TipSet, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) ChainGetMessage(p0 context.Context, p1 cid.Cid) (*types.Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetMessage == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetMessage(p0, p1)
|
2019-07-27 01:54:03 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) ChainGetMessage(p0 context.Context, p1 cid.Cid) (*types.Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-11-18 21:55:33 +00:00
|
|
|
func (s *GatewayStruct) ChainGetParentMessages(p0 context.Context, p1 cid.Cid) ([]Message, error) {
|
|
|
|
if s.Internal.ChainGetParentMessages == nil {
|
|
|
|
return *new([]Message), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainGetParentMessages(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) ChainGetParentMessages(p0 context.Context, p1 cid.Cid) ([]Message, error) {
|
|
|
|
return *new([]Message), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) ChainGetParentReceipts(p0 context.Context, p1 cid.Cid) ([]*types.MessageReceipt, error) {
|
|
|
|
if s.Internal.ChainGetParentReceipts == nil {
|
|
|
|
return *new([]*types.MessageReceipt), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainGetParentReceipts(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) ChainGetParentReceipts(p0 context.Context, p1 cid.Cid) ([]*types.MessageReceipt, error) {
|
|
|
|
return *new([]*types.MessageReceipt), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-08-27 19:25:43 +00:00
|
|
|
func (s *GatewayStruct) ChainGetPath(p0 context.Context, p1 types.TipSetKey, p2 types.TipSetKey) ([]*HeadChange, error) {
|
|
|
|
if s.Internal.ChainGetPath == nil {
|
|
|
|
return *new([]*HeadChange), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainGetPath(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) ChainGetPath(p0 context.Context, p1 types.TipSetKey, p2 types.TipSetKey) ([]*HeadChange, error) {
|
|
|
|
return *new([]*HeadChange), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) ChainGetTipSet(p0 context.Context, p1 types.TipSetKey) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetTipSet == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetTipSet(p0, p1)
|
2019-07-27 21:08:10 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) ChainGetTipSet(p0 context.Context, p1 types.TipSetKey) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-08-05 17:53:12 +00:00
|
|
|
func (s *GatewayStruct) ChainGetTipSetAfterHeight(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) {
|
|
|
|
if s.Internal.ChainGetTipSetAfterHeight == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainGetTipSetAfterHeight(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) ChainGetTipSetAfterHeight(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) ChainGetTipSetByHeight(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainGetTipSetByHeight == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainGetTipSetByHeight(p0, p1, p2)
|
2019-07-27 21:08:10 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) ChainGetTipSetByHeight(p0 context.Context, p1 abi.ChainEpoch, p2 types.TipSetKey) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) ChainHasObj(p0 context.Context, p1 cid.Cid) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainHasObj == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainHasObj(p0, p1)
|
2020-12-06 00:51:48 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) ChainHasObj(p0 context.Context, p1 cid.Cid) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) ChainHead(p0 context.Context) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainHead == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainHead(p0)
|
2020-12-06 00:51:48 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) ChainHead(p0 context.Context) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *GatewayStruct) ChainNotify(p0 context.Context) (<-chan []*HeadChange, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainNotify == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainNotify(p0)
|
2019-08-26 10:04:57 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) ChainNotify(p0 context.Context) (<-chan []*HeadChange, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-07 03:14:16 +00:00
|
|
|
func (s *GatewayStruct) ChainPutObj(p0 context.Context, p1 blocks.Block) error {
|
|
|
|
if s.Internal.ChainPutObj == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ChainPutObj(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) ChainPutObj(p0 context.Context, p1 blocks.Block) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) ChainReadObj(p0 context.Context, p1 cid.Cid) ([]byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ChainReadObj == nil {
|
|
|
|
return *new([]byte), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ChainReadObj(p0, p1)
|
2020-06-26 15:28:05 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) ChainReadObj(p0 context.Context, p1 cid.Cid) ([]byte, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]byte), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-05-27 11:35:23 +00:00
|
|
|
func (s *GatewayStruct) Discover(p0 context.Context) (apitypes.OpenRPCDocument, error) {
|
|
|
|
if s.Internal.Discover == nil {
|
|
|
|
return *new(apitypes.OpenRPCDocument), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.Discover(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) Discover(p0 context.Context) (apitypes.OpenRPCDocument, error) {
|
|
|
|
return *new(apitypes.OpenRPCDocument), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-13 17:14:03 +00:00
|
|
|
func (s *GatewayStruct) EthAccounts(p0 context.Context) ([]ethtypes.EthAddress, error) {
|
|
|
|
if s.Internal.EthAccounts == nil {
|
|
|
|
return *new([]ethtypes.EthAddress), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthAccounts(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthAccounts(p0 context.Context) ([]ethtypes.EthAddress, error) {
|
|
|
|
return *new([]ethtypes.EthAddress), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2024-05-08 13:35:00 +00:00
|
|
|
func (s *GatewayStruct) EthAddressToFilecoinAddress(p0 context.Context, p1 ethtypes.EthAddress) (address.Address, error) {
|
|
|
|
if s.Internal.EthAddressToFilecoinAddress == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthAddressToFilecoinAddress(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthAddressToFilecoinAddress(p0 context.Context, p1 ethtypes.EthAddress) (address.Address, error) {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-13 17:14:03 +00:00
|
|
|
func (s *GatewayStruct) EthBlockNumber(p0 context.Context) (ethtypes.EthUint64, error) {
|
|
|
|
if s.Internal.EthBlockNumber == nil {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthBlockNumber(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthBlockNumber(p0 context.Context) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStruct) EthCall(p0 context.Context, p1 ethtypes.EthCall, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
if s.Internal.EthCall == nil {
|
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthCall(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStub) EthCall(p0 context.Context, p1 ethtypes.EthCall, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthChainId(p0 context.Context) (ethtypes.EthUint64, error) {
|
|
|
|
if s.Internal.EthChainId == nil {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthChainId(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthChainId(p0 context.Context) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-11-29 10:17:10 +00:00
|
|
|
func (s *GatewayStruct) EthEstimateGas(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthUint64, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
if s.Internal.EthEstimateGas == nil {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
2023-11-29 10:17:10 +00:00
|
|
|
return s.Internal.EthEstimateGas(p0, p1)
|
2022-12-13 17:14:03 +00:00
|
|
|
}
|
|
|
|
|
2023-11-29 10:17:10 +00:00
|
|
|
func (s *GatewayStub) EthEstimateGas(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthUint64, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-02-10 18:33:59 +00:00
|
|
|
func (s *GatewayStruct) EthFeeHistory(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthFeeHistory, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
if s.Internal.EthFeeHistory == nil {
|
|
|
|
return *new(ethtypes.EthFeeHistory), ErrNotSupported
|
|
|
|
}
|
2023-02-10 18:33:59 +00:00
|
|
|
return s.Internal.EthFeeHistory(p0, p1)
|
2022-12-13 17:14:03 +00:00
|
|
|
}
|
|
|
|
|
2023-02-10 18:33:59 +00:00
|
|
|
func (s *GatewayStub) EthFeeHistory(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthFeeHistory, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
return *new(ethtypes.EthFeeHistory), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthGasPrice(p0 context.Context) (ethtypes.EthBigInt, error) {
|
|
|
|
if s.Internal.EthGasPrice == nil {
|
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGasPrice(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGasPrice(p0 context.Context) (ethtypes.EthBigInt, error) {
|
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStruct) EthGetBalance(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBigInt, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
if s.Internal.EthGetBalance == nil {
|
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetBalance(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStub) EthGetBalance(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBigInt, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthGetBlockByHash(p0 context.Context, p1 ethtypes.EthHash, p2 bool) (ethtypes.EthBlock, error) {
|
|
|
|
if s.Internal.EthGetBlockByHash == nil {
|
|
|
|
return *new(ethtypes.EthBlock), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetBlockByHash(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetBlockByHash(p0 context.Context, p1 ethtypes.EthHash, p2 bool) (ethtypes.EthBlock, error) {
|
|
|
|
return *new(ethtypes.EthBlock), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthGetBlockByNumber(p0 context.Context, p1 string, p2 bool) (ethtypes.EthBlock, error) {
|
|
|
|
if s.Internal.EthGetBlockByNumber == nil {
|
|
|
|
return *new(ethtypes.EthBlock), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetBlockByNumber(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetBlockByNumber(p0 context.Context, p1 string, p2 bool) (ethtypes.EthBlock, error) {
|
|
|
|
return *new(ethtypes.EthBlock), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthGetBlockTransactionCountByHash(p0 context.Context, p1 ethtypes.EthHash) (ethtypes.EthUint64, error) {
|
|
|
|
if s.Internal.EthGetBlockTransactionCountByHash == nil {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetBlockTransactionCountByHash(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetBlockTransactionCountByHash(p0 context.Context, p1 ethtypes.EthHash) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthGetBlockTransactionCountByNumber(p0 context.Context, p1 ethtypes.EthUint64) (ethtypes.EthUint64, error) {
|
|
|
|
if s.Internal.EthGetBlockTransactionCountByNumber == nil {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetBlockTransactionCountByNumber(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetBlockTransactionCountByNumber(p0 context.Context, p1 ethtypes.EthUint64) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStruct) EthGetCode(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
if s.Internal.EthGetCode == nil {
|
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetCode(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStub) EthGetCode(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthGetFilterChanges(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) {
|
|
|
|
if s.Internal.EthGetFilterChanges == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetFilterChanges(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetFilterChanges(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthGetFilterLogs(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) {
|
|
|
|
if s.Internal.EthGetFilterLogs == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetFilterLogs(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetFilterLogs(p0 context.Context, p1 ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthGetLogs(p0 context.Context, p1 *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error) {
|
|
|
|
if s.Internal.EthGetLogs == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetLogs(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetLogs(p0 context.Context, p1 *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-02-02 12:25:50 +00:00
|
|
|
func (s *GatewayStruct) EthGetMessageCidByTransactionHash(p0 context.Context, p1 *ethtypes.EthHash) (*cid.Cid, error) {
|
|
|
|
if s.Internal.EthGetMessageCidByTransactionHash == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetMessageCidByTransactionHash(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetMessageCidByTransactionHash(p0 context.Context, p1 *ethtypes.EthHash) (*cid.Cid, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStruct) EthGetStorageAt(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBytes, p3 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
if s.Internal.EthGetStorageAt == nil {
|
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetStorageAt(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStub) EthGetStorageAt(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBytes, p3 ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
return *new(ethtypes.EthBytes), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthGetTransactionByHash(p0 context.Context, p1 *ethtypes.EthHash) (*ethtypes.EthTx, error) {
|
|
|
|
if s.Internal.EthGetTransactionByHash == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionByHash(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetTransactionByHash(p0 context.Context, p1 *ethtypes.EthHash) (*ethtypes.EthTx, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-03-14 15:45:56 +00:00
|
|
|
func (s *GatewayStruct) EthGetTransactionByHashLimited(p0 context.Context, p1 *ethtypes.EthHash, p2 abi.ChainEpoch) (*ethtypes.EthTx, error) {
|
|
|
|
if s.Internal.EthGetTransactionByHashLimited == nil {
|
2022-12-13 17:14:03 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2023-03-14 15:45:56 +00:00
|
|
|
return s.Internal.EthGetTransactionByHashLimited(p0, p1, p2)
|
2022-12-13 17:14:03 +00:00
|
|
|
}
|
|
|
|
|
2023-03-14 15:45:56 +00:00
|
|
|
func (s *GatewayStub) EthGetTransactionByHashLimited(p0 context.Context, p1 *ethtypes.EthHash, p2 abi.ChainEpoch) (*ethtypes.EthTx, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStruct) EthGetTransactionCount(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthUint64, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
if s.Internal.EthGetTransactionCount == nil {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionCount(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2023-06-21 17:36:04 +00:00
|
|
|
func (s *GatewayStub) EthGetTransactionCount(p0 context.Context, p1 ethtypes.EthAddress, p2 ethtypes.EthBlockNumberOrHash) (ethtypes.EthUint64, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-02-02 12:25:50 +00:00
|
|
|
func (s *GatewayStruct) EthGetTransactionHashByCid(p0 context.Context, p1 cid.Cid) (*ethtypes.EthHash, error) {
|
|
|
|
if s.Internal.EthGetTransactionHashByCid == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionHashByCid(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetTransactionHashByCid(p0 context.Context, p1 cid.Cid) (*ethtypes.EthHash, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-13 17:14:03 +00:00
|
|
|
func (s *GatewayStruct) EthGetTransactionReceipt(p0 context.Context, p1 ethtypes.EthHash) (*EthTxReceipt, error) {
|
|
|
|
if s.Internal.EthGetTransactionReceipt == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionReceipt(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetTransactionReceipt(p0 context.Context, p1 ethtypes.EthHash) (*EthTxReceipt, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-03-14 15:45:56 +00:00
|
|
|
func (s *GatewayStruct) EthGetTransactionReceiptLimited(p0 context.Context, p1 ethtypes.EthHash, p2 abi.ChainEpoch) (*EthTxReceipt, error) {
|
|
|
|
if s.Internal.EthGetTransactionReceiptLimited == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthGetTransactionReceiptLimited(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthGetTransactionReceiptLimited(p0 context.Context, p1 ethtypes.EthHash, p2 abi.ChainEpoch) (*EthTxReceipt, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-13 17:14:03 +00:00
|
|
|
func (s *GatewayStruct) EthMaxPriorityFeePerGas(p0 context.Context) (ethtypes.EthBigInt, error) {
|
|
|
|
if s.Internal.EthMaxPriorityFeePerGas == nil {
|
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthMaxPriorityFeePerGas(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthMaxPriorityFeePerGas(p0 context.Context) (ethtypes.EthBigInt, error) {
|
|
|
|
return *new(ethtypes.EthBigInt), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthNewBlockFilter(p0 context.Context) (ethtypes.EthFilterID, error) {
|
|
|
|
if s.Internal.EthNewBlockFilter == nil {
|
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthNewBlockFilter(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthNewBlockFilter(p0 context.Context) (ethtypes.EthFilterID, error) {
|
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthNewFilter(p0 context.Context, p1 *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error) {
|
|
|
|
if s.Internal.EthNewFilter == nil {
|
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthNewFilter(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthNewFilter(p0 context.Context, p1 *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error) {
|
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthNewPendingTransactionFilter(p0 context.Context) (ethtypes.EthFilterID, error) {
|
|
|
|
if s.Internal.EthNewPendingTransactionFilter == nil {
|
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthNewPendingTransactionFilter(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthNewPendingTransactionFilter(p0 context.Context) (ethtypes.EthFilterID, error) {
|
|
|
|
return *new(ethtypes.EthFilterID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthProtocolVersion(p0 context.Context) (ethtypes.EthUint64, error) {
|
|
|
|
if s.Internal.EthProtocolVersion == nil {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthProtocolVersion(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthProtocolVersion(p0 context.Context) (ethtypes.EthUint64, error) {
|
|
|
|
return *new(ethtypes.EthUint64), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthSendRawTransaction(p0 context.Context, p1 ethtypes.EthBytes) (ethtypes.EthHash, error) {
|
|
|
|
if s.Internal.EthSendRawTransaction == nil {
|
|
|
|
return *new(ethtypes.EthHash), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthSendRawTransaction(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthSendRawTransaction(p0 context.Context, p1 ethtypes.EthBytes) (ethtypes.EthHash, error) {
|
|
|
|
return *new(ethtypes.EthHash), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-01-31 10:00:15 +00:00
|
|
|
func (s *GatewayStruct) EthSubscribe(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error) {
|
2022-12-13 17:14:03 +00:00
|
|
|
if s.Internal.EthSubscribe == nil {
|
2023-01-16 14:28:55 +00:00
|
|
|
return *new(ethtypes.EthSubscriptionID), ErrNotSupported
|
2022-12-13 17:14:03 +00:00
|
|
|
}
|
2023-01-31 10:00:15 +00:00
|
|
|
return s.Internal.EthSubscribe(p0, p1)
|
2022-12-13 17:14:03 +00:00
|
|
|
}
|
|
|
|
|
2023-01-31 10:00:15 +00:00
|
|
|
func (s *GatewayStub) EthSubscribe(p0 context.Context, p1 jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error) {
|
2023-01-16 14:28:55 +00:00
|
|
|
return *new(ethtypes.EthSubscriptionID), ErrNotSupported
|
2022-12-13 17:14:03 +00:00
|
|
|
}
|
|
|
|
|
2023-04-21 12:02:40 +00:00
|
|
|
func (s *GatewayStruct) EthSyncing(p0 context.Context) (ethtypes.EthSyncingResult, error) {
|
|
|
|
if s.Internal.EthSyncing == nil {
|
|
|
|
return *new(ethtypes.EthSyncingResult), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthSyncing(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthSyncing(p0 context.Context) (ethtypes.EthSyncingResult, error) {
|
|
|
|
return *new(ethtypes.EthSyncingResult), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-08-22 16:15:14 +00:00
|
|
|
func (s *GatewayStruct) EthTraceBlock(p0 context.Context, p1 string) ([]*ethtypes.EthTraceBlock, error) {
|
|
|
|
if s.Internal.EthTraceBlock == nil {
|
|
|
|
return *new([]*ethtypes.EthTraceBlock), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthTraceBlock(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthTraceBlock(p0 context.Context, p1 string) ([]*ethtypes.EthTraceBlock, error) {
|
|
|
|
return *new([]*ethtypes.EthTraceBlock), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthTraceReplayBlockTransactions(p0 context.Context, p1 string, p2 []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error) {
|
|
|
|
if s.Internal.EthTraceReplayBlockTransactions == nil {
|
|
|
|
return *new([]*ethtypes.EthTraceReplayBlockTransaction), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthTraceReplayBlockTransactions(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthTraceReplayBlockTransactions(p0 context.Context, p1 string, p2 []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error) {
|
|
|
|
return *new([]*ethtypes.EthTraceReplayBlockTransaction), ErrNotSupported
|
2024-06-07 18:14:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthTraceTransaction(p0 context.Context, p1 string) ([]*ethtypes.EthTraceTransaction, error) {
|
|
|
|
if s.Internal.EthTraceTransaction == nil {
|
|
|
|
return *new([]*ethtypes.EthTraceTransaction), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthTraceTransaction(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthTraceTransaction(p0 context.Context, p1 string) ([]*ethtypes.EthTraceTransaction, error) {
|
|
|
|
return *new([]*ethtypes.EthTraceTransaction), ErrNotSupported
|
2023-08-22 16:15:14 +00:00
|
|
|
}
|
|
|
|
|
2022-12-13 17:14:03 +00:00
|
|
|
func (s *GatewayStruct) EthUninstallFilter(p0 context.Context, p1 ethtypes.EthFilterID) (bool, error) {
|
|
|
|
if s.Internal.EthUninstallFilter == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthUninstallFilter(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthUninstallFilter(p0 context.Context, p1 ethtypes.EthFilterID) (bool, error) {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) EthUnsubscribe(p0 context.Context, p1 ethtypes.EthSubscriptionID) (bool, error) {
|
|
|
|
if s.Internal.EthUnsubscribe == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.EthUnsubscribe(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) EthUnsubscribe(p0 context.Context, p1 ethtypes.EthSubscriptionID) (bool, error) {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2024-05-08 13:35:00 +00:00
|
|
|
func (s *GatewayStruct) FilecoinAddressToEthAddress(p0 context.Context, p1 address.Address) (ethtypes.EthAddress, error) {
|
|
|
|
if s.Internal.FilecoinAddressToEthAddress == nil {
|
|
|
|
return *new(ethtypes.EthAddress), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.FilecoinAddressToEthAddress(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) FilecoinAddressToEthAddress(p0 context.Context, p1 address.Address) (ethtypes.EthAddress, error) {
|
|
|
|
return *new(ethtypes.EthAddress), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-03-11 07:27:42 +00:00
|
|
|
func (s *GatewayStruct) GasEstimateGasPremium(p0 context.Context, p1 uint64, p2 address.Address, p3 int64, p4 types.TipSetKey) (types.BigInt, error) {
|
|
|
|
if s.Internal.GasEstimateGasPremium == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.GasEstimateGasPremium(p0, p1, p2, p3, p4)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) GasEstimateGasPremium(p0 context.Context, p1 uint64, p2 address.Address, p3 int64, p4 types.TipSetKey) (types.BigInt, error) {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *GatewayStruct) GasEstimateMessageGas(p0 context.Context, p1 *types.Message, p2 *MessageSendSpec, p3 types.TipSetKey) (*types.Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.GasEstimateMessageGas == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.GasEstimateMessageGas(p0, p1, p2, p3)
|
2020-07-06 18:39:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) GasEstimateMessageGas(p0 context.Context, p1 *types.Message, p2 *MessageSendSpec, p3 types.TipSetKey) (*types.Message, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
func (s *GatewayStruct) GetActorEventsRaw(p0 context.Context, p1 *types.ActorEventFilter) ([]*types.ActorEvent, error) {
|
|
|
|
if s.Internal.GetActorEventsRaw == nil {
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
return *new([]*types.ActorEvent), ErrNotSupported
|
|
|
|
}
|
2024-03-19 00:37:46 +00:00
|
|
|
return s.Internal.GetActorEventsRaw(p0, p1)
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
func (s *GatewayStub) GetActorEventsRaw(p0 context.Context, p1 *types.ActorEventFilter) ([]*types.ActorEvent, error) {
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
return *new([]*types.ActorEvent), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-03-24 18:39:15 +00:00
|
|
|
func (s *GatewayStruct) MinerGetBaseInfo(p0 context.Context, p1 address.Address, p2 abi.ChainEpoch, p3 types.TipSetKey) (*MiningBaseInfo, error) {
|
|
|
|
if s.Internal.MinerGetBaseInfo == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.MinerGetBaseInfo(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) MinerGetBaseInfo(p0 context.Context, p1 address.Address, p2 abi.ChainEpoch, p3 types.TipSetKey) (*MiningBaseInfo, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-03-07 20:19:20 +00:00
|
|
|
func (s *GatewayStruct) MpoolGetNonce(p0 context.Context, p1 address.Address) (uint64, error) {
|
|
|
|
if s.Internal.MpoolGetNonce == nil {
|
|
|
|
return 0, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.MpoolGetNonce(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) MpoolGetNonce(p0 context.Context, p1 address.Address) (uint64, error) {
|
|
|
|
return 0, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-03-24 18:39:15 +00:00
|
|
|
func (s *GatewayStruct) MpoolPending(p0 context.Context, p1 types.TipSetKey) ([]*types.SignedMessage, error) {
|
|
|
|
if s.Internal.MpoolPending == nil {
|
|
|
|
return *new([]*types.SignedMessage), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.MpoolPending(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) MpoolPending(p0 context.Context, p1 types.TipSetKey) ([]*types.SignedMessage, error) {
|
|
|
|
return *new([]*types.SignedMessage), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) MpoolPush(p0 context.Context, p1 *types.SignedMessage) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MpoolPush == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MpoolPush(p0, p1)
|
2020-07-06 18:39:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) MpoolPush(p0 context.Context, p1 *types.SignedMessage) (cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(cid.Cid), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) MsigGetAvailableBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigGetAvailableBalance == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigGetAvailableBalance(p0, p1, p2)
|
2020-07-12 17:54:53 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) MsigGetAvailableBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *GatewayStruct) MsigGetPending(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*MsigTransaction, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigGetPending == nil {
|
|
|
|
return *new([]*MsigTransaction), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigGetPending(p0, p1, p2)
|
2020-07-12 17:54:53 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) MsigGetPending(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*MsigTransaction, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]*MsigTransaction), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) MsigGetVested(p0 context.Context, p1 address.Address, p2 types.TipSetKey, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MsigGetVested == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MsigGetVested(p0, p1, p2, p3)
|
2019-12-05 04:43:54 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) MsigGetVested(p0 context.Context, p1 address.Address, p2 types.TipSetKey, p3 types.TipSetKey) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-02-16 07:30:07 +00:00
|
|
|
func (s *GatewayStruct) MsigGetVestingSchedule(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MsigVesting, error) {
|
|
|
|
if s.Internal.MsigGetVestingSchedule == nil {
|
|
|
|
return *new(MsigVesting), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.MsigGetVestingSchedule(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) MsigGetVestingSchedule(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MsigVesting, error) {
|
|
|
|
return *new(MsigVesting), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-12-13 17:14:03 +00:00
|
|
|
func (s *GatewayStruct) NetListening(p0 context.Context) (bool, error) {
|
|
|
|
if s.Internal.NetListening == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetListening(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) NetListening(p0 context.Context) (bool, error) {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) NetVersion(p0 context.Context) (string, error) {
|
|
|
|
if s.Internal.NetVersion == nil {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetVersion(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) NetVersion(p0 context.Context) (string, error) {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) StateAccountKey(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateAccountKey == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateAccountKey(p0, p1, p2)
|
2020-06-22 17:35:14 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateAccountKey(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-03-08 01:15:52 +00:00
|
|
|
func (s *GatewayStruct) StateCall(p0 context.Context, p1 *types.Message, p2 types.TipSetKey) (*InvocResult, error) {
|
|
|
|
if s.Internal.StateCall == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateCall(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateCall(p0 context.Context, p1 *types.Message, p2 types.TipSetKey) (*InvocResult, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *GatewayStruct) StateDealProviderCollateralBounds(p0 context.Context, p1 abi.PaddedPieceSize, p2 bool, p3 types.TipSetKey) (DealCollateralBounds, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateDealProviderCollateralBounds == nil {
|
|
|
|
return *new(DealCollateralBounds), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateDealProviderCollateralBounds(p0, p1, p2, p3)
|
2021-01-12 23:42:01 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateDealProviderCollateralBounds(p0 context.Context, p1 abi.PaddedPieceSize, p2 bool, p3 types.TipSetKey) (DealCollateralBounds, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(DealCollateralBounds), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-03-08 01:15:52 +00:00
|
|
|
func (s *GatewayStruct) StateDecodeParams(p0 context.Context, p1 address.Address, p2 abi.MethodNum, p3 []byte, p4 types.TipSetKey) (interface{}, error) {
|
2023-03-08 16:53:19 +00:00
|
|
|
if s.Internal.StateDecodeParams == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateDecodeParams(p0, p1, p2, p3, p4)
|
2023-03-08 01:15:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateDecodeParams(p0 context.Context, p1 address.Address, p2 abi.MethodNum, p3 []byte, p4 types.TipSetKey) (interface{}, error) {
|
2023-03-08 16:53:19 +00:00
|
|
|
return nil, ErrNotSupported
|
2023-03-08 01:15:52 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) StateGetActor(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*types.Actor, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateGetActor == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateGetActor(p0, p1, p2)
|
2021-01-13 22:32:04 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateGetActor(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*types.Actor, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-08-18 07:28:01 +00:00
|
|
|
func (s *GatewayStruct) StateGetAllocation(p0 context.Context, p1 address.Address, p2 verifregtypes.AllocationId, p3 types.TipSetKey) (*verifregtypes.Allocation, error) {
|
|
|
|
if s.Internal.StateGetAllocation == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetAllocation(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateGetAllocation(p0 context.Context, p1 address.Address, p2 verifregtypes.AllocationId, p3 types.TipSetKey) (*verifregtypes.Allocation, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) StateGetAllocationForPendingDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*verifregtypes.Allocation, error) {
|
|
|
|
if s.Internal.StateGetAllocationForPendingDeal == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetAllocationForPendingDeal(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateGetAllocationForPendingDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*verifregtypes.Allocation, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) StateGetAllocations(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error) {
|
|
|
|
if s.Internal.StateGetAllocations == nil {
|
|
|
|
return *new(map[verifregtypes.AllocationId]verifregtypes.Allocation), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetAllocations(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateGetAllocations(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.AllocationId]verifregtypes.Allocation, error) {
|
|
|
|
return *new(map[verifregtypes.AllocationId]verifregtypes.Allocation), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) StateGetClaim(p0 context.Context, p1 address.Address, p2 verifregtypes.ClaimId, p3 types.TipSetKey) (*verifregtypes.Claim, error) {
|
|
|
|
if s.Internal.StateGetClaim == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetClaim(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateGetClaim(p0 context.Context, p1 address.Address, p2 verifregtypes.ClaimId, p3 types.TipSetKey) (*verifregtypes.Claim, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) StateGetClaims(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error) {
|
|
|
|
if s.Internal.StateGetClaims == nil {
|
|
|
|
return *new(map[verifregtypes.ClaimId]verifregtypes.Claim), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateGetClaims(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateGetClaims(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (map[verifregtypes.ClaimId]verifregtypes.Claim, error) {
|
|
|
|
return *new(map[verifregtypes.ClaimId]verifregtypes.Claim), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) StateListMiners(p0 context.Context, p1 types.TipSetKey) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateListMiners == nil {
|
|
|
|
return *new([]address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateListMiners(p0, p1)
|
2020-07-01 14:49:17 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateListMiners(p0 context.Context, p1 types.TipSetKey) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) StateLookupID(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateLookupID == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateLookupID(p0, p1, p2)
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateLookupID(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *GatewayStruct) StateMarketBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MarketBalance, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMarketBalance == nil {
|
|
|
|
return *new(MarketBalance), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMarketBalance(p0, p1, p2)
|
2020-03-23 14:56:22 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateMarketBalance(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MarketBalance, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(MarketBalance), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *GatewayStruct) StateMarketStorageDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*MarketDeal, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMarketStorageDeal == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMarketStorageDeal(p0, p1, p2)
|
2020-07-21 18:07:49 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateMarketStorageDeal(p0 context.Context, p1 abi.DealID, p2 types.TipSetKey) (*MarketDeal, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2024-03-14 19:12:02 +00:00
|
|
|
func (s *GatewayStruct) StateMinerDeadlines(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]Deadline, error) {
|
|
|
|
if s.Internal.StateMinerDeadlines == nil {
|
|
|
|
return *new([]Deadline), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateMinerDeadlines(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateMinerDeadlines(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]Deadline, error) {
|
|
|
|
return *new([]Deadline), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-04-20 21:34:28 +00:00
|
|
|
func (s *GatewayStruct) StateMinerInfo(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerInfo == nil {
|
2022-04-20 21:34:28 +00:00
|
|
|
return *new(MinerInfo), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerInfo(p0, p1, p2)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2022-04-20 21:34:28 +00:00
|
|
|
func (s *GatewayStub) StateMinerInfo(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerInfo, error) {
|
|
|
|
return *new(MinerInfo), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *GatewayStruct) StateMinerPower(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*MinerPower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerPower == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerPower(p0, p1, p2)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateMinerPower(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*MinerPower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) StateMinerProvingDeadline(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*dline.Info, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateMinerProvingDeadline == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateMinerProvingDeadline(p0, p1, p2)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateMinerProvingDeadline(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*dline.Info, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-03-11 07:27:42 +00:00
|
|
|
func (s *GatewayStruct) StateMinerSectorCount(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerSectors, error) {
|
|
|
|
if s.Internal.StateMinerSectorCount == nil {
|
|
|
|
return *new(MinerSectors), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateMinerSectorCount(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateMinerSectorCount(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (MinerSectors, error) {
|
|
|
|
return *new(MinerSectors), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2023-03-07 17:36:11 +00:00
|
|
|
func (s *GatewayStruct) StateNetworkName(p0 context.Context) (dtypes.NetworkName, error) {
|
|
|
|
if s.Internal.StateNetworkName == nil {
|
|
|
|
return *new(dtypes.NetworkName), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateNetworkName(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateNetworkName(p0 context.Context) (dtypes.NetworkName, error) {
|
|
|
|
return *new(dtypes.NetworkName), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) StateNetworkVersion(p0 context.Context, p1 types.TipSetKey) (apitypes.NetworkVersion, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateNetworkVersion == nil {
|
|
|
|
return *new(apitypes.NetworkVersion), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateNetworkVersion(p0, p1)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateNetworkVersion(p0 context.Context, p1 types.TipSetKey) (apitypes.NetworkVersion, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(apitypes.NetworkVersion), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-07-22 00:21:28 +00:00
|
|
|
func (s *GatewayStruct) StateReadState(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*ActorState, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateReadState == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-07-22 00:21:28 +00:00
|
|
|
return s.Internal.StateReadState(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateReadState(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*ActorState, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2023-03-11 07:27:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStruct) StateReplay(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid) (*InvocResult, error) {
|
|
|
|
if s.Internal.StateReplay == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateReplay(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateReplay(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid) (*InvocResult, error) {
|
|
|
|
return nil, ErrNotSupported
|
2021-07-22 00:21:28 +00:00
|
|
|
}
|
|
|
|
|
2021-04-05 11:47:10 +00:00
|
|
|
func (s *GatewayStruct) StateSearchMsg(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateSearchMsg == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-04-05 11:47:10 +00:00
|
|
|
return s.Internal.StateSearchMsg(p0, p1, p2, p3, p4)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-05 11:47:10 +00:00
|
|
|
func (s *GatewayStub) StateSearchMsg(p0 context.Context, p1 types.TipSetKey, p2 cid.Cid, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) StateSectorGetInfo(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorOnChainInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateSectorGetInfo == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateSectorGetInfo(p0, p1, p2, p3)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateSectorGetInfo(p0 context.Context, p1 address.Address, p2 abi.SectorNumber, p3 types.TipSetKey) (*miner.SectorOnChainInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *GatewayStruct) StateVerifiedClientStatus(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateVerifiedClientStatus == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StateVerifiedClientStatus(p0, p1, p2)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *GatewayStub) StateVerifiedClientStatus(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-03-14 17:35:26 +00:00
|
|
|
func (s *GatewayStruct) StateVerifierStatus(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) {
|
|
|
|
if s.Internal.StateVerifierStatus == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StateVerifierStatus(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) StateVerifierStatus(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*abi.StoragePower, error) {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-04-05 11:47:10 +00:00
|
|
|
func (s *GatewayStruct) StateWaitMsg(p0 context.Context, p1 cid.Cid, p2 uint64, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StateWaitMsg == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-04-05 11:47:10 +00:00
|
|
|
return s.Internal.StateWaitMsg(p0, p1, p2, p3, p4)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-05 11:47:10 +00:00
|
|
|
func (s *GatewayStub) StateWaitMsg(p0 context.Context, p1 cid.Cid, p2 uint64, p3 abi.ChainEpoch, p4 bool) (*MsgLookup, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
func (s *GatewayStruct) SubscribeActorEventsRaw(p0 context.Context, p1 *types.ActorEventFilter) (<-chan *types.ActorEvent, error) {
|
|
|
|
if s.Internal.SubscribeActorEventsRaw == nil {
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2024-03-19 00:37:46 +00:00
|
|
|
return s.Internal.SubscribeActorEventsRaw(p0, p1)
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 00:37:46 +00:00
|
|
|
func (s *GatewayStub) SubscribeActorEventsRaw(p0 context.Context, p1 *types.ActorEventFilter) (<-chan *types.ActorEvent, error) {
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-06-28 17:00:49 +00:00
|
|
|
func (s *GatewayStruct) Version(p0 context.Context) (APIVersion, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Version == nil {
|
|
|
|
return *new(APIVersion), ErrNotSupported
|
|
|
|
}
|
2021-06-28 17:00:49 +00:00
|
|
|
return s.Internal.Version(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) Version(p0 context.Context) (APIVersion, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(APIVersion), ErrNotSupported
|
2021-06-28 17:00:49 +00:00
|
|
|
}
|
|
|
|
|
2021-04-21 04:55:47 +00:00
|
|
|
func (s *GatewayStruct) WalletBalance(p0 context.Context, p1 address.Address) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletBalance == nil {
|
|
|
|
return *new(types.BigInt), ErrNotSupported
|
|
|
|
}
|
2021-04-21 04:55:47 +00:00
|
|
|
return s.Internal.WalletBalance(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) WalletBalance(p0 context.Context, p1 address.Address) (types.BigInt, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(types.BigInt), ErrNotSupported
|
2021-04-21 04:55:47 +00:00
|
|
|
}
|
|
|
|
|
2023-02-02 12:25:50 +00:00
|
|
|
func (s *GatewayStruct) Web3ClientVersion(p0 context.Context) (string, error) {
|
|
|
|
if s.Internal.Web3ClientVersion == nil {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.Web3ClientVersion(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *GatewayStub) Web3ClientVersion(p0 context.Context) (string, error) {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-06-29 12:07:00 +00:00
|
|
|
func (s *NetStruct) ID(p0 context.Context) (peer.ID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ID == nil {
|
|
|
|
return *new(peer.ID), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.ID(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) ID(p0 context.Context) (peer.ID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(peer.ID), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetAddrsListen(p0 context.Context) (peer.AddrInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetAddrsListen == nil {
|
|
|
|
return *new(peer.AddrInfo), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetAddrsListen(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetAddrsListen(p0 context.Context) (peer.AddrInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(peer.AddrInfo), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetAgentVersion(p0 context.Context, p1 peer.ID) (string, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetAgentVersion == nil {
|
|
|
|
return "", ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetAgentVersion(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetAgentVersion(p0 context.Context, p1 peer.ID) (string, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return "", ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetAutoNatStatus(p0 context.Context) (NatInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetAutoNatStatus == nil {
|
|
|
|
return *new(NatInfo), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetAutoNatStatus(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetAutoNatStatus(p0 context.Context) (NatInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(NatInfo), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetBandwidthStats(p0 context.Context) (metrics.Stats, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetBandwidthStats == nil {
|
|
|
|
return *new(metrics.Stats), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetBandwidthStats(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetBandwidthStats(p0 context.Context) (metrics.Stats, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(metrics.Stats), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetBandwidthStatsByPeer(p0 context.Context) (map[string]metrics.Stats, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetBandwidthStatsByPeer == nil {
|
|
|
|
return *new(map[string]metrics.Stats), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetBandwidthStatsByPeer(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetBandwidthStatsByPeer(p0 context.Context) (map[string]metrics.Stats, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[string]metrics.Stats), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetBandwidthStatsByProtocol(p0 context.Context) (map[protocol.ID]metrics.Stats, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetBandwidthStatsByProtocol == nil {
|
|
|
|
return *new(map[protocol.ID]metrics.Stats), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetBandwidthStatsByProtocol(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetBandwidthStatsByProtocol(p0 context.Context) (map[protocol.ID]metrics.Stats, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[protocol.ID]metrics.Stats), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetBlockAdd(p0 context.Context, p1 NetBlockList) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetBlockAdd == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetBlockAdd(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetBlockAdd(p0 context.Context, p1 NetBlockList) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetBlockList(p0 context.Context) (NetBlockList, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetBlockList == nil {
|
|
|
|
return *new(NetBlockList), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetBlockList(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetBlockList(p0 context.Context) (NetBlockList, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(NetBlockList), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetBlockRemove(p0 context.Context, p1 NetBlockList) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetBlockRemove == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetBlockRemove(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetBlockRemove(p0 context.Context, p1 NetBlockList) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetConnect(p0 context.Context, p1 peer.AddrInfo) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetConnect == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetConnect(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetConnect(p0 context.Context, p1 peer.AddrInfo) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetConnectedness(p0 context.Context, p1 peer.ID) (network.Connectedness, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetConnectedness == nil {
|
|
|
|
return *new(network.Connectedness), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetConnectedness(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetConnectedness(p0 context.Context, p1 peer.ID) (network.Connectedness, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(network.Connectedness), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetDisconnect(p0 context.Context, p1 peer.ID) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetDisconnect == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetDisconnect(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetDisconnect(p0 context.Context, p1 peer.ID) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetFindPeer(p0 context.Context, p1 peer.ID) (peer.AddrInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetFindPeer == nil {
|
|
|
|
return *new(peer.AddrInfo), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetFindPeer(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetFindPeer(p0 context.Context, p1 peer.ID) (peer.AddrInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(peer.AddrInfo), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
2022-01-20 09:44:01 +00:00
|
|
|
func (s *NetStruct) NetLimit(p0 context.Context, p1 string) (NetLimit, error) {
|
|
|
|
if s.Internal.NetLimit == nil {
|
|
|
|
return *new(NetLimit), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetLimit(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetLimit(p0 context.Context, p1 string) (NetLimit, error) {
|
|
|
|
return *new(NetLimit), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-06-29 12:07:00 +00:00
|
|
|
func (s *NetStruct) NetPeerInfo(p0 context.Context, p1 peer.ID) (*ExtendedPeerInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetPeerInfo == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetPeerInfo(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetPeerInfo(p0 context.Context, p1 peer.ID) (*ExtendedPeerInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetPeers(p0 context.Context) ([]peer.AddrInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetPeers == nil {
|
|
|
|
return *new([]peer.AddrInfo), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetPeers(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetPeers(p0 context.Context) ([]peer.AddrInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]peer.AddrInfo), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
2022-02-17 09:10:28 +00:00
|
|
|
func (s *NetStruct) NetPing(p0 context.Context, p1 peer.ID) (time.Duration, error) {
|
|
|
|
if s.Internal.NetPing == nil {
|
|
|
|
return *new(time.Duration), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetPing(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetPing(p0 context.Context, p1 peer.ID) (time.Duration, error) {
|
|
|
|
return *new(time.Duration), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-02-03 16:24:49 +00:00
|
|
|
func (s *NetStruct) NetProtectAdd(p0 context.Context, p1 []peer.ID) error {
|
|
|
|
if s.Internal.NetProtectAdd == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetProtectAdd(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetProtectAdd(p0 context.Context, p1 []peer.ID) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetProtectList(p0 context.Context) ([]peer.ID, error) {
|
|
|
|
if s.Internal.NetProtectList == nil {
|
|
|
|
return *new([]peer.ID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetProtectList(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetProtectList(p0 context.Context) ([]peer.ID, error) {
|
|
|
|
return *new([]peer.ID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetProtectRemove(p0 context.Context, p1 []peer.ID) error {
|
|
|
|
if s.Internal.NetProtectRemove == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetProtectRemove(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetProtectRemove(p0 context.Context, p1 []peer.ID) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-06-29 12:07:00 +00:00
|
|
|
func (s *NetStruct) NetPubsubScores(p0 context.Context) ([]PubsubScore, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.NetPubsubScores == nil {
|
|
|
|
return *new([]PubsubScore), ErrNotSupported
|
|
|
|
}
|
2021-06-29 12:07:00 +00:00
|
|
|
return s.Internal.NetPubsubScores(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetPubsubScores(p0 context.Context) ([]PubsubScore, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]PubsubScore), ErrNotSupported
|
2021-06-29 12:07:00 +00:00
|
|
|
}
|
|
|
|
|
2022-01-20 09:44:01 +00:00
|
|
|
func (s *NetStruct) NetSetLimit(p0 context.Context, p1 string, p2 NetLimit) error {
|
|
|
|
if s.Internal.NetSetLimit == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetSetLimit(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetSetLimit(p0 context.Context, p1 string, p2 NetLimit) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStruct) NetStat(p0 context.Context, p1 string) (NetStat, error) {
|
|
|
|
if s.Internal.NetStat == nil {
|
|
|
|
return *new(NetStat), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.NetStat(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *NetStub) NetStat(p0 context.Context, p1 string) (NetStat, error) {
|
|
|
|
return *new(NetStat), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *SignableStruct) Sign(p0 context.Context, p1 SignFunc) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Sign == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Sign(p0, p1)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *SignableStub) Sign(p0 context.Context, p1 SignFunc) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) ActorAddress(p0 context.Context) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ActorAddress == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ActorAddress(p0)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ActorAddress(p0 context.Context) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *StorageMinerStruct) ActorAddressConfig(p0 context.Context) (AddressConfig, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ActorAddressConfig == nil {
|
|
|
|
return *new(AddressConfig), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ActorAddressConfig(p0)
|
2020-09-06 16:47:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ActorAddressConfig(p0 context.Context) (AddressConfig, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(AddressConfig), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) ActorSectorSize(p0 context.Context, p1 address.Address) (abi.SectorSize, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ActorSectorSize == nil {
|
|
|
|
return *new(abi.SectorSize), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ActorSectorSize(p0, p1)
|
2020-07-27 11:23:43 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ActorSectorSize(p0 context.Context, p1 address.Address) (abi.SectorSize, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(abi.SectorSize), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-08-02 07:34:54 +00:00
|
|
|
func (s *StorageMinerStruct) ActorWithdrawBalance(p0 context.Context, p1 abi.TokenAmount) (cid.Cid, error) {
|
|
|
|
if s.Internal.ActorWithdrawBalance == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ActorWithdrawBalance(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) ActorWithdrawBalance(p0 context.Context, p1 abi.TokenAmount) (cid.Cid, error) {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-09-14 04:19:47 +00:00
|
|
|
func (s *StorageMinerStruct) BeneficiaryWithdrawBalance(p0 context.Context, p1 abi.TokenAmount) (cid.Cid, error) {
|
|
|
|
if s.Internal.BeneficiaryWithdrawBalance == nil {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.BeneficiaryWithdrawBalance(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) BeneficiaryWithdrawBalance(p0 context.Context, p1 abi.TokenAmount) (cid.Cid, error) {
|
|
|
|
return *new(cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-11-14 20:29:50 +00:00
|
|
|
func (s *StorageMinerStruct) CheckProvable(p0 context.Context, p1 abi.RegisteredPoStProof, p2 []storiface.SectorRef) (map[abi.SectorNumber]string, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.CheckProvable == nil {
|
|
|
|
return *new(map[abi.SectorNumber]string), ErrNotSupported
|
|
|
|
}
|
2022-11-14 20:29:50 +00:00
|
|
|
return s.Internal.CheckProvable(p0, p1, p2)
|
2020-11-11 16:39:12 +00:00
|
|
|
}
|
|
|
|
|
2022-11-14 20:29:50 +00:00
|
|
|
func (s *StorageMinerStub) CheckProvable(p0 context.Context, p1 abi.RegisteredPoStProof, p2 []storiface.SectorRef) (map[abi.SectorNumber]string, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[abi.SectorNumber]string), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStruct) ComputeDataCid(p0 context.Context, p1 abi.UnpaddedPieceSize, p2 storiface.Data) (abi.PieceInfo, error) {
|
2022-04-26 19:37:48 +00:00
|
|
|
if s.Internal.ComputeDataCid == nil {
|
|
|
|
return *new(abi.PieceInfo), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ComputeDataCid(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStub) ComputeDataCid(p0 context.Context, p1 abi.UnpaddedPieceSize, p2 storiface.Data) (abi.PieceInfo, error) {
|
2022-04-26 19:37:48 +00:00
|
|
|
return *new(abi.PieceInfo), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-11-10 15:04:58 +00:00
|
|
|
func (s *StorageMinerStruct) ComputeProof(p0 context.Context, p1 []builtinactors.ExtendedSectorInfo, p2 abi.PoStRandomness, p3 abi.ChainEpoch, p4 abinetwork.Version) ([]builtinactors.PoStProof, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ComputeProof == nil {
|
2022-11-10 15:04:58 +00:00
|
|
|
return *new([]builtinactors.PoStProof), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-12-08 17:11:19 +00:00
|
|
|
return s.Internal.ComputeProof(p0, p1, p2, p3, p4)
|
2021-03-26 05:32:03 +00:00
|
|
|
}
|
|
|
|
|
2022-11-10 15:04:58 +00:00
|
|
|
func (s *StorageMinerStub) ComputeProof(p0 context.Context, p1 []builtinactors.ExtendedSectorInfo, p2 abi.PoStRandomness, p3 abi.ChainEpoch, p4 abinetwork.Version) ([]builtinactors.PoStProof, error) {
|
|
|
|
return *new([]builtinactors.PoStProof), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-03-28 20:54:22 +00:00
|
|
|
func (s *StorageMinerStruct) ComputeWindowPoSt(p0 context.Context, p1 uint64, p2 types.TipSetKey) ([]miner.SubmitWindowedPoStParams, error) {
|
|
|
|
if s.Internal.ComputeWindowPoSt == nil {
|
|
|
|
return *new([]miner.SubmitWindowedPoStParams), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ComputeWindowPoSt(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) ComputeWindowPoSt(p0 context.Context, p1 uint64, p2 types.TipSetKey) ([]miner.SubmitWindowedPoStParams, error) {
|
|
|
|
return *new([]miner.SubmitWindowedPoStParams), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) CreateBackup(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.CreateBackup == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.CreateBackup(p0, p1)
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
2019-11-08 18:15:13 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) CreateBackup(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-04-22 21:01:23 +00:00
|
|
|
func (s *StorageMinerStruct) MarketListDeals(p0 context.Context) ([]*MarketDeal, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MarketListDeals == nil {
|
2022-04-22 21:01:23 +00:00
|
|
|
return *new([]*MarketDeal), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MarketListDeals(p0)
|
2020-10-22 20:40:26 +00:00
|
|
|
}
|
|
|
|
|
2022-04-22 21:01:23 +00:00
|
|
|
func (s *StorageMinerStub) MarketListDeals(p0 context.Context) ([]*MarketDeal, error) {
|
|
|
|
return *new([]*MarketDeal), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) MiningBase(p0 context.Context) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MiningBase == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MiningBase(p0)
|
2020-06-23 17:17:31 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) MiningBase(p0 context.Context) (*types.TipSet, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) PledgeSector(p0 context.Context) (abi.SectorID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.PledgeSector == nil {
|
|
|
|
return *new(abi.SectorID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.PledgeSector(p0)
|
2020-06-26 19:27:41 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) PledgeSector(p0 context.Context) (abi.SectorID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(abi.SectorID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-09-06 15:47:30 +00:00
|
|
|
func (s *StorageMinerStruct) RecoverFault(p0 context.Context, p1 []abi.SectorNumber) ([]cid.Cid, error) {
|
|
|
|
if s.Internal.RecoverFault == nil {
|
|
|
|
return *new([]cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.RecoverFault(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) RecoverFault(p0 context.Context, p1 []abi.SectorNumber) ([]cid.Cid, error) {
|
|
|
|
return *new([]cid.Cid), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnAddPiece(p0 context.Context, p1 storiface.CallID, p2 abi.PieceInfo, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnAddPiece == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnAddPiece(p0, p1, p2, p3)
|
2020-06-26 19:27:41 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ReturnAddPiece(p0 context.Context, p1 storiface.CallID, p2 abi.PieceInfo, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-04-26 16:22:52 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnDataCid(p0 context.Context, p1 storiface.CallID, p2 abi.PieceInfo, p3 *storiface.CallError) error {
|
|
|
|
if s.Internal.ReturnDataCid == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ReturnDataCid(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) ReturnDataCid(p0 context.Context, p1 storiface.CallID, p2 abi.PieceInfo, p3 *storiface.CallError) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-08-31 11:56:25 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnDownloadSector(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
|
|
|
if s.Internal.ReturnDownloadSector == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ReturnDownloadSector(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) ReturnDownloadSector(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnFetch(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnFetch == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnFetch(p0, p1, p2)
|
2020-12-02 06:21:29 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ReturnFetch(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-02-08 14:06:42 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnFinalizeReplicaUpdate(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
|
|
|
if s.Internal.ReturnFinalizeReplicaUpdate == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ReturnFinalizeReplicaUpdate(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) ReturnFinalizeReplicaUpdate(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnFinalizeSector(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnFinalizeSector == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnFinalizeSector(p0, p1, p2)
|
2020-12-02 06:21:29 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ReturnFinalizeSector(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-12-01 19:01:55 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnGenerateSectorKeyFromData(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
|
|
|
if s.Internal.ReturnGenerateSectorKeyFromData == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ReturnGenerateSectorKeyFromData(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) ReturnGenerateSectorKeyFromData(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnMoveStorage(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnMoveStorage == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnMoveStorage(p0, p1, p2)
|
2020-12-02 06:21:29 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ReturnMoveStorage(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnProveReplicaUpdate1(p0 context.Context, p1 storiface.CallID, p2 storiface.ReplicaVanillaProofs, p3 *storiface.CallError) error {
|
2021-11-10 18:53:00 +00:00
|
|
|
if s.Internal.ReturnProveReplicaUpdate1 == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ReturnProveReplicaUpdate1(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStub) ReturnProveReplicaUpdate1(p0 context.Context, p1 storiface.CallID, p2 storiface.ReplicaVanillaProofs, p3 *storiface.CallError) error {
|
2021-11-10 18:53:00 +00:00
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnProveReplicaUpdate2(p0 context.Context, p1 storiface.CallID, p2 storiface.ReplicaUpdateProof, p3 *storiface.CallError) error {
|
2021-11-10 18:53:00 +00:00
|
|
|
if s.Internal.ReturnProveReplicaUpdate2 == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ReturnProveReplicaUpdate2(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStub) ReturnProveReplicaUpdate2(p0 context.Context, p1 storiface.CallID, p2 storiface.ReplicaUpdateProof, p3 *storiface.CallError) error {
|
2021-11-10 18:53:00 +00:00
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnReadPiece(p0 context.Context, p1 storiface.CallID, p2 bool, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnReadPiece == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnReadPiece(p0, p1, p2, p3)
|
2020-12-02 06:21:29 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ReturnReadPiece(p0 context.Context, p1 storiface.CallID, p2 bool, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnReleaseUnsealed(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnReleaseUnsealed == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnReleaseUnsealed(p0, p1, p2)
|
2020-03-05 22:02:01 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ReturnReleaseUnsealed(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnReplicaUpdate(p0 context.Context, p1 storiface.CallID, p2 storiface.ReplicaUpdateOut, p3 *storiface.CallError) error {
|
2021-11-10 18:53:00 +00:00
|
|
|
if s.Internal.ReturnReplicaUpdate == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ReturnReplicaUpdate(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStub) ReturnReplicaUpdate(p0 context.Context, p1 storiface.CallID, p2 storiface.ReplicaUpdateOut, p3 *storiface.CallError) error {
|
2021-11-10 18:53:00 +00:00
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnSealCommit1(p0 context.Context, p1 storiface.CallID, p2 storiface.Commit1Out, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnSealCommit1 == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnSealCommit1(p0, p1, p2, p3)
|
2020-07-27 17:59:30 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStub) ReturnSealCommit1(p0 context.Context, p1 storiface.CallID, p2 storiface.Commit1Out, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnSealCommit2(p0 context.Context, p1 storiface.CallID, p2 storiface.Proof, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnSealCommit2 == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnSealCommit2(p0, p1, p2, p3)
|
2020-07-27 17:59:30 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStub) ReturnSealCommit2(p0 context.Context, p1 storiface.CallID, p2 storiface.Proof, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnSealPreCommit1(p0 context.Context, p1 storiface.CallID, p2 storiface.PreCommit1Out, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnSealPreCommit1 == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnSealPreCommit1(p0, p1, p2, p3)
|
2020-07-27 17:59:30 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStub) ReturnSealPreCommit1(p0 context.Context, p1 storiface.CallID, p2 storiface.PreCommit1Out, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnSealPreCommit2(p0 context.Context, p1 storiface.CallID, p2 storiface.SectorCids, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnSealPreCommit2 == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnSealPreCommit2(p0, p1, p2, p3)
|
2020-07-27 17:59:30 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStub) ReturnSealPreCommit2(p0 context.Context, p1 storiface.CallID, p2 storiface.SectorCids, p3 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) ReturnUnsealPiece(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReturnUnsealPiece == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReturnUnsealPiece(p0, p1, p2)
|
2020-10-01 11:58:26 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) ReturnUnsealPiece(p0 context.Context, p1 storiface.CallID, p2 *storiface.CallError) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-07-28 09:10:17 +00:00
|
|
|
func (s *StorageMinerStruct) RuntimeSubsystems(p0 context.Context) (MinerSubsystems, error) {
|
|
|
|
if s.Internal.RuntimeSubsystems == nil {
|
|
|
|
return *new(MinerSubsystems), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.RuntimeSubsystems(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) RuntimeSubsystems(p0 context.Context) (MinerSubsystems, error) {
|
|
|
|
return *new(MinerSubsystems), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SealingAbort(p0 context.Context, p1 storiface.CallID) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SealingAbort == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SealingAbort(p0, p1)
|
2020-11-26 07:02:43 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SealingAbort(p0 context.Context, p1 storiface.CallID) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-08-01 17:49:47 +00:00
|
|
|
func (s *StorageMinerStruct) SealingRemoveRequest(p0 context.Context, p1 uuid.UUID) error {
|
2022-07-20 04:50:05 +00:00
|
|
|
if s.Internal.SealingRemoveRequest == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2022-08-01 17:49:47 +00:00
|
|
|
return s.Internal.SealingRemoveRequest(p0, p1)
|
2022-07-20 04:50:05 +00:00
|
|
|
}
|
|
|
|
|
2022-08-01 17:49:47 +00:00
|
|
|
func (s *StorageMinerStub) SealingRemoveRequest(p0 context.Context, p1 uuid.UUID) error {
|
2022-07-20 04:50:05 +00:00
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SealingSchedDiag(p0 context.Context, p1 bool) (interface{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SealingSchedDiag == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SealingSchedDiag(p0, p1)
|
OpenRPC Support (#5843)
* main: init implement rpc.Discover RPC method
This implement the basic functionality for the method
over HTTP RPC.
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init example with go-openrpc-reflect lib
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* main: make variable name human-friendly
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init impl of go-openrp-reflect printing document
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* go.mod,go.sum: use go-openrpc-reflect and open-rpc/meta-schema hackforks
This is for development only.
Versions need to be bumped when they're ready for use
as canonical remotes.
Signed-off-by: meows <b5c6@protonmail.com>
* main,openrpc,main: refactor openrpc supporting code to own package
This eliminates code duplication.
Signed-off-by: meows <b5c6@protonmail.com>
* main: add rpc.Discover to openrpc document
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: fix rpc.discover method name casing
Also fixes casing stuff for the rest of Filecoin.
methods.
Signed-off-by: meows <b5c6@protonmail.com>
* Revert "main: add rpc.Discover to openrpc document"
This reverts commit 116898efb10f33e405ac74acb1aa6daefcd46a62.
* main: fix document creation method name
This fixes an issue caused with the latest reverting
commit.
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen,openrpc: refactor to share api parsing, etc as docgen exported stuff
Signed-off-by: meows <b5c6@protonmail.com>
Makefile: fix docgen refactoring for makefile use of command
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: add schema.examples to app reflector
There are quite of few of these already registered
for the docgen command, so it makes sense to use
those!
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init method pairing examples
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump go.mod to use latest meta-schema and openrpc-reflect versions
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init SchemaType mapper function
This function will handle the manual configurations
for app-specific data types w/r/t their json schema
representation.
This is useful for cases where the reflect library
is unable to provide a sufficient representation
automatically.
Provided in this commit is an initial implementation
for the integerD type (assuming number are represented
in the API as hexs), and a commonly used cid.Cid type.
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: tame dependencies by bumping etclabscore/go-openrpc-reflect
This removes a problematic dependency
on github.com/ethereum/go-ethereum, which was
imported as a dependency for a couple github.com/etclabscore/go-openrpc-reflect
tests.
etclabscore/go-openrpc-reflect v0.0.36 has removed this
dependency, so this commit is the result of bumping
that version and then running 'go mod tidy'
This is in response to a review at
https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
Date: 2020-11-21 06:52:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: add 'miner' arg to openrpc gen cmd
This allows the command to EITHER
generate the doc for Full or Miner APIs.
See comment for usage.
Date: 2020-11-21 07:48:05-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen: add missing examples for Miner API
Generating the Miner API OpenRPC doc
(via 'go run ./api/openrpc/cmd miner') caused
the example logic to panic because some types
were missing.
This commit adds those missing types, although
I'm not an expert in the API so I can't
suggest that the example values provided are
ideal or well representative.
Date: 2020-11-21 07:50:21-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json,build/openrpc/miner.json: add build/openrpc/[full/miner].json docs
These will be used as static documents
provided by the rpc.discover method.
Date: 2020-11-21 07:51:39-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: init go-rice openrpc static assets
Date: 2020-11-21 08:23:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: remove rpc.discover implementation from runtime plugin
Instead of generating the doc on the fly,
we're going to serve a static asset.
Rel https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
This removes the runtime implementation from the
RPC server construction.
Date: 2020-11-21 08:41:20-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,common: add Discover(ctx) method to CommonAPI interface and structs
Date: 2020-11-21 08:41:56-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: use rpc server method aliasing for rpc.discover
This depends on a currently-forked change at
filecoin-project/go-jsonrpc 8350f9463ee451b187d35c492e32f1b999e80210
which establishes this new method RPCServer.AliasMethod.
This solves the problem that the OpenRPC
spec says that the document should be served
at the system extension-prefixed endpoing
rpc.discover (not Filecoin.Discover).
In fact, the document will be available at BOTH
endpoints, but that duplicity is harmless.
Date: 2020-11-21 09:18:26-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,build,common: rpc.discover: return json object instead of string
Instead of casting the JSON asset from bytes to string,
unmarshal it to a map[string]interface{} so the
server will provide it as a JSON object.
Date: 2020-11-21 09:27:11-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile: merge resolve: docsgen command path
Date: 2020-11-22 07:19:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,main,docgen,openrpc: merge resolve: fix func exporteds, signatures
Date: 2020-11-22 07:31:03-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: 'get get' auto-bumps version
Date: 2020-11-22 07:31:44-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,docgen,main,build/openrpc: refactor openrpc documentation generation
This creates Makefile command docsgen-openrpc-json,
and refactors the docsgen command to generate both
the markdown and openrpc json documents, redirecting
the output of the openrpc json documentation to
the build/openrpc/ directory, where those json
files will be compiled as static assets via go-rice
boxes.
The api/openrpc/cmd now uses usage argumentation
congruent to that of the docgen command (switching
on API context).
Date: 2020-11-22 08:01:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc: rename api/openrpc -> api/docgen-openrpc
Renames the package as well.
This is intended to parallel the
existing docgen package and command
namespacing.
Date: 2020-11-22 10:34:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,docgen,build,build/openrpc: use typed Discover response
Instead of using a map[string]interface{}, use
a typed response for the Discover method implementation.
This avoids having to set a docgen Example for
the generic map[string]interface{} (as an openrpc document)
which both pollutes the generic type and lacks
useful information for the Discover method example.
Date: 2020-11-22 08:31:16-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,build,main,impl: implement Discover method for Worker and StorageMiner APIs
Methods return static compiled assets respective
to the APIs.
Date: 2020-11-22 08:57:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen_openrpc,build/openrpc: remove timestamping from openrpc doc info
This should allow openrpc docs generated at different
times to be equal. This is important because the CI
(Circle) runs the docgen command and tests that
the output and the source are unchanged (via git diff).
Date: 2020-11-22 10:47:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc,main,build: fix lint issues
Fixes goimports, staticcheck, golint issues.
Date: 2020-11-22 11:06:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: fix: don't use an underscore in package name (golint)
Date: 2020-11-22 11:07:53-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: fix: mod-tidy-check (run 'go mod tidy')
Date: 2020-11-22 11:09:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc dep to latest
This version includes the necessary RPCServer.AliasMethod
method.
Date: 2020-11-23 12:16:15-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,main,build,build/openrpc: init gzipped openrpc static docs
Date: 2020-11-24 06:15:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: refactor gzip reading
Date: 2020-11-24 06:18:34-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: add basic test for openrpc doc from static assets
Date: 2020-11-24 06:30:23-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: handle reader Close error
This keeps the errcheck linter happy.
Date: 2020-11-24 06:33:14-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: run 'go mod tidy'
Date: 2020-11-24 06:36:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: go mod tidy
Tidying up after resolving the merge conflicts
with master at go.mod
Date: 2020-11-24 06:40:45-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc to latest
This is a repeat of 76e6fd2, since the latest merge
to master seems to have reverted this.
Date: 2020-11-24 06:42:30-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc,build/openrpc: remove method example pairings, improve schema examples
Removing method example pairings since they were
redundant to schema examples and were not
implemented well.
Improved schema examples by using the ExampleValue
method instead of the map lookup.
Made a note in the comment here that this is
not ideal, since we have to make a shortcut assumption
/workaround by using 'unknown' as the method name
and the typea as its own parent.
Luckily these values aren't heavily used by the
method logic.
Date: 2020-11-27 12:57:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: use generic number jsonschema for number types
Previously used an integer schema assuming
hex encoding. It appears, based on review some
of the examples, that this may not be the case.
Obvioussly this schema could be more descriptive,
but just shooting for mostly likely to be
not wrong at this point.
Date: 2020-12-15 14:44:37-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* cmd/lotus,go.mod,go.sum: maybe fix straggling merge resolution conflicts
Date: 2021-01-19 12:30:42-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json.gz,build/openrpc/miner.json.gz,build/openrpc/worker.json.gz: run 'make docsgen'
Date: 2021-01-19 12:33:55-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/apistruct,node/impl: (lint) gofmt
Date: 2021-01-19 12:39:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: maybe fix parse error: open ./api: no such file or directory
Date: 2021-01-19 12:52:04-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen,build/openrpc: maybe fix no such file error and run 'make docsgen'
Date: 2021-01-19 12:55:52-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: return if AST comment/groupdoc parsing encounters any error
This will returns empty comments/docs maps.
This should fix issues like:
https://app.circleci.com/pipelines/github/filecoin-project/lotus/12445/workflows/4ebadce9-a298-4ad1-939b-f19ef4c0a5bf/jobs/107218
where the environment makes file lookups hard or
impossible.
Date: 2021-01-19 13:04:58-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api: Don't depend on build/
* make: support parallel docsgen
* openrpc gen: Use simple build version
* methodgen
* goimports
Co-authored-by: meows <b5c6@protonmail.com>
2021-03-19 18:22:46 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SealingSchedDiag(p0 context.Context, p1 bool) (interface{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-01-21 17:39:18 +00:00
|
|
|
func (s *StorageMinerStruct) SectorAbortUpgrade(p0 context.Context, p1 abi.SectorNumber) error {
|
|
|
|
if s.Internal.SectorAbortUpgrade == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.SectorAbortUpgrade(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) SectorAbortUpgrade(p0 context.Context, p1 abi.SectorNumber) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
func (s *StorageMinerStruct) SectorAddPieceToAny(p0 context.Context, p1 abi.UnpaddedPieceSize, p2 storiface.Data, p3 piece.PieceDealInfo) (SectorOffset, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorAddPieceToAny == nil {
|
|
|
|
return *new(SectorOffset), ErrNotSupported
|
|
|
|
}
|
2021-05-19 11:05:07 +00:00
|
|
|
return s.Internal.SectorAddPieceToAny(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
chore: Merge nv22 into master (#11699)
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* feat: drand: refactor round verification
* feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226)
* Initial work supporting DDO pieces in lotus-miner
* sealing: Update pipeline input to operate on UniversalPiece
* sealing: Update pipeline checks/sealing states to operate on UniversalPiece
* sealing: Make pipeline build with UniversalPiece
* move PieceDealInfo out of api
* make gen
* make sealing pipeline unit tests pass
* fix itest ensemble build
* don't panic in SectorsStatus with deals
* stop linter from complaining about checkPieces
* fix sector import tests
* mod tidy
* sealing: Add logic for (pre)committing DDO sectors
* sealing: state-types with method defs
* DDO non-snap pipeline works(?), DDO Itests
* DDO support in snapdeals pipeline
* make gen
* update actor bundles
* update the gst market fix
* fix: chain: use PreCommitSectorsBatch2 when setting up genesis
* some bug fixes
* integration working changes
* update actor bundles
* Make TestOnboardRawPieceSnap pass
* Appease the linter
* Make deadlines test pass with v12 actors
* Update go-state-types, abstract market DealState
* make gen
* mod tidy, lint fixes
* Fix some more tests
* Bump version in master
Bump version in master
* Make gen
Make gen
* fix sender
* fix: lotus-provider: Fix winning PoSt
* fix: sql Scan cannot write to an object
* Actually show miner-addrs in info-log
Actually show miner-addrs in lotus-provider info-log
* [WIP] feat: Add nv22 skeleton
Addition of Network Version 22 skeleton
* update FFI
* ddo is now nv22
* make gen
* temp actor bundle with ddo
* use working go-state-types
* gst with v13 market migration
* update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3
* actually working v13 migration, v13 migration itest
* Address review
* sealing: Correct DDO snap pledge math
* itests: Mixed ddo itest
* pipeline: Fix sectorWeight
* sealing: convert market deals into PAMs in mixed sectors
* sealing: make market to ddo conversion work
* fix lint
* update gst
* Update actors and GST to lastest integ branch
* commit batcher: Update ProveCommitSectors3Params builder logic
* make gen
* use builtin-actors master
* ddo: address review
* itests: Add commd assertions to ddo tests
* make gen
* gst with fixed types
* config knobs for RequireActivationSuccess
* storage: Drop obsolete flaky tasts
---------
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Phi <orjan.roren@gmail.com>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
* feat: implement FIP-0063
* chore: deps: update to go-multiaddr v0.12.2 (#11602)
* feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612)
This:
1. Adds nv22 support.
2. Updates the message tracing format.
Co-authored-by: Steven Allen <steven@stebalien.com>
* AggregateProofType nil when doing batch updates
Use latest nv22 go-state-types version with matching update
* Update to v13.0.0-rc.2 bundle
* chore: Upgrade heights and codename
Update upgrade heights
Co-Authored-By: Steven Allen <steven@stebalien.com>
* Update epoch after nv22 DRAND switch
Update epoch after nv22 DRAND switch
* Update Mango codename to Phoneix
Make the codename for the Drand-change inline with Dragon style.
* Add UpgradePhoenixHeight to API params
* set UpgradePhoenixHeight to be one hour after Dragon
* Make gen
Make gen and UpgradePhoenixHeight in butterfly and local devnet to be in line with Calibration and Mainnet
* Update epoch heights (#11637)
Update epoch heights
* new: add forest bootstrap nodes (#11636)
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
* Merge pull request #11491 from filecoin-project/fix/remove-decommissioned-pl-bootstrap-nodes
Remove PL operated bootstrap nodes from mainnet.pi
* feat: api: new verified registry methods to get all allocations and claims (#11631)
* new verireg methods
* update changelog and add itest
* update itest and cli
* update new method's support till v9
* remove gateway APIs
* fix cli internal var names
* chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)
* Improve the correctness of Eth's trace_block
- Improve encoding/decoding of parameters and return values:
- Encode "native" parameters and return values with Solidity ABI.
- Correctly decode parameters to "create" calls.
- Use the correct (ish) output for "create" calls.
- Handle all forms of "create".
- Make robust with respect to reverts:
- Use the actor ID/address from the trace instead of looking it up in
the state-tree (may not exist in the state-tree due to a revert).
- Gracefully handle failed actor/contract creation.
- Improve performance:
- We avoid looking anything up in the state-tree when translating the
trace, which should significantly improve performance.
- Improve code readability:
- Remove all "backtracking" logic.
- Use an "environment" struct to store temporary state instead of
attaching it to the trace.
- Fix random bugs:
- Fix an allocation bug in the "address" logic (need to set the
capacity before modifying the slice).
- Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
- And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.
* Make gen
Make gen
---------
Co-authored-by: Steven Allen <steven@stebalien.com>
* fix: add UpgradePhoenixHeight to StateGetNetworkParams (#11648)
* chore: deps: update to go-state-types v13.0.0-rc.1
* do NOT update the cache when running the real migration
* Merge pull request #11632 from hanabi1224/hm/drand-test
feat: drand quicknet: allow scheduling drand quicknet upgrade before nv22 on 2k devnet
* chore: deps: update to go-state-types v13.0.0-rc.2
chore: deps: update to go-state-types v13.0.0-rc.2
* feat: set migration config UpgradeEpoch for v13 actors upgrade
* Built-in actor events first draft
* itest for DDO non-market verified data w/ builtin actor events
* Tests for builtin actor events API
* Clean up DDO+Events tests, add lots of explainer comments
* Minor tweaks to events types
* Avoid duplicate messages when looking for receipts
* Rename internal events modules for clarity
* Adjust actor event API after review
* s/ActorEvents/Events/g in global config
* Manage event sending rate for SubscribeActorEvents
* Terminate SubscribeActorEvents chan when at max height
* Document future API changes
* More clarity in actor event API docs
* More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents
channel. We expect the user to have received the initial batch of historical
events (if any) in one block's time. For real-time events we expect them to
not fall behind by roughly one block's time.
* Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types
JSON marshalling tests.
* Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention
used across the repo.
* Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic
test execution order, making debugging potential issues easier. If
non-determinism is a target, leverage Go's built-in parallel testing
capabilities.
* Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to
get the actor events. This should reduce chances of failure in a case
where the original context may be expired/cancelled.
Refactor removal into a `defer` statement for a more readable, concise
return statement.
* Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This
makes up a more reproducible test suit.
* Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual
conditions, and remove the use of `time.Sleep`.
Remove duplicate code in utility functions that are already defined.
Refactor assertion helper functions to use consistent terminology:
"require" implies fatal error, whereas "assert" implies error where the
test may proceed executing.
* Update changelog for actor events APIs
* Fix concerns and docs identified by review
* Update actor bundle to v13.0.0-rc3
Update actor bundle to v13.0.0-rc3
* Prep Lotus v1.26.0-rc1
- For sanity reverting the mainnet upgrade epoch to 99999999, and then only set it when cutting the final release
-Update Calibnet CIDs to v13.0.0-rc3
- Add GetActorEvents, SubscribeActorEvents, GetAllClaims and GetAllAllocations methods to the changelog
Co-Authored-By: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Masih H. Derkani <m@derkani.org>
* Make gen
Make gen
* fix: beacon: validate drand change at nv16 correctly
* bump to v1.26.0-rc2
* test: cleanup ddo verified itest, extract steps to functions
also add allocation-removed event case
* test: extract verified DDO test to separate file, add more checks
* test: add additional actor events checks
* Add verification for "deal-activated" actor event
* docs(drand): document the meaning of "IsChained" (#11692)
* Resolve conflicts
I encountered multiple issues when trying to run make gen. And these changes fixed a couple of them:
- go mod tidy
- Remove RaftState/RaftLeader
- Revert `if ts.Height() > claim.TermMax+claim.TermStart || !cctx.IsSet("expired")` to the what is in the release/v1.26.0: `if tsHeight > val.TermMax || !expired`
* fixup imports, make jen
* Update version
Update version in master to v1.27.0-dev
* Update node/impl/full/dummy.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* Adjust ListClaimsCmd
Adjust ListClaimsCmd according to review
---------
Signed-off-by: samuelarogbonlo <sbayo971@gmail.com>
Co-authored-by: TippyFlits <james.bluett@protocol.ai>
Co-authored-by: Aayush <arajasek94@gmail.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Jennifer Wang <jiayingw703@gmail.com>
Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai>
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Samuel Arogbonlo <47984109+samuelarogbonlo@users.noreply.github.com>
Co-authored-by: LexLuthr <88259624+LexLuthr@users.noreply.github.com>
Co-authored-by: tom123222 <160735201+tom123222@users.noreply.github.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2024-03-12 09:33:58 +00:00
|
|
|
func (s *StorageMinerStub) SectorAddPieceToAny(p0 context.Context, p1 abi.UnpaddedPieceSize, p2 storiface.Data, p3 piece.PieceDealInfo) (SectorOffset, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(SectorOffset), ErrNotSupported
|
2021-05-19 11:05:07 +00:00
|
|
|
}
|
|
|
|
|
2021-06-01 09:56:19 +00:00
|
|
|
func (s *StorageMinerStruct) SectorCommitFlush(p0 context.Context) ([]sealiface.CommitBatchRes, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorCommitFlush == nil {
|
|
|
|
return *new([]sealiface.CommitBatchRes), ErrNotSupported
|
|
|
|
}
|
2021-03-10 15:16:44 +00:00
|
|
|
return s.Internal.SectorCommitFlush(p0)
|
|
|
|
}
|
|
|
|
|
2021-06-01 19:06:58 +00:00
|
|
|
func (s *StorageMinerStub) SectorCommitFlush(p0 context.Context) ([]sealiface.CommitBatchRes, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]sealiface.CommitBatchRes), ErrNotSupported
|
2021-05-27 10:27:47 +00:00
|
|
|
}
|
|
|
|
|
2021-03-10 15:16:44 +00:00
|
|
|
func (s *StorageMinerStruct) SectorCommitPending(p0 context.Context) ([]abi.SectorID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorCommitPending == nil {
|
|
|
|
return *new([]abi.SectorID), ErrNotSupported
|
|
|
|
}
|
2021-03-10 15:16:44 +00:00
|
|
|
return s.Internal.SectorCommitPending(p0)
|
|
|
|
}
|
|
|
|
|
2021-05-27 10:27:47 +00:00
|
|
|
func (s *StorageMinerStub) SectorCommitPending(p0 context.Context) ([]abi.SectorID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]abi.SectorID), ErrNotSupported
|
2021-05-27 10:27:47 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorGetExpectedSealDuration(p0 context.Context) (time.Duration, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorGetExpectedSealDuration == nil {
|
|
|
|
return *new(time.Duration), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorGetExpectedSealDuration(p0)
|
|
|
|
}
|
2020-05-04 19:29:26 +00:00
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorGetExpectedSealDuration(p0 context.Context) (time.Duration, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(time.Duration), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorGetSealDelay(p0 context.Context) (time.Duration, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorGetSealDelay == nil {
|
|
|
|
return *new(time.Duration), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorGetSealDelay(p0)
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorGetSealDelay(p0 context.Context) (time.Duration, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(time.Duration), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-12-08 17:11:19 +00:00
|
|
|
func (s *StorageMinerStruct) SectorMarkForUpgrade(p0 context.Context, p1 abi.SectorNumber, p2 bool) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorMarkForUpgrade == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-12-08 17:11:19 +00:00
|
|
|
return s.Internal.SectorMarkForUpgrade(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) SectorMarkForUpgrade(p0 context.Context, p1 abi.SectorNumber, p2 bool) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStruct) SectorMatchPendingPiecesToOpenSectors(p0 context.Context) error {
|
|
|
|
if s.Internal.SectorMatchPendingPiecesToOpenSectors == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.SectorMatchPendingPiecesToOpenSectors(p0)
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
|
|
|
|
2021-12-08 17:11:19 +00:00
|
|
|
func (s *StorageMinerStub) SectorMatchPendingPiecesToOpenSectors(p0 context.Context) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-08-18 14:37:22 +00:00
|
|
|
func (s *StorageMinerStruct) SectorNumAssignerMeta(p0 context.Context) (NumAssignerMeta, error) {
|
|
|
|
if s.Internal.SectorNumAssignerMeta == nil {
|
|
|
|
return *new(NumAssignerMeta), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.SectorNumAssignerMeta(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) SectorNumAssignerMeta(p0 context.Context) (NumAssignerMeta, error) {
|
|
|
|
return *new(NumAssignerMeta), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStruct) SectorNumFree(p0 context.Context, p1 string) error {
|
|
|
|
if s.Internal.SectorNumFree == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.SectorNumFree(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) SectorNumFree(p0 context.Context, p1 string) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStruct) SectorNumReservations(p0 context.Context) (map[string]bitfield.BitField, error) {
|
|
|
|
if s.Internal.SectorNumReservations == nil {
|
|
|
|
return *new(map[string]bitfield.BitField), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.SectorNumReservations(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) SectorNumReservations(p0 context.Context) (map[string]bitfield.BitField, error) {
|
|
|
|
return *new(map[string]bitfield.BitField), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStruct) SectorNumReserve(p0 context.Context, p1 string, p2 bitfield.BitField, p3 bool) error {
|
|
|
|
if s.Internal.SectorNumReserve == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.SectorNumReserve(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) SectorNumReserve(p0 context.Context, p1 string, p2 bitfield.BitField, p3 bool) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-08-24 15:25:37 +00:00
|
|
|
func (s *StorageMinerStruct) SectorNumReserveCount(p0 context.Context, p1 string, p2 uint64) (bitfield.BitField, error) {
|
|
|
|
if s.Internal.SectorNumReserveCount == nil {
|
|
|
|
return *new(bitfield.BitField), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.SectorNumReserveCount(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) SectorNumReserveCount(p0 context.Context, p1 string, p2 uint64) (bitfield.BitField, error) {
|
|
|
|
return *new(bitfield.BitField), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-06-01 12:35:30 +00:00
|
|
|
func (s *StorageMinerStruct) SectorPreCommitFlush(p0 context.Context) ([]sealiface.PreCommitBatchRes, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorPreCommitFlush == nil {
|
|
|
|
return *new([]sealiface.PreCommitBatchRes), ErrNotSupported
|
|
|
|
}
|
2021-05-18 14:51:06 +00:00
|
|
|
return s.Internal.SectorPreCommitFlush(p0)
|
|
|
|
}
|
|
|
|
|
2021-06-01 19:06:58 +00:00
|
|
|
func (s *StorageMinerStub) SectorPreCommitFlush(p0 context.Context) ([]sealiface.PreCommitBatchRes, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]sealiface.PreCommitBatchRes), ErrNotSupported
|
2021-05-27 10:27:47 +00:00
|
|
|
}
|
|
|
|
|
2021-05-18 14:51:06 +00:00
|
|
|
func (s *StorageMinerStruct) SectorPreCommitPending(p0 context.Context) ([]abi.SectorID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorPreCommitPending == nil {
|
|
|
|
return *new([]abi.SectorID), ErrNotSupported
|
|
|
|
}
|
2021-05-18 14:51:06 +00:00
|
|
|
return s.Internal.SectorPreCommitPending(p0)
|
|
|
|
}
|
|
|
|
|
2021-05-27 10:27:47 +00:00
|
|
|
func (s *StorageMinerStub) SectorPreCommitPending(p0 context.Context) ([]abi.SectorID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]abi.SectorID), ErrNotSupported
|
2021-05-27 10:27:47 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 19:27:27 +00:00
|
|
|
func (s *StorageMinerStruct) SectorReceive(p0 context.Context, p1 RemoteSectorMeta) error {
|
|
|
|
if s.Internal.SectorReceive == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.SectorReceive(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) SectorReceive(p0 context.Context, p1 RemoteSectorMeta) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorRemove(p0 context.Context, p1 abi.SectorNumber) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorRemove == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorRemove(p0, p1)
|
2020-03-11 05:49:17 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorRemove(p0 context.Context, p1 abi.SectorNumber) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorSetExpectedSealDuration(p0 context.Context, p1 time.Duration) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorSetExpectedSealDuration == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorSetExpectedSealDuration(p0, p1)
|
2020-03-20 22:30:17 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorSetExpectedSealDuration(p0 context.Context, p1 time.Duration) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorSetSealDelay(p0 context.Context, p1 time.Duration) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorSetSealDelay == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorSetSealDelay(p0, p1)
|
2020-08-14 14:06:53 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorSetSealDelay(p0 context.Context, p1 time.Duration) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorStartSealing(p0 context.Context, p1 abi.SectorNumber) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorStartSealing == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorStartSealing(p0, p1)
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorStartSealing(p0 context.Context, p1 abi.SectorNumber) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorTerminate(p0 context.Context, p1 abi.SectorNumber) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorTerminate == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorTerminate(p0, p1)
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorTerminate(p0 context.Context, p1 abi.SectorNumber) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorTerminateFlush(p0 context.Context) (*cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorTerminateFlush == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorTerminateFlush(p0)
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorTerminateFlush(p0 context.Context) (*cid.Cid, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorTerminatePending(p0 context.Context) ([]abi.SectorID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorTerminatePending == nil {
|
|
|
|
return *new([]abi.SectorID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorTerminatePending(p0)
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorTerminatePending(p0 context.Context) ([]abi.SectorID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]abi.SectorID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2023-04-17 16:12:15 +00:00
|
|
|
func (s *StorageMinerStruct) SectorUnseal(p0 context.Context, p1 abi.SectorNumber) error {
|
|
|
|
if s.Internal.SectorUnseal == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.SectorUnseal(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) SectorUnseal(p0 context.Context, p1 abi.SectorNumber) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) SectorsList(p0 context.Context) ([]abi.SectorNumber, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorsList == nil {
|
|
|
|
return *new([]abi.SectorNumber), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorsList(p0)
|
2020-06-22 17:03:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorsList(p0 context.Context) ([]abi.SectorNumber, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]abi.SectorNumber), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *StorageMinerStruct) SectorsListInStates(p0 context.Context, p1 []SectorState) ([]abi.SectorNumber, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorsListInStates == nil {
|
|
|
|
return *new([]abi.SectorNumber), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorsListInStates(p0, p1)
|
2020-06-22 17:03:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorsListInStates(p0 context.Context, p1 []SectorState) ([]abi.SectorNumber, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]abi.SectorNumber), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *StorageMinerStruct) SectorsRefs(p0 context.Context) (map[string][]SealedRef, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorsRefs == nil {
|
|
|
|
return *new(map[string][]SealedRef), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorsRefs(p0)
|
2020-03-11 01:57:52 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorsRefs(p0 context.Context) (map[string][]SealedRef, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[string][]SealedRef), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *StorageMinerStruct) SectorsStatus(p0 context.Context, p1 abi.SectorNumber, p2 bool) (SectorInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorsStatus == nil {
|
|
|
|
return *new(SectorInfo), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorsStatus(p0, p1, p2)
|
2020-06-04 13:54:54 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorsStatus(p0 context.Context, p1 abi.SectorNumber, p2 bool) (SectorInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(SectorInfo), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *StorageMinerStruct) SectorsSummary(p0 context.Context) (map[SectorState]int, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorsSummary == nil {
|
|
|
|
return *new(map[SectorState]int), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorsSummary(p0)
|
2020-08-30 18:28:58 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorsSummary(p0 context.Context) (map[SectorState]int, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[SectorState]int), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStruct) SectorsUnsealPiece(p0 context.Context, p1 storiface.SectorRef, p2 storiface.UnpaddedByteIndex, p3 abi.UnpaddedPieceSize, p4 abi.SealRandomness, p5 *cid.Cid) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorsUnsealPiece == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-05-19 11:05:07 +00:00
|
|
|
return s.Internal.SectorsUnsealPiece(p0, p1, p2, p3, p4, p5)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *StorageMinerStub) SectorsUnsealPiece(p0 context.Context, p1 storiface.SectorRef, p2 storiface.UnpaddedByteIndex, p3 abi.UnpaddedPieceSize, p4 abi.SealRandomness, p5 *cid.Cid) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-05-19 11:05:07 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *StorageMinerStruct) SectorsUpdate(p0 context.Context, p1 abi.SectorNumber, p2 SectorState) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SectorsUpdate == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SectorsUpdate(p0, p1, p2)
|
2020-05-26 08:20:32 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) SectorsUpdate(p0 context.Context, p1 abi.SectorNumber, p2 SectorState) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) StorageAddLocal(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageAddLocal == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageAddLocal(p0, p1)
|
2020-11-26 16:33:22 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) StorageAddLocal(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStruct) StorageAttach(p0 context.Context, p1 storiface.StorageInfo, p2 fsutil.FsStat) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageAttach == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageAttach(p0, p1, p2)
|
2020-11-26 16:33:22 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStub) StorageAttach(p0 context.Context, p1 storiface.StorageInfo, p2 fsutil.FsStat) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-07-06 20:15:16 +00:00
|
|
|
func (s *StorageMinerStruct) StorageAuthVerify(p0 context.Context, p1 string) ([]auth.Permission, error) {
|
|
|
|
if s.Internal.StorageAuthVerify == nil {
|
|
|
|
return *new([]auth.Permission), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StorageAuthVerify(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) StorageAuthVerify(p0 context.Context, p1 string) ([]auth.Permission, error) {
|
|
|
|
return *new([]auth.Permission), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2024-04-01 18:19:00 +00:00
|
|
|
func (s *StorageMinerStruct) StorageBestAlloc(p0 context.Context, p1 storiface.SectorFileType, p2 abi.SectorSize, p3 storiface.PathType, p4 abi.ActorID) ([]storiface.StorageInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageBestAlloc == nil {
|
2022-01-18 10:57:04 +00:00
|
|
|
return *new([]storiface.StorageInfo), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2024-04-01 18:19:00 +00:00
|
|
|
return s.Internal.StorageBestAlloc(p0, p1, p2, p3, p4)
|
2020-05-26 08:20:32 +00:00
|
|
|
}
|
|
|
|
|
2024-04-01 18:19:00 +00:00
|
|
|
func (s *StorageMinerStub) StorageBestAlloc(p0 context.Context, p1 storiface.SectorFileType, p2 abi.SectorSize, p3 storiface.PathType, p4 abi.ActorID) ([]storiface.StorageInfo, error) {
|
2022-01-18 10:57:04 +00:00
|
|
|
return *new([]storiface.StorageInfo), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStruct) StorageDeclareSector(p0 context.Context, p1 storiface.ID, p2 abi.SectorID, p3 storiface.SectorFileType, p4 bool) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageDeclareSector == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageDeclareSector(p0, p1, p2, p3, p4)
|
2020-04-28 10:57:24 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStub) StorageDeclareSector(p0 context.Context, p1 storiface.ID, p2 abi.SectorID, p3 storiface.SectorFileType, p4 bool) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-07-14 13:18:21 +00:00
|
|
|
func (s *StorageMinerStruct) StorageDetach(p0 context.Context, p1 storiface.ID, p2 string) error {
|
|
|
|
if s.Internal.StorageDetach == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StorageDetach(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) StorageDetach(p0 context.Context, p1 storiface.ID, p2 string) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-07-15 10:44:05 +00:00
|
|
|
func (s *StorageMinerStruct) StorageDetachLocal(p0 context.Context, p1 string) error {
|
|
|
|
if s.Internal.StorageDetachLocal == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StorageDetachLocal(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) StorageDetachLocal(p0 context.Context, p1 string) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStruct) StorageDropSector(p0 context.Context, p1 storiface.ID, p2 abi.SectorID, p3 storiface.SectorFileType) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageDropSector == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageDropSector(p0, p1, p2, p3)
|
2020-10-27 16:28:44 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStub) StorageDropSector(p0 context.Context, p1 storiface.ID, p2 abi.SectorID, p3 storiface.SectorFileType) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStruct) StorageFindSector(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 abi.SectorSize, p4 bool) ([]storiface.SectorStorageInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageFindSector == nil {
|
2022-01-18 10:57:04 +00:00
|
|
|
return *new([]storiface.SectorStorageInfo), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageFindSector(p0, p1, p2, p3, p4)
|
2020-10-27 16:28:44 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStub) StorageFindSector(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 abi.SectorSize, p4 bool) ([]storiface.SectorStorageInfo, error) {
|
|
|
|
return *new([]storiface.SectorStorageInfo), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-12-03 11:33:23 +00:00
|
|
|
func (s *StorageMinerStruct) StorageGetLocks(p0 context.Context) (storiface.SectorLocks, error) {
|
|
|
|
if s.Internal.StorageGetLocks == nil {
|
|
|
|
return *new(storiface.SectorLocks), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StorageGetLocks(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) StorageGetLocks(p0 context.Context) (storiface.SectorLocks, error) {
|
|
|
|
return *new(storiface.SectorLocks), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStruct) StorageInfo(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageInfo == nil {
|
2022-01-18 10:57:04 +00:00
|
|
|
return *new(storiface.StorageInfo), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageInfo(p0, p1)
|
2020-10-27 16:28:44 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStub) StorageInfo(p0 context.Context, p1 storiface.ID) (storiface.StorageInfo, error) {
|
|
|
|
return *new(storiface.StorageInfo), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStruct) StorageList(p0 context.Context) (map[storiface.ID][]storiface.Decl, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageList == nil {
|
2022-01-18 10:57:04 +00:00
|
|
|
return *new(map[storiface.ID][]storiface.Decl), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageList(p0)
|
2020-10-27 16:28:44 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStub) StorageList(p0 context.Context) (map[storiface.ID][]storiface.Decl, error) {
|
|
|
|
return *new(map[storiface.ID][]storiface.Decl), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStruct) StorageLocal(p0 context.Context) (map[storiface.ID]string, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageLocal == nil {
|
2022-01-18 10:57:04 +00:00
|
|
|
return *new(map[storiface.ID]string), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageLocal(p0)
|
2020-05-01 18:15:06 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStub) StorageLocal(p0 context.Context) (map[storiface.ID]string, error) {
|
|
|
|
return *new(map[storiface.ID]string), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) StorageLock(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 storiface.SectorFileType) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageLock == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageLock(p0, p1, p2, p3)
|
OpenRPC Support (#5843)
* main: init implement rpc.Discover RPC method
This implement the basic functionality for the method
over HTTP RPC.
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init example with go-openrpc-reflect lib
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* main: make variable name human-friendly
Signed-off-by: meows <b5c6@protonmail.com>
* main,go.mod,go.sum: init impl of go-openrp-reflect printing document
Signed-off-by: meows <b5c6@protonmail.com>
Conflicts:
go.mod
go.sum
* go.mod,go.sum: use go-openrpc-reflect and open-rpc/meta-schema hackforks
This is for development only.
Versions need to be bumped when they're ready for use
as canonical remotes.
Signed-off-by: meows <b5c6@protonmail.com>
* main,openrpc,main: refactor openrpc supporting code to own package
This eliminates code duplication.
Signed-off-by: meows <b5c6@protonmail.com>
* main: add rpc.Discover to openrpc document
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: fix rpc.discover method name casing
Also fixes casing stuff for the rest of Filecoin.
methods.
Signed-off-by: meows <b5c6@protonmail.com>
* Revert "main: add rpc.Discover to openrpc document"
This reverts commit 116898efb10f33e405ac74acb1aa6daefcd46a62.
* main: fix document creation method name
This fixes an issue caused with the latest reverting
commit.
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen,openrpc: refactor to share api parsing, etc as docgen exported stuff
Signed-off-by: meows <b5c6@protonmail.com>
Makefile: fix docgen refactoring for makefile use of command
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: add schema.examples to app reflector
There are quite of few of these already registered
for the docgen command, so it makes sense to use
those!
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init method pairing examples
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump go.mod to use latest meta-schema and openrpc-reflect versions
Signed-off-by: meows <b5c6@protonmail.com>
* openrpc: init SchemaType mapper function
This function will handle the manual configurations
for app-specific data types w/r/t their json schema
representation.
This is useful for cases where the reflect library
is unable to provide a sufficient representation
automatically.
Provided in this commit is an initial implementation
for the integerD type (assuming number are represented
in the API as hexs), and a commonly used cid.Cid type.
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: tame dependencies by bumping etclabscore/go-openrpc-reflect
This removes a problematic dependency
on github.com/ethereum/go-ethereum, which was
imported as a dependency for a couple github.com/etclabscore/go-openrpc-reflect
tests.
etclabscore/go-openrpc-reflect v0.0.36 has removed this
dependency, so this commit is the result of bumping
that version and then running 'go mod tidy'
This is in response to a review at
https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
Date: 2020-11-21 06:52:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: add 'miner' arg to openrpc gen cmd
This allows the command to EITHER
generate the doc for Full or Miner APIs.
See comment for usage.
Date: 2020-11-21 07:48:05-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen: add missing examples for Miner API
Generating the Miner API OpenRPC doc
(via 'go run ./api/openrpc/cmd miner') caused
the example logic to panic because some types
were missing.
This commit adds those missing types, although
I'm not an expert in the API so I can't
suggest that the example values provided are
ideal or well representative.
Date: 2020-11-21 07:50:21-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json,build/openrpc/miner.json: add build/openrpc/[full/miner].json docs
These will be used as static documents
provided by the rpc.discover method.
Date: 2020-11-21 07:51:39-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: init go-rice openrpc static assets
Date: 2020-11-21 08:23:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: remove rpc.discover implementation from runtime plugin
Instead of generating the doc on the fly,
we're going to serve a static asset.
Rel https://github.com/filecoin-project/lotus/pull/4711#pullrequestreview-535686205
This removes the runtime implementation from the
RPC server construction.
Date: 2020-11-21 08:41:20-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,common: add Discover(ctx) method to CommonAPI interface and structs
Date: 2020-11-21 08:41:56-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main: use rpc server method aliasing for rpc.discover
This depends on a currently-forked change at
filecoin-project/go-jsonrpc 8350f9463ee451b187d35c492e32f1b999e80210
which establishes this new method RPCServer.AliasMethod.
This solves the problem that the OpenRPC
spec says that the document should be served
at the system extension-prefixed endpoing
rpc.discover (not Filecoin.Discover).
In fact, the document will be available at BOTH
endpoints, but that duplicity is harmless.
Date: 2020-11-21 09:18:26-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,build,common: rpc.discover: return json object instead of string
Instead of casting the JSON asset from bytes to string,
unmarshal it to a map[string]interface{} so the
server will provide it as a JSON object.
Date: 2020-11-21 09:27:11-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile: merge resolve: docsgen command path
Date: 2020-11-22 07:19:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,main,docgen,openrpc: merge resolve: fix func exporteds, signatures
Date: 2020-11-22 07:31:03-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: 'get get' auto-bumps version
Date: 2020-11-22 07:31:44-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,docgen,main,build/openrpc: refactor openrpc documentation generation
This creates Makefile command docsgen-openrpc-json,
and refactors the docsgen command to generate both
the markdown and openrpc json documents, redirecting
the output of the openrpc json documentation to
the build/openrpc/ directory, where those json
files will be compiled as static assets via go-rice
boxes.
The api/openrpc/cmd now uses usage argumentation
congruent to that of the docgen command (switching
on API context).
Date: 2020-11-22 08:01:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc: rename api/openrpc -> api/docgen-openrpc
Renames the package as well.
This is intended to parallel the
existing docgen package and command
namespacing.
Date: 2020-11-22 10:34:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api,apistruct,docgen,build,build/openrpc: use typed Discover response
Instead of using a map[string]interface{}, use
a typed response for the Discover method implementation.
This avoids having to set a docgen Example for
the generic map[string]interface{} (as an openrpc document)
which both pollutes the generic type and lacks
useful information for the Discover method example.
Date: 2020-11-22 08:31:16-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* apistruct,build,main,impl: implement Discover method for Worker and StorageMiner APIs
Methods return static compiled assets respective
to the APIs.
Date: 2020-11-22 08:57:18-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgen_openrpc,build/openrpc: remove timestamping from openrpc doc info
This should allow openrpc docs generated at different
times to be equal. This is important because the CI
(Circle) runs the docgen command and tests that
the output and the source are unchanged (via git diff).
Date: 2020-11-22 10:47:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* main,docgen_openrpc,main,build: fix lint issues
Fixes goimports, staticcheck, golint issues.
Date: 2020-11-22 11:06:46-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: fix: don't use an underscore in package name (golint)
Date: 2020-11-22 11:07:53-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: fix: mod-tidy-check (run 'go mod tidy')
Date: 2020-11-22 11:09:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc dep to latest
This version includes the necessary RPCServer.AliasMethod
method.
Date: 2020-11-23 12:16:15-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* Makefile,main,build,build/openrpc: init gzipped openrpc static docs
Date: 2020-11-24 06:15:06-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: refactor gzip reading
Date: 2020-11-24 06:18:34-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: add basic test for openrpc doc from static assets
Date: 2020-11-24 06:30:23-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build: handle reader Close error
This keeps the errcheck linter happy.
Date: 2020-11-24 06:33:14-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.sum: run 'go mod tidy'
Date: 2020-11-24 06:36:07-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: go mod tidy
Tidying up after resolving the merge conflicts
with master at go.mod
Date: 2020-11-24 06:40:45-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* go.mod,go.sum: bump filecoin-project/go-jsonrpc to latest
This is a repeat of 76e6fd2, since the latest merge
to master seems to have reverted this.
Date: 2020-11-24 06:42:30-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc,build/openrpc: remove method example pairings, improve schema examples
Removing method example pairings since they were
redundant to schema examples and were not
implemented well.
Improved schema examples by using the ExampleValue
method instead of the map lookup.
Made a note in the comment here that this is
not ideal, since we have to make a shortcut assumption
/workaround by using 'unknown' as the method name
and the typea as its own parent.
Luckily these values aren't heavily used by the
method logic.
Date: 2020-11-27 12:57:36-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* docgenopenrpc: use generic number jsonschema for number types
Previously used an integer schema assuming
hex encoding. It appears, based on review some
of the examples, that this may not be the case.
Obvioussly this schema could be more descriptive,
but just shooting for mostly likely to be
not wrong at this point.
Date: 2020-12-15 14:44:37-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* cmd/lotus,go.mod,go.sum: maybe fix straggling merge resolution conflicts
Date: 2021-01-19 12:30:42-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* build/openrpc/full.json.gz,build/openrpc/miner.json.gz,build/openrpc/worker.json.gz: run 'make docsgen'
Date: 2021-01-19 12:33:55-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/apistruct,node/impl: (lint) gofmt
Date: 2021-01-19 12:39:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: maybe fix parse error: open ./api: no such file or directory
Date: 2021-01-19 12:52:04-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen,build/openrpc: maybe fix no such file error and run 'make docsgen'
Date: 2021-01-19 12:55:52-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api/docgen: return if AST comment/groupdoc parsing encounters any error
This will returns empty comments/docs maps.
This should fix issues like:
https://app.circleci.com/pipelines/github/filecoin-project/lotus/12445/workflows/4ebadce9-a298-4ad1-939b-f19ef4c0a5bf/jobs/107218
where the environment makes file lookups hard or
impossible.
Date: 2021-01-19 13:04:58-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* api: Don't depend on build/
* make: support parallel docsgen
* openrpc gen: Use simple build version
* methodgen
* goimports
Co-authored-by: meows <b5c6@protonmail.com>
2021-03-19 18:22:46 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) StorageLock(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 storiface.SectorFileType) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-07-15 10:44:05 +00:00
|
|
|
func (s *StorageMinerStruct) StorageRedeclareLocal(p0 context.Context, p1 *storiface.ID, p2 bool) error {
|
|
|
|
if s.Internal.StorageRedeclareLocal == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StorageRedeclareLocal(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StorageMinerStub) StorageRedeclareLocal(p0 context.Context, p1 *storiface.ID, p2 bool) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStruct) StorageReportHealth(p0 context.Context, p1 storiface.ID, p2 storiface.HealthReport) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageReportHealth == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageReportHealth(p0, p1, p2)
|
2020-10-15 10:15:21 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStub) StorageReportHealth(p0 context.Context, p1 storiface.ID, p2 storiface.HealthReport) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStruct) StorageStat(p0 context.Context, p1 storiface.ID) (fsutil.FsStat, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageStat == nil {
|
|
|
|
return *new(fsutil.FsStat), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageStat(p0, p1)
|
2020-09-29 15:25:45 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *StorageMinerStub) StorageStat(p0 context.Context, p1 storiface.ID) (fsutil.FsStat, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(fsutil.FsStat), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) StorageTryLock(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 storiface.SectorFileType) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageTryLock == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageTryLock(p0, p1, p2, p3)
|
2020-09-29 15:25:45 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) StorageTryLock(p0 context.Context, p1 abi.SectorID, p2 storiface.SectorFileType, p3 storiface.SectorFileType) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) WorkerConnect(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WorkerConnect == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WorkerConnect(p0, p1)
|
2020-10-02 14:14:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) WorkerConnect(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) WorkerJobs(p0 context.Context) (map[uuid.UUID][]storiface.WorkerJob, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WorkerJobs == nil {
|
|
|
|
return *new(map[uuid.UUID][]storiface.WorkerJob), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WorkerJobs(p0)
|
2020-10-09 11:41:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) WorkerJobs(p0 context.Context) (map[uuid.UUID][]storiface.WorkerJob, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[uuid.UUID][]storiface.WorkerJob), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *StorageMinerStruct) WorkerStats(p0 context.Context) (map[uuid.UUID]storiface.WorkerStats, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WorkerStats == nil {
|
|
|
|
return *new(map[uuid.UUID]storiface.WorkerStats), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WorkerStats(p0)
|
2020-10-09 11:41:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *StorageMinerStub) WorkerStats(p0 context.Context) (map[uuid.UUID]storiface.WorkerStats, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[uuid.UUID]storiface.WorkerStats), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WalletStruct) WalletDelete(p0 context.Context, p1 address.Address) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletDelete == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletDelete(p0, p1)
|
2020-10-09 11:41:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WalletStub) WalletDelete(p0 context.Context, p1 address.Address) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WalletStruct) WalletExport(p0 context.Context, p1 address.Address) (*types.KeyInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletExport == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletExport(p0, p1)
|
2020-10-15 10:15:21 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WalletStub) WalletExport(p0 context.Context, p1 address.Address) (*types.KeyInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WalletStruct) WalletHas(p0 context.Context, p1 address.Address) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletHas == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletHas(p0, p1)
|
2020-10-05 15:09:21 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WalletStub) WalletHas(p0 context.Context, p1 address.Address) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WalletStruct) WalletImport(p0 context.Context, p1 *types.KeyInfo) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletImport == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletImport(p0, p1)
|
2020-09-29 15:25:45 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WalletStub) WalletImport(p0 context.Context, p1 *types.KeyInfo) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WalletStruct) WalletList(p0 context.Context) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletList == nil {
|
|
|
|
return *new([]address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletList(p0)
|
2020-10-07 16:14:12 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WalletStub) WalletList(p0 context.Context) ([]address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new([]address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WalletStruct) WalletNew(p0 context.Context, p1 types.KeyType) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletNew == nil {
|
|
|
|
return *new(address.Address), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletNew(p0, p1)
|
2020-10-07 16:14:12 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WalletStub) WalletNew(p0 context.Context, p1 types.KeyType) (address.Address, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(address.Address), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *WalletStruct) WalletSign(p0 context.Context, p1 address.Address, p2 []byte, p3 MsgMeta) (*crypto.Signature, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WalletSign == nil {
|
|
|
|
return nil, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WalletSign(p0, p1, p2, p3)
|
2021-02-04 04:46:10 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WalletStub) WalletSign(p0 context.Context, p1 address.Address, p2 []byte, p3 MsgMeta) (*crypto.Signature, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return nil, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) AddPiece(p0 context.Context, p1 storiface.SectorRef, p2 []abi.UnpaddedPieceSize, p3 abi.UnpaddedPieceSize, p4 storiface.Data) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.AddPiece == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.AddPiece(p0, p1, p2, p3, p4)
|
2020-09-29 15:25:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) AddPiece(p0 context.Context, p1 storiface.SectorRef, p2 []abi.UnpaddedPieceSize, p3 abi.UnpaddedPieceSize, p4 storiface.Data) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) DataCid(p0 context.Context, p1 abi.UnpaddedPieceSize, p2 storiface.Data) (storiface.CallID, error) {
|
2022-04-26 16:22:52 +00:00
|
|
|
if s.Internal.DataCid == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.DataCid(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) DataCid(p0 context.Context, p1 abi.UnpaddedPieceSize, p2 storiface.Data) (storiface.CallID, error) {
|
2022-04-26 16:22:52 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-09-16 21:45:23 +00:00
|
|
|
func (s *WorkerStruct) DownloadSectorData(p0 context.Context, p1 storiface.SectorRef, p2 bool, p3 map[storiface.SectorFileType]storiface.SectorLocation) (storiface.CallID, error) {
|
2022-08-31 11:56:25 +00:00
|
|
|
if s.Internal.DownloadSectorData == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.DownloadSectorData(p0, p1, p2, p3)
|
|
|
|
}
|
|
|
|
|
2022-09-16 21:45:23 +00:00
|
|
|
func (s *WorkerStub) DownloadSectorData(p0 context.Context, p1 storiface.SectorRef, p2 bool, p3 map[storiface.SectorFileType]storiface.SectorLocation) (storiface.CallID, error) {
|
2022-08-31 11:56:25 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) Enabled(p0 context.Context) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Enabled == nil {
|
|
|
|
return false, ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Enabled(p0)
|
2020-10-09 11:41:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) Enabled(p0 context.Context) (bool, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return false, ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) Fetch(p0 context.Context, p1 storiface.SectorRef, p2 storiface.SectorFileType, p3 storiface.PathType, p4 storiface.AcquireMode) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Fetch == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Fetch(p0, p1, p2, p3, p4)
|
2020-09-30 14:36:16 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) Fetch(p0 context.Context, p1 storiface.SectorRef, p2 storiface.SectorFileType, p3 storiface.PathType, p4 storiface.AcquireMode) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-11-16 16:07:42 +00:00
|
|
|
func (s *WorkerStruct) FinalizeReplicaUpdate(p0 context.Context, p1 storiface.SectorRef) (storiface.CallID, error) {
|
2022-02-02 20:23:35 +00:00
|
|
|
if s.Internal.FinalizeReplicaUpdate == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2022-11-16 16:07:42 +00:00
|
|
|
return s.Internal.FinalizeReplicaUpdate(p0, p1)
|
2022-02-02 20:23:35 +00:00
|
|
|
}
|
|
|
|
|
2022-11-16 16:07:42 +00:00
|
|
|
func (s *WorkerStub) FinalizeReplicaUpdate(p0 context.Context, p1 storiface.SectorRef) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-11-16 16:07:42 +00:00
|
|
|
func (s *WorkerStruct) FinalizeSector(p0 context.Context, p1 storiface.SectorRef) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.FinalizeSector == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2022-11-16 16:07:42 +00:00
|
|
|
return s.Internal.FinalizeSector(p0, p1)
|
2020-10-09 11:41:09 +00:00
|
|
|
}
|
|
|
|
|
2022-11-16 16:07:42 +00:00
|
|
|
func (s *WorkerStub) FinalizeSector(p0 context.Context, p1 storiface.SectorRef) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) GenerateSectorKeyFromData(p0 context.Context, p1 storiface.SectorRef, p2 cid.Cid) (storiface.CallID, error) {
|
2021-12-01 19:01:55 +00:00
|
|
|
if s.Internal.GenerateSectorKeyFromData == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.GenerateSectorKeyFromData(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) GenerateSectorKeyFromData(p0 context.Context, p1 storiface.SectorRef, p2 cid.Cid) (storiface.CallID, error) {
|
2021-12-01 19:01:55 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-01-14 13:11:04 +00:00
|
|
|
func (s *WorkerStruct) GenerateWindowPoSt(p0 context.Context, p1 abi.RegisteredPoStProof, p2 abi.ActorID, p3 []storiface.PostSectorChallenge, p4 int, p5 abi.PoStRandomness) (storiface.WindowPoStResult, error) {
|
2021-07-27 03:15:53 +00:00
|
|
|
if s.Internal.GenerateWindowPoSt == nil {
|
2022-01-14 13:11:04 +00:00
|
|
|
return *new(storiface.WindowPoStResult), ErrNotSupported
|
2021-07-27 03:15:53 +00:00
|
|
|
}
|
2022-01-14 13:11:04 +00:00
|
|
|
return s.Internal.GenerateWindowPoSt(p0, p1, p2, p3, p4, p5)
|
2021-07-27 03:15:53 +00:00
|
|
|
}
|
|
|
|
|
2022-01-14 13:11:04 +00:00
|
|
|
func (s *WorkerStub) GenerateWindowPoSt(p0 context.Context, p1 abi.RegisteredPoStProof, p2 abi.ActorID, p3 []storiface.PostSectorChallenge, p4 int, p5 abi.PoStRandomness) (storiface.WindowPoStResult, error) {
|
|
|
|
return *new(storiface.WindowPoStResult), ErrNotSupported
|
2021-07-27 03:15:53 +00:00
|
|
|
}
|
|
|
|
|
2022-01-14 13:11:04 +00:00
|
|
|
func (s *WorkerStruct) GenerateWinningPoSt(p0 context.Context, p1 abi.RegisteredPoStProof, p2 abi.ActorID, p3 []storiface.PostSectorChallenge, p4 abi.PoStRandomness) ([]proof.PoStProof, error) {
|
2021-07-27 03:15:53 +00:00
|
|
|
if s.Internal.GenerateWinningPoSt == nil {
|
|
|
|
return *new([]proof.PoStProof), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.GenerateWinningPoSt(p0, p1, p2, p3, p4)
|
|
|
|
}
|
|
|
|
|
2022-01-14 13:11:04 +00:00
|
|
|
func (s *WorkerStub) GenerateWinningPoSt(p0 context.Context, p1 abi.RegisteredPoStProof, p2 abi.ActorID, p3 []storiface.PostSectorChallenge, p4 abi.PoStRandomness) ([]proof.PoStProof, error) {
|
2021-07-27 03:15:53 +00:00
|
|
|
return *new([]proof.PoStProof), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) Info(p0 context.Context) (storiface.WorkerInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Info == nil {
|
|
|
|
return *new(storiface.WorkerInfo), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Info(p0)
|
2020-09-30 14:36:16 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) Info(p0 context.Context) (storiface.WorkerInfo, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.WorkerInfo), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) MoveStorage(p0 context.Context, p1 storiface.SectorRef, p2 storiface.SectorFileType) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.MoveStorage == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.MoveStorage(p0, p1, p2)
|
2020-10-09 11:41:09 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) MoveStorage(p0 context.Context, p1 storiface.SectorRef, p2 storiface.SectorFileType) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *WorkerStruct) Paths(p0 context.Context) ([]storiface.StoragePath, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Paths == nil {
|
2022-01-18 10:57:04 +00:00
|
|
|
return *new([]storiface.StoragePath), ErrNotSupported
|
2021-07-23 23:16:42 +00:00
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Paths(p0)
|
2020-10-09 11:41:09 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 10:57:04 +00:00
|
|
|
func (s *WorkerStub) Paths(p0 context.Context) ([]storiface.StoragePath, error) {
|
|
|
|
return *new([]storiface.StoragePath), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) ProcessSession(p0 context.Context) (uuid.UUID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ProcessSession == nil {
|
|
|
|
return *new(uuid.UUID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ProcessSession(p0)
|
2020-10-09 11:41:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) ProcessSession(p0 context.Context) (uuid.UUID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(uuid.UUID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) ProveReplicaUpdate1(p0 context.Context, p1 storiface.SectorRef, p2 cid.Cid, p3 cid.Cid, p4 cid.Cid) (storiface.CallID, error) {
|
2021-11-10 18:53:00 +00:00
|
|
|
if s.Internal.ProveReplicaUpdate1 == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ProveReplicaUpdate1(p0, p1, p2, p3, p4)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) ProveReplicaUpdate1(p0 context.Context, p1 storiface.SectorRef, p2 cid.Cid, p3 cid.Cid, p4 cid.Cid) (storiface.CallID, error) {
|
2021-11-10 18:53:00 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) ProveReplicaUpdate2(p0 context.Context, p1 storiface.SectorRef, p2 cid.Cid, p3 cid.Cid, p4 cid.Cid, p5 storiface.ReplicaVanillaProofs) (storiface.CallID, error) {
|
2021-11-10 18:53:00 +00:00
|
|
|
if s.Internal.ProveReplicaUpdate2 == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ProveReplicaUpdate2(p0, p1, p2, p3, p4, p5)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) ProveReplicaUpdate2(p0 context.Context, p1 storiface.SectorRef, p2 cid.Cid, p3 cid.Cid, p4 cid.Cid, p5 storiface.ReplicaVanillaProofs) (storiface.CallID, error) {
|
2021-11-10 18:53:00 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) ReleaseUnsealed(p0 context.Context, p1 storiface.SectorRef, p2 []storiface.Range) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.ReleaseUnsealed == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.ReleaseUnsealed(p0, p1, p2)
|
2020-10-23 14:51:27 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) ReleaseUnsealed(p0 context.Context, p1 storiface.SectorRef, p2 []storiface.Range) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) Remove(p0 context.Context, p1 abi.SectorID) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Remove == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Remove(p0, p1)
|
2020-10-23 14:51:27 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) Remove(p0 context.Context, p1 abi.SectorID) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) ReplicaUpdate(p0 context.Context, p1 storiface.SectorRef, p2 []abi.PieceInfo) (storiface.CallID, error) {
|
2021-11-10 18:53:00 +00:00
|
|
|
if s.Internal.ReplicaUpdate == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.ReplicaUpdate(p0, p1, p2)
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) ReplicaUpdate(p0 context.Context, p1 storiface.SectorRef, p2 []abi.PieceInfo) (storiface.CallID, error) {
|
2021-11-10 18:53:00 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) SealCommit1(p0 context.Context, p1 storiface.SectorRef, p2 abi.SealRandomness, p3 abi.InteractiveSealRandomness, p4 []abi.PieceInfo, p5 storiface.SectorCids) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SealCommit1 == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SealCommit1(p0, p1, p2, p3, p4, p5)
|
2020-10-09 11:41:09 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) SealCommit1(p0 context.Context, p1 storiface.SectorRef, p2 abi.SealRandomness, p3 abi.InteractiveSealRandomness, p4 []abi.PieceInfo, p5 storiface.SectorCids) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) SealCommit2(p0 context.Context, p1 storiface.SectorRef, p2 storiface.Commit1Out) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SealCommit2 == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SealCommit2(p0, p1, p2)
|
2021-01-19 10:19:31 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) SealCommit2(p0 context.Context, p1 storiface.SectorRef, p2 storiface.Commit1Out) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) SealPreCommit1(p0 context.Context, p1 storiface.SectorRef, p2 abi.SealRandomness, p3 []abi.PieceInfo) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SealPreCommit1 == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SealPreCommit1(p0, p1, p2, p3)
|
2020-11-20 16:30:17 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) SealPreCommit1(p0 context.Context, p1 storiface.SectorRef, p2 abi.SealRandomness, p3 []abi.PieceInfo) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) SealPreCommit2(p0 context.Context, p1 storiface.SectorRef, p2 storiface.PreCommit1Out) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SealPreCommit2 == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SealPreCommit2(p0, p1, p2)
|
2020-10-20 15:08:25 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) SealPreCommit2(p0 context.Context, p1 storiface.SectorRef, p2 storiface.PreCommit1Out) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) Session(p0 context.Context) (uuid.UUID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Session == nil {
|
|
|
|
return *new(uuid.UUID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Session(p0)
|
2020-10-02 14:14:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) Session(p0 context.Context) (uuid.UUID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(uuid.UUID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) SetEnabled(p0 context.Context, p1 bool) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.SetEnabled == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.SetEnabled(p0, p1)
|
2021-02-03 23:24:25 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) SetEnabled(p0 context.Context, p1 bool) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-07-29 22:33:30 +00:00
|
|
|
func (s *WorkerStruct) Shutdown(p0 context.Context) error {
|
|
|
|
if s.Internal.Shutdown == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.Shutdown(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *WorkerStub) Shutdown(p0 context.Context) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) StorageAddLocal(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.StorageAddLocal == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.StorageAddLocal(p0, p1)
|
2020-09-05 19:36:32 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) StorageAddLocal(p0 context.Context, p1 string) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-08-10 21:06:01 +00:00
|
|
|
func (s *WorkerStruct) StorageDetachAll(p0 context.Context) error {
|
|
|
|
if s.Internal.StorageDetachAll == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StorageDetachAll(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *WorkerStub) StorageDetachAll(p0 context.Context) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-07-13 18:09:21 +00:00
|
|
|
func (s *WorkerStruct) StorageDetachLocal(p0 context.Context, p1 string) error {
|
|
|
|
if s.Internal.StorageDetachLocal == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StorageDetachLocal(p0, p1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *WorkerStub) StorageDetachLocal(p0 context.Context, p1 string) error {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-07-15 14:09:13 +00:00
|
|
|
func (s *WorkerStruct) StorageLocal(p0 context.Context) (map[storiface.ID]string, error) {
|
|
|
|
if s.Internal.StorageLocal == nil {
|
|
|
|
return *new(map[storiface.ID]string), ErrNotSupported
|
|
|
|
}
|
|
|
|
return s.Internal.StorageLocal(p0)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *WorkerStub) StorageLocal(p0 context.Context) (map[storiface.ID]string, error) {
|
|
|
|
return *new(map[storiface.ID]string), ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2022-07-15 10:44:05 +00:00
|
|
|
func (s *WorkerStruct) StorageRedeclareLocal(p0 context.Context, p1 *storiface.ID, p2 bool) error {
|
2022-07-13 18:09:21 +00:00
|
|
|
if s.Internal.StorageRedeclareLocal == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2022-07-15 09:40:03 +00:00
|
|
|
return s.Internal.StorageRedeclareLocal(p0, p1, p2)
|
2022-07-13 18:09:21 +00:00
|
|
|
}
|
|
|
|
|
2022-07-15 10:44:05 +00:00
|
|
|
func (s *WorkerStub) StorageRedeclareLocal(p0 context.Context, p1 *storiface.ID, p2 bool) error {
|
2022-07-13 18:09:21 +00:00
|
|
|
return ErrNotSupported
|
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) TaskDisable(p0 context.Context, p1 sealtasks.TaskType) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.TaskDisable == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.TaskDisable(p0, p1)
|
2020-09-05 19:36:32 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) TaskDisable(p0 context.Context, p1 sealtasks.TaskType) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) TaskEnable(p0 context.Context, p1 sealtasks.TaskType) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.TaskEnable == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.TaskEnable(p0, p1)
|
2020-09-05 19:36:32 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) TaskEnable(p0 context.Context, p1 sealtasks.TaskType) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) TaskTypes(p0 context.Context) (map[sealtasks.TaskType]struct{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.TaskTypes == nil {
|
|
|
|
return *new(map[sealtasks.TaskType]struct{}), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.TaskTypes(p0)
|
2020-09-05 19:36:32 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) TaskTypes(p0 context.Context) (map[sealtasks.TaskType]struct{}, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(map[sealtasks.TaskType]struct{}), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStruct) UnsealPiece(p0 context.Context, p1 storiface.SectorRef, p2 storiface.UnpaddedByteIndex, p3 abi.UnpaddedPieceSize, p4 abi.SealRandomness, p5 cid.Cid) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.UnsealPiece == nil {
|
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.UnsealPiece(p0, p1, p2, p3, p4, p5)
|
2020-09-05 19:36:32 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 11:31:05 +00:00
|
|
|
func (s *WorkerStub) UnsealPiece(p0 context.Context, p1 storiface.SectorRef, p2 storiface.UnpaddedByteIndex, p3 abi.UnpaddedPieceSize, p4 abi.SealRandomness, p5 cid.Cid) (storiface.CallID, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(storiface.CallID), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-25 14:09:50 +00:00
|
|
|
func (s *WorkerStruct) Version(p0 context.Context) (Version, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.Version == nil {
|
|
|
|
return *new(Version), ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.Version(p0)
|
2020-09-05 19:36:32 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) Version(p0 context.Context) (Version, error) {
|
2021-07-23 23:16:42 +00:00
|
|
|
return *new(Version), ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 12:42:56 +00:00
|
|
|
func (s *WorkerStruct) WaitQuiet(p0 context.Context) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
if s.Internal.WaitQuiet == nil {
|
|
|
|
return ErrNotSupported
|
|
|
|
}
|
2021-03-23 12:42:56 +00:00
|
|
|
return s.Internal.WaitQuiet(p0)
|
2020-09-05 19:36:32 +00:00
|
|
|
}
|
|
|
|
|
2021-04-03 11:12:50 +00:00
|
|
|
func (s *WorkerStub) WaitQuiet(p0 context.Context) error {
|
2021-07-23 23:16:42 +00:00
|
|
|
return ErrNotSupported
|
2021-04-03 11:12:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-23 16:01:56 +00:00
|
|
|
var _ ChainIO = new(ChainIOStruct)
|
|
|
|
var _ Common = new(CommonStruct)
|
2023-01-16 13:54:26 +00:00
|
|
|
var _ EthSubscriber = new(EthSubscriberStruct)
|
2021-03-23 16:01:56 +00:00
|
|
|
var _ FullNode = new(FullNodeStruct)
|
|
|
|
var _ Gateway = new(GatewayStruct)
|
2021-06-29 12:07:00 +00:00
|
|
|
var _ Net = new(NetStruct)
|
2021-03-23 16:01:56 +00:00
|
|
|
var _ Signable = new(SignableStruct)
|
|
|
|
var _ StorageMiner = new(StorageMinerStruct)
|
|
|
|
var _ Wallet = new(WalletStruct)
|
|
|
|
var _ Worker = new(WorkerStruct)
|