diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 4f1b25a9..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,131 +0,0 @@ -version: 2.1 -orbs: - go: gotest/tools@0.0.9 - codecov: codecov/codecov@1.0.2 - -executors: - golang: - docker: - - image: cimg/go:1.18 - resource_class: small - -commands: - install-deps: - steps: - - go/install-ssh - - go/install: {package: git} - prepare: - parameters: - linux: - default: true - description: is a linux build environment? - type: boolean - steps: - - checkout - - when: - condition: << parameters.linux >> - steps: - - run: sudo apt-get update - build-all: - -jobs: - mod-tidy-check: - executor: golang - steps: - - install-deps - - prepare - - go/mod-download - - go/mod-tidy-check - - build-all: - executor: golang - steps: - - install-deps - - prepare - - go/mod-download - - run: - command: make build - - store_artifacts: - path: go-state-types - - store_artifacts: - path: go-state-types - - check-gen: - executor: golang - steps: - - install-deps - - prepare - - go/mod-download - - run: - name: "Install goimports" - command: | - cd / && go install golang.org/x/tools/cmd/goimports@latest - - run: - name: "Ensure we don't need to run 'make gen'" - command: | - make gen && git diff --exit-code - - test-all: - executor: golang - steps: - - install-deps - - prepare - - go/mod-download - - run: - command: | - make test-coverage - mkdir -p /tmp/artifacts - mv coverage.out /tmp/artifacts/coverage.out - - codecov/upload: - file: /tmp/artifacts/coverage.out - - store_artifacts: - path: go-state-types - - lint: &lint - description: | - Run golangci-lint. - parameters: - executor: - type: executor - default: golang - golangci-lint-version: - type: string - default: 1.55.2 - concurrency: - type: string - default: '2' - description: | - Concurrency used to run linters. Defaults to 2 because NumCPU is not - aware of container CPU limits. - args: - type: string - default: '' - description: | - Arguments to pass to golangci-lint - executor: << parameters.executor >> - steps: - - install-deps - - prepare - - run: - command: make build - - go/install-golangci-lint: - gobin: $HOME/.local/bin - version: << parameters.golangci-lint-version >> - - run: - name: Lint - command: | - $HOME/.local/bin/golangci-lint run -v --skip-dirs-use-default=false\ - --concurrency << parameters.concurrency >> << parameters.args >> - - lint-all: - <<: *lint - -workflows: - version: 2.1 - ci: - jobs: - - lint-all - - mod-tidy-check - - build-all - - test-all - - check-gen diff --git a/.github/workflows/go-check-gen.yml b/.github/workflows/go-check-gen.yml new file mode 100644 index 00000000..8bd15312 --- /dev/null +++ b/.github/workflows/go-check-gen.yml @@ -0,0 +1,36 @@ +name: Make gen and check diff + +on: + pull_request: + push: + branches: ["master"] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} + cancel-in-progress: true +jobs: + check-diff: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.21' + + - name: Install dependencies + run: go mod download + + - name: Run make gen + run: make gen + + - name: Check for changes + run: | + git diff --exit-code diff --git a/.github/workflows/go-check.yml b/.github/workflows/go-check.yml new file mode 100644 index 00000000..26f63bc1 --- /dev/null +++ b/.github/workflows/go-check.yml @@ -0,0 +1,18 @@ +name: Go Checks + +on: + pull_request: + push: + branches: ["master"] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} + cancel-in-progress: true + +jobs: + go-check: + uses: ipdxco/unified-github-workflows/.github/workflows/go-check.yml@v1.0 diff --git a/.github/workflows/go-test-config.json b/.github/workflows/go-test-config.json new file mode 100644 index 00000000..048db233 --- /dev/null +++ b/.github/workflows/go-test-config.json @@ -0,0 +1,4 @@ +{ + "skipRace": true, + "skipOSes": ["windows"] +} diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 00000000..778de6ed --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,20 @@ +name: Go Test + +on: + pull_request: + push: + branches: ["master"] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} + cancel-in-progress: true + +jobs: + go-test: + uses: ipdxco/unified-github-workflows/.github/workflows/go-test.yml@v1.0 + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/release-check.yml b/.github/workflows/release-check.yml new file mode 100644 index 00000000..0b5ff607 --- /dev/null +++ b/.github/workflows/release-check.yml @@ -0,0 +1,19 @@ +name: Release Checker + +on: + pull_request_target: + paths: [ 'version.json' ] + types: [ opened, synchronize, reopened, labeled, unlabeled ] + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + release-check: + uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@v1.0 diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml new file mode 100644 index 00000000..25c4da9d --- /dev/null +++ b/.github/workflows/releaser.yml @@ -0,0 +1,19 @@ +name: Releaser + +on: + push: + paths: [ 'version.json' ] + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: ${{ github.workflow }}-${{ github.sha }} + cancel-in-progress: true + +jobs: + releaser: + uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@v1.0 + with: + UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }} diff --git a/.github/workflows/tagpush.yml b/.github/workflows/tagpush.yml new file mode 100644 index 00000000..5ef3fb9e --- /dev/null +++ b/.github/workflows/tagpush.yml @@ -0,0 +1,18 @@ +name: Tag Push Checker + +on: + push: + tags: + - v* + +permissions: + contents: read + issues: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + releaser: + uses: ipdxco/unified-github-workflows/.github/workflows/tagpush.yml@v1.0 diff --git a/.golangci.yaml b/.golangci.yaml deleted file mode 100644 index 13e9448d..00000000 --- a/.golangci.yaml +++ /dev/null @@ -1,5 +0,0 @@ -issues: - exclude-rules: - - path: builtin/v.*/.*/methods.go - linters: - - govet diff --git a/Makefile b/Makefile index cf36c6fc..ed2aa5bd 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ tidy: gen: $(GO_BIN) run ./gen/gen.go + $(GO_BIN) run ./manifest/gen/gen.go $(GO_BIN) run ./builtin/v8/gen/gen.go $(GO_BIN) run ./builtin/v9/gen/gen.go $(GO_BIN) run ./builtin/v10/gen/gen.go diff --git a/README.md b/README.md index 063f2cd7..a8fef1e0 100644 --- a/README.md +++ b/README.md @@ -29,31 +29,21 @@ As an example of application of this policy for Go-State-Types to a v14 builtin- ## Release Process -
- Cutting a development or release candidate release: - -1. Go to [Go-State-Types Releases](https://github.com/filecoin-project/go-state-types/releases). -2. Click the "Draft a new release" button in the right corner. -3. In the "Choose a tag" dropdown, enter the desired version and click "Create new tag: vX.XX.X on publish". -4. Target the master branch. -5. Set the previous tag to compare against, the last stable release, and click the "Generate release notes" button. -6. Check the "Set as a pre-release" checkbox. -7. Click "Publish release" to create the development or release candidate release. - -
- -
- Cutting a definitive release: - -1. Go to [Go-State-Types Releases](https://github.com/filecoin-project/go-state-types/releases). -2. Click the "Draft a new release" button in the right corner. -3. In the "Choose a tag" dropdown, enter the desired version and click "Create new tag: vX.XX.X on publish". -4. Target the master branch. -5. Set the previous tag to compare against, the last stable release, and click the "Generate release notes" button. -6. Ensure the "Set as a pre-release" checkbox is **not** checked. -7. Click "Publish release" to create the definitive release. - -
+The repository contains a version.json file in the root directory: + +```json +{ + "version": "v0.4.2" +} +``` + +This version file defines the currently released version. + +To cut a new release, open a Pull Request that bumps the version number and have it reviewed by your teammates. + +The release check workflow will create a draft GitHub Release (if it was not initiated by a PR from a fork) and post a link to it along with other useful information (the output of gorelease, gocompat, and a diff of the go.mod files(s)). + +The releaser workflow runs when the PR is merged into the default branch. This workflow either publishes the draft GitHub Release created by the release check workflow or creates a published GitHub Release if it doesn't exist yet. This, in turn, creates a new Git tag and pushes it to the repository. ## License This repository is dual-licensed under Apache 2.0 and MIT terms. diff --git a/abi/chain.go b/abi/chain.go index d7cf0fa4..c395e9f2 100644 --- a/abi/chain.go +++ b/abi/chain.go @@ -30,4 +30,3 @@ type Randomness []byte // RandomnessLength is the length of the randomness slice. const RandomnessLength = 32 - diff --git a/abi/empty.go b/abi/empty.go index d2927f03..0980fb2e 100644 --- a/abi/empty.go +++ b/abi/empty.go @@ -36,4 +36,3 @@ func (v *EmptyValue) UnmarshalCBOR(_ io.Reader) error { // Read zero bytes. return nil } - diff --git a/abi/key.go b/abi/key.go index e4338da7..821dbed9 100644 --- a/abi/key.go +++ b/abi/key.go @@ -57,7 +57,7 @@ type intKey struct { int64 } -//noinspection GoExportedFuncWithUnexportedType +// noinspection GoExportedFuncWithUnexportedType func IntKey(k int64) intKey { return intKey{k} } @@ -68,7 +68,7 @@ func (k intKey) Key() string { return string(buf[:n]) } -//noinspection GoUnusedExportedFunction +// noinspection GoUnusedExportedFunction func ParseIntKey(k string) (int64, error) { i, n := binary.Varint([]byte(k)) if n != len(k) { @@ -82,7 +82,7 @@ type uintKey struct { uint64 } -//noinspection GoExportedFuncWithUnexportedType +// noinspection GoExportedFuncWithUnexportedType func UIntKey(k uint64) uintKey { return uintKey{k} } diff --git a/big/int.go b/big/int.go index 5ba15369..4b9cdb80 100644 --- a/big/int.go +++ b/big/int.go @@ -106,7 +106,7 @@ func Sub(a, b Int) Int { return Int{big.NewInt(0).Sub(a.Int, b.Int)} } -// Returns a**e unless e <= 0 (in which case returns 1). +// Returns a**e unless e <= 0 (in which case returns 1). func Exp(a Int, e Int) Int { return Int{big.NewInt(0).Exp(a.Int, e.Int, nil)} } diff --git a/builtin/method_meta.go b/builtin/method_meta.go index b3d432ab..e570ea62 100644 --- a/builtin/method_meta.go +++ b/builtin/method_meta.go @@ -4,3 +4,10 @@ type MethodMeta struct { Name string Method interface{} } + +func NewMethodMeta(name string, method interface{}) MethodMeta { + return MethodMeta{ + Name: name, + Method: method, + } +} diff --git a/builtin/v10/account/methods.go b/builtin/v10/account/methods.go index 14cf33d8..379360f2 100644 --- a/builtin/v10/account/methods.go +++ b/builtin/v10/account/methods.go @@ -9,7 +9,7 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)}, // PubkeyAddress - builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)}, // AuthenticateMessage + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)), // PubkeyAddress + builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): builtin.NewMethodMeta("AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)), // AuthenticateMessage } diff --git a/builtin/v10/cron/methods.go b/builtin/v10/cron/methods.go index b84acb3a..97669037 100644 --- a/builtin/v10/cron/methods.go +++ b/builtin/v10/cron/methods.go @@ -6,6 +6,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // EpochTick + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // EpochTick } diff --git a/builtin/v10/datacap/methods.go b/builtin/v10/datacap/methods.go index ad9ba107..638f10fb 100644 --- a/builtin/v10/datacap/methods.go +++ b/builtin/v10/datacap/methods.go @@ -8,20 +8,20 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - builtin.MustGenerateFRCMethodNum("Mint"): {"MintExported", *new(func(*MintParams) *MintReturn)}, // MintExported - builtin.MustGenerateFRCMethodNum("Destroy"): {"DestroyExported", *new(func(*DestroyParams) *BurnReturn)}, // DestroyExported - builtin.MustGenerateFRCMethodNum("Name"): {"NameExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // NameExported - builtin.MustGenerateFRCMethodNum("Symbol"): {"SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // SymbolExported - builtin.MustGenerateFRCMethodNum("TotalSupply"): {"TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)}, // TotalSupplyExported - builtin.MustGenerateFRCMethodNum("Balance"): {"BalanceExported", *new(func(*address.Address) *abi.TokenAmount)}, // BalanceExported - builtin.MustGenerateFRCMethodNum("Transfer"): {"TransferExported", *new(func(*TransferParams) *TransferReturn)}, // TransferExported - builtin.MustGenerateFRCMethodNum("TransferFrom"): {"TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)}, // TransferFromExported - builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): {"IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)}, // IncreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): {"DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)}, // DecreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("RevokeAllowance"): {"RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)}, // RevokeAllowanceExported - builtin.MustGenerateFRCMethodNum("Burn"): {"BurnExported", *new(func(*BurnParams) *BurnReturn)}, // BurnExported - builtin.MustGenerateFRCMethodNum("BurnFrom"): {"BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)}, // BurnFromExported - builtin.MustGenerateFRCMethodNum("Allowance"): {"AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)}, // AllowanceExported - builtin.MustGenerateFRCMethodNum("Granularity"): {"GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)}, // GranularityExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + builtin.MustGenerateFRCMethodNum("Mint"): builtin.NewMethodMeta("MintExported", *new(func(*MintParams) *MintReturn)), // MintExported + builtin.MustGenerateFRCMethodNum("Destroy"): builtin.NewMethodMeta("DestroyExported", *new(func(*DestroyParams) *BurnReturn)), // DestroyExported + builtin.MustGenerateFRCMethodNum("Name"): builtin.NewMethodMeta("NameExported", *new(func(*abi.EmptyValue) *abi.CborString)), // NameExported + builtin.MustGenerateFRCMethodNum("Symbol"): builtin.NewMethodMeta("SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)), // SymbolExported + builtin.MustGenerateFRCMethodNum("TotalSupply"): builtin.NewMethodMeta("TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)), // TotalSupplyExported + builtin.MustGenerateFRCMethodNum("Balance"): builtin.NewMethodMeta("BalanceExported", *new(func(*address.Address) *abi.TokenAmount)), // BalanceExported + builtin.MustGenerateFRCMethodNum("Transfer"): builtin.NewMethodMeta("TransferExported", *new(func(*TransferParams) *TransferReturn)), // TransferExported + builtin.MustGenerateFRCMethodNum("TransferFrom"): builtin.NewMethodMeta("TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)), // TransferFromExported + builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): builtin.NewMethodMeta("IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)), // IncreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): builtin.NewMethodMeta("DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)), // DecreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("RevokeAllowance"): builtin.NewMethodMeta("RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)), // RevokeAllowanceExported + builtin.MustGenerateFRCMethodNum("Burn"): builtin.NewMethodMeta("BurnExported", *new(func(*BurnParams) *BurnReturn)), // BurnExported + builtin.MustGenerateFRCMethodNum("BurnFrom"): builtin.NewMethodMeta("BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)), // BurnFromExported + builtin.MustGenerateFRCMethodNum("Allowance"): builtin.NewMethodMeta("AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)), // AllowanceExported + builtin.MustGenerateFRCMethodNum("Granularity"): builtin.NewMethodMeta("GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)), // GranularityExported } diff --git a/builtin/v10/eam/methods.go b/builtin/v10/eam/methods.go index 32a1b393..fb816a51 100644 --- a/builtin/v10/eam/methods.go +++ b/builtin/v10/eam/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"Create", *new(func(*CreateParams) *CreateReturn)}, // Create - 3: {"Create2", *new(func(*Create2Params) *Create2Return)}, // Create2 - 4: {"CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)}, // CreateExternal + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Create", *new(func(*CreateParams) *CreateReturn)), // Create + 3: builtin.NewMethodMeta("Create2", *new(func(*Create2Params) *Create2Return)), // Create2 + 4: builtin.NewMethodMeta("CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)), // CreateExternal } diff --git a/builtin/v10/ethaccount/methods.go b/builtin/v10/ethaccount/methods.go index f6d15d17..0a6ba48f 100644 --- a/builtin/v10/ethaccount/methods.go +++ b/builtin/v10/ethaccount/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)), } diff --git a/builtin/v10/evm/methods.go b/builtin/v10/evm/methods.go index da09181e..f89fd5fc 100644 --- a/builtin/v10/evm/methods.go +++ b/builtin/v10/evm/methods.go @@ -6,11 +6,11 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, - 2: {"Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)}, - 3: {"GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)}, - 4: {"GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)}, - 5: {"GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)}, - 6: {"InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)}, - builtin.MustGenerateFRCMethodNum("InvokeEVM"): {"InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), + 2: builtin.NewMethodMeta("Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)), + 3: builtin.NewMethodMeta("GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)), + 4: builtin.NewMethodMeta("GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)), + 5: builtin.NewMethodMeta("GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)), + 6: builtin.NewMethodMeta("InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)), + builtin.MustGenerateFRCMethodNum("InvokeEVM"): builtin.NewMethodMeta("InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)), } diff --git a/builtin/v10/init/methods.go b/builtin/v10/init/methods.go index d89a2dbc..eee468b8 100644 --- a/builtin/v10/init/methods.go +++ b/builtin/v10/init/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Exec", *new(func(*ExecParams) *ExecReturn)}, // Exec + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Exec", *new(func(*ExecParams) *ExecReturn)), // Exec // TODO Are we exporting Exec4 - 3: {"Exec4", *new(func(*Exec4Params) *ExecReturn)}, // Exec4 + 3: builtin.NewMethodMeta("Exec4", *new(func(*Exec4Params) *ExecReturn)), // Exec4 } diff --git a/builtin/v10/market/methods.go b/builtin/v10/market/methods.go index 8b5d733c..2862bc91 100644 --- a/builtin/v10/market/methods.go +++ b/builtin/v10/market/methods.go @@ -7,27 +7,27 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"AddBalance", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalance - builtin.MustGenerateFRCMethodNum("AddBalance"): {"AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalanceExported - 3: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 4: {"PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDeals - builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): {"PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDealsExported - 5: {"VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)}, // VerifyDealsForActivation - 6: {"ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)}, // ActivateDeals - 7: {"OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)}, // OnMinerSectorsTerminate - 8: {"ComputeDataCommitment", *new(func(*ComputeDataCommitmentParams) *ComputeDataCommitmentReturn)}, // ComputeDataCommitment - 9: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - builtin.MustGenerateFRCMethodNum("GetBalance"): {"GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)}, // GetBalanceExported - builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): {"GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)}, // GetDealDataCommitmentExported - builtin.MustGenerateFRCMethodNum("GetDealClient"): {"GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)}, // GetDealClientExported - builtin.MustGenerateFRCMethodNum("GetDealProvider"): {"GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)}, // GetDealProviderExported - builtin.MustGenerateFRCMethodNum("GetDealLabel"): {"GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)}, // GetDealLabelExported - builtin.MustGenerateFRCMethodNum("GetDealTerm"): {"GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)}, // GetDealTermExported - builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): {"GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)}, // GetDealTotalPriceExported - builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): {"GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)}, // GetDealClientCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): {"GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)}, // GetDealProviderCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealVerified"): {"GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)}, // GetDealVerifiedExported - builtin.MustGenerateFRCMethodNum("GetDealActivation"): {"GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)}, // GetDealActivationExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddBalance", *new(func(*address.Address) *abi.EmptyValue)), // AddBalance + builtin.MustGenerateFRCMethodNum("AddBalance"): builtin.NewMethodMeta("AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)), // AddBalanceExported + 3: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 4: builtin.NewMethodMeta("PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDeals + builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): builtin.NewMethodMeta("PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDealsExported + 5: builtin.NewMethodMeta("VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)), // VerifyDealsForActivation + 6: builtin.NewMethodMeta("ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)), // ActivateDeals + 7: builtin.NewMethodMeta("OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)), // OnMinerSectorsTerminate + 8: builtin.NewMethodMeta("ComputeDataCommitment", *new(func(*ComputeDataCommitmentParams) *ComputeDataCommitmentReturn)), // ComputeDataCommitment + 9: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + builtin.MustGenerateFRCMethodNum("GetBalance"): builtin.NewMethodMeta("GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)), // GetBalanceExported + builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): builtin.NewMethodMeta("GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)), // GetDealDataCommitmentExported + builtin.MustGenerateFRCMethodNum("GetDealClient"): builtin.NewMethodMeta("GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)), // GetDealClientExported + builtin.MustGenerateFRCMethodNum("GetDealProvider"): builtin.NewMethodMeta("GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)), // GetDealProviderExported + builtin.MustGenerateFRCMethodNum("GetDealLabel"): builtin.NewMethodMeta("GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)), // GetDealLabelExported + builtin.MustGenerateFRCMethodNum("GetDealTerm"): builtin.NewMethodMeta("GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)), // GetDealTermExported + builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): builtin.NewMethodMeta("GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)), // GetDealTotalPriceExported + builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): builtin.NewMethodMeta("GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)), // GetDealClientCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): builtin.NewMethodMeta("GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)), // GetDealProviderCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealVerified"): builtin.NewMethodMeta("GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)), // GetDealVerifiedExported + builtin.MustGenerateFRCMethodNum("GetDealActivation"): builtin.NewMethodMeta("GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)), // GetDealActivationExported } diff --git a/builtin/v10/miner/methods.go b/builtin/v10/miner/methods.go index 0c3612fd..15b9c650 100644 --- a/builtin/v10/miner/methods.go +++ b/builtin/v10/miner/methods.go @@ -9,54 +9,54 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)}, // ControlAddresses - 3: {"ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): {"ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddressExported - 4: {"ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerID - builtin.MustGenerateFRCMethodNum("ChangePeerID"): {"ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerIDExported - 5: {"SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)}, // SubmitWindowedPoSt - 6: {"PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)}, // PreCommitSector - 7: {"ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)}, // ProveCommitSector - 8: {"ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)}, // ExtendSectorExpiration - 9: {"TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)}, // TerminateSectors - 10: {"DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)}, // DeclareFaults - 11: {"DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)}, // DeclareFaultsRecovered - 12: {"OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)}, // OnDeferredCronEvent - 13: {"CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)}, // CheckSectorProven - 14: {"ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)}, // ApplyRewards - 15: {"ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)}, // ReportConsensusFault - 16: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 17: {"ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)}, // ConfirmSectorProofsValid - 18: {"ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrs - builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): {"ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrsExported - 19: {"CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)}, // CompactPartitions - 20: {"CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)}, // CompactSectorNumbers - 21: {"ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): {"ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddressExported - 22: {"RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebt - builtin.MustGenerateFRCMethodNum("RepayDebt"): {"RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebtExported - 23: {"ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddress - builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): {"ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddressExported - 24: {"DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)}, // DisputeWindowedPoSt - 25: {"PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)}, // PreCommitSectorBatch - 26: {"ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)}, // ProveCommitAggregate - 27: {"ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)}, // ProveReplicaUpdates + 1: builtin.NewMethodMeta("Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)), // ControlAddresses + 3: builtin.NewMethodMeta("ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): builtin.NewMethodMeta("ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddressExported + 4: builtin.NewMethodMeta("ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerID + builtin.MustGenerateFRCMethodNum("ChangePeerID"): builtin.NewMethodMeta("ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerIDExported + 5: builtin.NewMethodMeta("SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)), // SubmitWindowedPoSt + 6: builtin.NewMethodMeta("PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)), // PreCommitSector + 7: builtin.NewMethodMeta("ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)), // ProveCommitSector + 8: builtin.NewMethodMeta("ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)), // ExtendSectorExpiration + 9: builtin.NewMethodMeta("TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)), // TerminateSectors + 10: builtin.NewMethodMeta("DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)), // DeclareFaults + 11: builtin.NewMethodMeta("DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)), // DeclareFaultsRecovered + 12: builtin.NewMethodMeta("OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)), // OnDeferredCronEvent + 13: builtin.NewMethodMeta("CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)), // CheckSectorProven + 14: builtin.NewMethodMeta("ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)), // ApplyRewards + 15: builtin.NewMethodMeta("ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)), // ReportConsensusFault + 16: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 17: builtin.NewMethodMeta("ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)), // ConfirmSectorProofsValid + 18: builtin.NewMethodMeta("ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrs + builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): builtin.NewMethodMeta("ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrsExported + 19: builtin.NewMethodMeta("CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)), // CompactPartitions + 20: builtin.NewMethodMeta("CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)), // CompactSectorNumbers + 21: builtin.NewMethodMeta("ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): builtin.NewMethodMeta("ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddressExported + 22: builtin.NewMethodMeta("RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebt + builtin.MustGenerateFRCMethodNum("RepayDebt"): builtin.NewMethodMeta("RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebtExported + 23: builtin.NewMethodMeta("ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddress + builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): builtin.NewMethodMeta("ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddressExported + 24: builtin.NewMethodMeta("DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)), // DisputeWindowedPoSt + 25: builtin.NewMethodMeta("PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)), // PreCommitSectorBatch + 26: builtin.NewMethodMeta("ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)), // ProveCommitAggregate + 27: builtin.NewMethodMeta("ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)), // ProveReplicaUpdates // NB: the name of this method must not change across actor/network versions - 28: {"PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)}, // PreCommitSectorBatch2 + 28: builtin.NewMethodMeta("PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)), // PreCommitSectorBatch2 // NB: the name of this method must not change across actor/network versions - 29: {"ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)}, // ProveReplicaUpdates2 - 30: {"ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiary - builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): {"ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiaryExported - 31: {"GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)}, // GetBeneficiary + 29: builtin.NewMethodMeta("ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)), // ProveReplicaUpdates2 + 30: builtin.NewMethodMeta("ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiary + builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): builtin.NewMethodMeta("ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiaryExported + 31: builtin.NewMethodMeta("GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)), // GetBeneficiary // NB: the name of this method must not change across actor/network versions - 32: {"ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)}, // ExtendSectorExpiration2 - builtin.MustGenerateFRCMethodNum("GetOwner"): {"GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)}, // GetOwnerExported - builtin.MustGenerateFRCMethodNum("IsControllingAddress"): {"IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)}, // IsControllingAddressExported - builtin.MustGenerateFRCMethodNum("GetSectorSize"): {"GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)}, // GetSectorSizeExported - builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): {"GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)}, // GetAvailableBalanceExported - builtin.MustGenerateFRCMethodNum("GetVestingFunds"): {"GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)}, // GetVestingFundsExported - builtin.MustGenerateFRCMethodNum("GetPeerID"): {"GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)}, // GetPeerIDExported - builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): {"GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)}, // GetMultiaddrsExported + 32: builtin.NewMethodMeta("ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)), // ExtendSectorExpiration2 + builtin.MustGenerateFRCMethodNum("GetOwner"): builtin.NewMethodMeta("GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)), // GetOwnerExported + builtin.MustGenerateFRCMethodNum("IsControllingAddress"): builtin.NewMethodMeta("IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)), // IsControllingAddressExported + builtin.MustGenerateFRCMethodNum("GetSectorSize"): builtin.NewMethodMeta("GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)), // GetSectorSizeExported + builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): builtin.NewMethodMeta("GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)), // GetAvailableBalanceExported + builtin.MustGenerateFRCMethodNum("GetVestingFunds"): builtin.NewMethodMeta("GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)), // GetVestingFundsExported + builtin.MustGenerateFRCMethodNum("GetPeerID"): builtin.NewMethodMeta("GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)), // GetPeerIDExported + builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): builtin.NewMethodMeta("GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)), // GetMultiaddrsExported } diff --git a/builtin/v10/multisig/methods.go b/builtin/v10/multisig/methods.go index 918eaeaf..3970193a 100644 --- a/builtin/v10/multisig/methods.go +++ b/builtin/v10/multisig/methods.go @@ -6,22 +6,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Propose", *new(func(*ProposeParams) *ProposeReturn)}, // Propose - builtin.MustGenerateFRCMethodNum("Propose"): {"ProposeExported", *new(func(*ProposeParams) *ProposeReturn)}, // ProposeExported - 3: {"Approve", *new(func(*TxnIDParams) *ApproveReturn)}, // Approve - builtin.MustGenerateFRCMethodNum("Approve"): {"ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)}, // ApproveExported - 4: {"Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)}, // Cancel - builtin.MustGenerateFRCMethodNum("Cancel"): {"CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)}, // CancelExported - 5: {"AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSigner - builtin.MustGenerateFRCMethodNum("AddSigner"): {"AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSignerExported - 6: {"RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSigner - builtin.MustGenerateFRCMethodNum("RemoveSigner"): {"RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSignerExported - 7: {"SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSigner - builtin.MustGenerateFRCMethodNum("SwapSigner"): {"SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSignerExported - 8: {"ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThreshold - builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): {"ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThresholdExported - 9: {"LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalance - builtin.MustGenerateFRCMethodNum("LockBalance"): {"LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalanceExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Propose", *new(func(*ProposeParams) *ProposeReturn)), // Propose + builtin.MustGenerateFRCMethodNum("Propose"): builtin.NewMethodMeta("ProposeExported", *new(func(*ProposeParams) *ProposeReturn)), // ProposeExported + 3: builtin.NewMethodMeta("Approve", *new(func(*TxnIDParams) *ApproveReturn)), // Approve + builtin.MustGenerateFRCMethodNum("Approve"): builtin.NewMethodMeta("ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)), // ApproveExported + 4: builtin.NewMethodMeta("Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)), // Cancel + builtin.MustGenerateFRCMethodNum("Cancel"): builtin.NewMethodMeta("CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)), // CancelExported + 5: builtin.NewMethodMeta("AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSigner + builtin.MustGenerateFRCMethodNum("AddSigner"): builtin.NewMethodMeta("AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSignerExported + 6: builtin.NewMethodMeta("RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSigner + builtin.MustGenerateFRCMethodNum("RemoveSigner"): builtin.NewMethodMeta("RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSignerExported + 7: builtin.NewMethodMeta("SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSigner + builtin.MustGenerateFRCMethodNum("SwapSigner"): builtin.NewMethodMeta("SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSignerExported + 8: builtin.NewMethodMeta("ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThreshold + builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): builtin.NewMethodMeta("ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThresholdExported + 9: builtin.NewMethodMeta("LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalance + builtin.MustGenerateFRCMethodNum("LockBalance"): builtin.NewMethodMeta("LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalanceExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)), // UniversalReceiverHook } diff --git a/builtin/v10/multisig/multisig_types.go b/builtin/v10/multisig/multisig_types.go index 06d8c649..9be3fc8e 100644 --- a/builtin/v10/multisig/multisig_types.go +++ b/builtin/v10/multisig/multisig_types.go @@ -21,12 +21,12 @@ type Transaction struct { Approved []addr.Address } -//Data for a BLAKE2B-256 to be attached to methods referencing proposals via TXIDs. -//Ensures the existence of a cryptographic reference to the original proposal. Useful -//for offline signers and for protection when reorgs change a multisig TXID. +// Data for a BLAKE2B-256 to be attached to methods referencing proposals via TXIDs. +// Ensures the existence of a cryptographic reference to the original proposal. Useful +// for offline signers and for protection when reorgs change a multisig TXID. // -//Requester - The requesting multisig wallet member. -//All other fields - From the "Transaction" struct. +// Requester - The requesting multisig wallet member. +// All other fields - From the "Transaction" struct. type ProposalHashData struct { Requester addr.Address To addr.Address diff --git a/builtin/v10/paych/methods.go b/builtin/v10/paych/methods.go index b4beca7d..e034d4aa 100644 --- a/builtin/v10/paych/methods.go +++ b/builtin/v10/paych/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)}, // UpdateChannelState - 3: {"Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Settle - 4: {"Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Collect + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)), // UpdateChannelState + 3: builtin.NewMethodMeta("Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Settle + 4: builtin.NewMethodMeta("Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Collect } diff --git a/builtin/v10/paych/paych_types.go b/builtin/v10/paych/paych_types.go index db9f15a7..cdc7dc78 100644 --- a/builtin/v10/paych/paych_types.go +++ b/builtin/v10/paych/paych_types.go @@ -71,7 +71,7 @@ type ModVerifyParams struct { Data []byte } -//Specifies which `Lane`s to be merged with what `Nonce` on channelUpdate +// Specifies which `Lane`s to be merged with what `Nonce` on channelUpdate type Merge struct { Lane uint64 Nonce uint64 diff --git a/builtin/v10/power/methods.go b/builtin/v10/power/methods.go index 2ce5a1ff..8d3839e8 100644 --- a/builtin/v10/power/methods.go +++ b/builtin/v10/power/methods.go @@ -7,18 +7,18 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMiner - builtin.MustGenerateFRCMethodNum("CreateMiner"): {"CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMinerExported - 3: {"UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)}, // UpdateClaimedPower - 4: {"EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)}, // EnrollCronEvent - 5: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - 6: {"UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)}, // UpdatePledgeTotal - 7: {"OnConsensusFault", nil}, // deprecated - 8: {"SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)}, // SubmitPoRepForBulkVerify - 9: {"CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)}, // CurrentTotalPower - builtin.MustGenerateFRCMethodNum("NetworkRawPower"): {"NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)}, // NetworkRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerRawPower"): {"MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)}, // MinerRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerCount"): {"MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)}, // MinerCountExported - builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): {"MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)}, // MinerConsensusCountExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMiner + builtin.MustGenerateFRCMethodNum("CreateMiner"): builtin.NewMethodMeta("CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMinerExported + 3: builtin.NewMethodMeta("UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)), // UpdateClaimedPower + 4: builtin.NewMethodMeta("EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)), // EnrollCronEvent + 5: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + 6: builtin.NewMethodMeta("UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)), // UpdatePledgeTotal + 7: builtin.NewMethodMeta("OnConsensusFault", nil), // deprecated + 8: builtin.NewMethodMeta("SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)), // SubmitPoRepForBulkVerify + 9: builtin.NewMethodMeta("CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)), // CurrentTotalPower + builtin.MustGenerateFRCMethodNum("NetworkRawPower"): builtin.NewMethodMeta("NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)), // NetworkRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerRawPower"): builtin.NewMethodMeta("MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)), // MinerRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerCount"): builtin.NewMethodMeta("MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)), // MinerCountExported + builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): builtin.NewMethodMeta("MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)), // MinerConsensusCountExported } diff --git a/builtin/v10/reward/methods.go b/builtin/v10/reward/methods.go index b6577f10..b0d043e5 100644 --- a/builtin/v10/reward/methods.go +++ b/builtin/v10/reward/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // Constructor - 2: {"AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)}, // AwardBlockReward - 3: {"ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)}, // ThisEpochReward - 4: {"UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // UpdateNetworkKPI + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)), // AwardBlockReward + 3: builtin.NewMethodMeta("ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)), // ThisEpochReward + 4: builtin.NewMethodMeta("UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)), // UpdateNetworkKPI } diff --git a/builtin/v10/system/methods.go b/builtin/v10/system/methods.go index e33f9982..22e7cf89 100644 --- a/builtin/v10/system/methods.go +++ b/builtin/v10/system/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor } diff --git a/builtin/v10/util/adt/array.go b/builtin/v10/util/adt/array.go index edcdf68d..a053a6f0 100644 --- a/builtin/v10/util/adt/array.go +++ b/builtin/v10/util/adt/array.go @@ -125,7 +125,8 @@ func (a *Array) Length() uint64 { } // Get retrieves array element into the 'out' unmarshaler, returning a boolean -// indicating whether the element was found in the array +// +// indicating whether the element was found in the array func (a *Array) Get(k uint64, out cbor.Unmarshaler) (bool, error) { if found, err := a.root.Get(a.store.Context(), k, out); err != nil { return false, xerrors.Errorf("failed to get index %v in root %v: %w", k, a.root, err) diff --git a/builtin/v10/util/smoothing/alpha_beta_filter.go b/builtin/v10/util/smoothing/alpha_beta_filter.go index a87583fe..e5ab8935 100644 --- a/builtin/v10/util/smoothing/alpha_beta_filter.go +++ b/builtin/v10/util/smoothing/alpha_beta_filter.go @@ -28,8 +28,8 @@ func init() { } -//Alpha Beta Filter "position" (value) and "velocity" (rate of change of value) estimates -//Estimates are in Q.128 format +// Alpha Beta Filter "position" (value) and "velocity" (rate of change of value) estimates +// Estimates are in Q.128 format type FilterEstimate struct { PositionEstimate big.Int // Q.128 VelocityEstimate big.Int // Q.128 diff --git a/builtin/v10/verifreg/methods.go b/builtin/v10/verifreg/methods.go index 1a42e805..ee8769db 100644 --- a/builtin/v10/verifreg/methods.go +++ b/builtin/v10/verifreg/methods.go @@ -7,22 +7,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)}, // AddVerifier - 3: {"RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)}, // RemoveVerifier - 4: {"AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClient - builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): {"AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClientExported - 5: {"UseBytes", nil}, // deprecated - 6: {"RestoreBytes", nil}, // deprecated - 7: {"RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)}, // RemoveVerifiedClientDataCap - 8: {"RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocations - builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): {"RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocationsExported - 9: {"ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)}, // ClaimAllocations - 10: {"GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaims - builtin.MustGenerateFRCMethodNum("GetClaims"): {"GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaimsExported - 11: {"ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTerms - builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): {"ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTermsExported - 12: {"RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaims - builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): {"RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaimsExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)), // AddVerifier + 3: builtin.NewMethodMeta("RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)), // RemoveVerifier + 4: builtin.NewMethodMeta("AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClient + builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): builtin.NewMethodMeta("AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClientExported + 5: builtin.NewMethodMeta("UseBytes", nil), // deprecated + 6: builtin.NewMethodMeta("RestoreBytes", nil), // deprecated + 7: builtin.NewMethodMeta("RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)), // RemoveVerifiedClientDataCap + 8: builtin.NewMethodMeta("RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocations + builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): builtin.NewMethodMeta("RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocationsExported + 9: builtin.NewMethodMeta("ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)), // ClaimAllocations + 10: builtin.NewMethodMeta("GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaims + builtin.MustGenerateFRCMethodNum("GetClaims"): builtin.NewMethodMeta("GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaimsExported + 11: builtin.NewMethodMeta("ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTerms + builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): builtin.NewMethodMeta("ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTermsExported + 12: builtin.NewMethodMeta("RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaims + builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): builtin.NewMethodMeta("RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaimsExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)), // UniversalReceiverHook } diff --git a/builtin/v11/account/methods.go b/builtin/v11/account/methods.go index 14cf33d8..379360f2 100644 --- a/builtin/v11/account/methods.go +++ b/builtin/v11/account/methods.go @@ -9,7 +9,7 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)}, // PubkeyAddress - builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)}, // AuthenticateMessage + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)), // PubkeyAddress + builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): builtin.NewMethodMeta("AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)), // AuthenticateMessage } diff --git a/builtin/v11/cron/methods.go b/builtin/v11/cron/methods.go index b84acb3a..97669037 100644 --- a/builtin/v11/cron/methods.go +++ b/builtin/v11/cron/methods.go @@ -6,6 +6,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // EpochTick + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // EpochTick } diff --git a/builtin/v11/datacap/methods.go b/builtin/v11/datacap/methods.go index ad9ba107..638f10fb 100644 --- a/builtin/v11/datacap/methods.go +++ b/builtin/v11/datacap/methods.go @@ -8,20 +8,20 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - builtin.MustGenerateFRCMethodNum("Mint"): {"MintExported", *new(func(*MintParams) *MintReturn)}, // MintExported - builtin.MustGenerateFRCMethodNum("Destroy"): {"DestroyExported", *new(func(*DestroyParams) *BurnReturn)}, // DestroyExported - builtin.MustGenerateFRCMethodNum("Name"): {"NameExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // NameExported - builtin.MustGenerateFRCMethodNum("Symbol"): {"SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // SymbolExported - builtin.MustGenerateFRCMethodNum("TotalSupply"): {"TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)}, // TotalSupplyExported - builtin.MustGenerateFRCMethodNum("Balance"): {"BalanceExported", *new(func(*address.Address) *abi.TokenAmount)}, // BalanceExported - builtin.MustGenerateFRCMethodNum("Transfer"): {"TransferExported", *new(func(*TransferParams) *TransferReturn)}, // TransferExported - builtin.MustGenerateFRCMethodNum("TransferFrom"): {"TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)}, // TransferFromExported - builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): {"IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)}, // IncreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): {"DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)}, // DecreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("RevokeAllowance"): {"RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)}, // RevokeAllowanceExported - builtin.MustGenerateFRCMethodNum("Burn"): {"BurnExported", *new(func(*BurnParams) *BurnReturn)}, // BurnExported - builtin.MustGenerateFRCMethodNum("BurnFrom"): {"BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)}, // BurnFromExported - builtin.MustGenerateFRCMethodNum("Allowance"): {"AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)}, // AllowanceExported - builtin.MustGenerateFRCMethodNum("Granularity"): {"GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)}, // GranularityExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + builtin.MustGenerateFRCMethodNum("Mint"): builtin.NewMethodMeta("MintExported", *new(func(*MintParams) *MintReturn)), // MintExported + builtin.MustGenerateFRCMethodNum("Destroy"): builtin.NewMethodMeta("DestroyExported", *new(func(*DestroyParams) *BurnReturn)), // DestroyExported + builtin.MustGenerateFRCMethodNum("Name"): builtin.NewMethodMeta("NameExported", *new(func(*abi.EmptyValue) *abi.CborString)), // NameExported + builtin.MustGenerateFRCMethodNum("Symbol"): builtin.NewMethodMeta("SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)), // SymbolExported + builtin.MustGenerateFRCMethodNum("TotalSupply"): builtin.NewMethodMeta("TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)), // TotalSupplyExported + builtin.MustGenerateFRCMethodNum("Balance"): builtin.NewMethodMeta("BalanceExported", *new(func(*address.Address) *abi.TokenAmount)), // BalanceExported + builtin.MustGenerateFRCMethodNum("Transfer"): builtin.NewMethodMeta("TransferExported", *new(func(*TransferParams) *TransferReturn)), // TransferExported + builtin.MustGenerateFRCMethodNum("TransferFrom"): builtin.NewMethodMeta("TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)), // TransferFromExported + builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): builtin.NewMethodMeta("IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)), // IncreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): builtin.NewMethodMeta("DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)), // DecreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("RevokeAllowance"): builtin.NewMethodMeta("RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)), // RevokeAllowanceExported + builtin.MustGenerateFRCMethodNum("Burn"): builtin.NewMethodMeta("BurnExported", *new(func(*BurnParams) *BurnReturn)), // BurnExported + builtin.MustGenerateFRCMethodNum("BurnFrom"): builtin.NewMethodMeta("BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)), // BurnFromExported + builtin.MustGenerateFRCMethodNum("Allowance"): builtin.NewMethodMeta("AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)), // AllowanceExported + builtin.MustGenerateFRCMethodNum("Granularity"): builtin.NewMethodMeta("GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)), // GranularityExported } diff --git a/builtin/v11/eam/methods.go b/builtin/v11/eam/methods.go index b611d916..fb816a51 100644 --- a/builtin/v11/eam/methods.go +++ b/builtin/v11/eam/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"Create", *new(func(*CreateParams) *CreateReturn)}, // Create - 3: {"Create2", *new(func(*Create2Params) *Create2Return)}, // Create2 - 4: {"CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)}, // CreateExternal + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Create", *new(func(*CreateParams) *CreateReturn)), // Create + 3: builtin.NewMethodMeta("Create2", *new(func(*Create2Params) *Create2Return)), // Create2 + 4: builtin.NewMethodMeta("CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)), // CreateExternal } diff --git a/builtin/v11/ethaccount/methods.go b/builtin/v11/ethaccount/methods.go index f6d15d17..0a6ba48f 100644 --- a/builtin/v11/ethaccount/methods.go +++ b/builtin/v11/ethaccount/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)), } diff --git a/builtin/v11/evm/methods.go b/builtin/v11/evm/methods.go index da09181e..f89fd5fc 100644 --- a/builtin/v11/evm/methods.go +++ b/builtin/v11/evm/methods.go @@ -6,11 +6,11 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, - 2: {"Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)}, - 3: {"GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)}, - 4: {"GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)}, - 5: {"GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)}, - 6: {"InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)}, - builtin.MustGenerateFRCMethodNum("InvokeEVM"): {"InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), + 2: builtin.NewMethodMeta("Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)), + 3: builtin.NewMethodMeta("GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)), + 4: builtin.NewMethodMeta("GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)), + 5: builtin.NewMethodMeta("GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)), + 6: builtin.NewMethodMeta("InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)), + builtin.MustGenerateFRCMethodNum("InvokeEVM"): builtin.NewMethodMeta("InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)), } diff --git a/builtin/v11/init/methods.go b/builtin/v11/init/methods.go index d89a2dbc..eee468b8 100644 --- a/builtin/v11/init/methods.go +++ b/builtin/v11/init/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Exec", *new(func(*ExecParams) *ExecReturn)}, // Exec + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Exec", *new(func(*ExecParams) *ExecReturn)), // Exec // TODO Are we exporting Exec4 - 3: {"Exec4", *new(func(*Exec4Params) *ExecReturn)}, // Exec4 + 3: builtin.NewMethodMeta("Exec4", *new(func(*Exec4Params) *ExecReturn)), // Exec4 } diff --git a/builtin/v11/market/methods.go b/builtin/v11/market/methods.go index 8b5d733c..2862bc91 100644 --- a/builtin/v11/market/methods.go +++ b/builtin/v11/market/methods.go @@ -7,27 +7,27 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"AddBalance", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalance - builtin.MustGenerateFRCMethodNum("AddBalance"): {"AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalanceExported - 3: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 4: {"PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDeals - builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): {"PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDealsExported - 5: {"VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)}, // VerifyDealsForActivation - 6: {"ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)}, // ActivateDeals - 7: {"OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)}, // OnMinerSectorsTerminate - 8: {"ComputeDataCommitment", *new(func(*ComputeDataCommitmentParams) *ComputeDataCommitmentReturn)}, // ComputeDataCommitment - 9: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - builtin.MustGenerateFRCMethodNum("GetBalance"): {"GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)}, // GetBalanceExported - builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): {"GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)}, // GetDealDataCommitmentExported - builtin.MustGenerateFRCMethodNum("GetDealClient"): {"GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)}, // GetDealClientExported - builtin.MustGenerateFRCMethodNum("GetDealProvider"): {"GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)}, // GetDealProviderExported - builtin.MustGenerateFRCMethodNum("GetDealLabel"): {"GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)}, // GetDealLabelExported - builtin.MustGenerateFRCMethodNum("GetDealTerm"): {"GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)}, // GetDealTermExported - builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): {"GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)}, // GetDealTotalPriceExported - builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): {"GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)}, // GetDealClientCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): {"GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)}, // GetDealProviderCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealVerified"): {"GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)}, // GetDealVerifiedExported - builtin.MustGenerateFRCMethodNum("GetDealActivation"): {"GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)}, // GetDealActivationExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddBalance", *new(func(*address.Address) *abi.EmptyValue)), // AddBalance + builtin.MustGenerateFRCMethodNum("AddBalance"): builtin.NewMethodMeta("AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)), // AddBalanceExported + 3: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 4: builtin.NewMethodMeta("PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDeals + builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): builtin.NewMethodMeta("PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDealsExported + 5: builtin.NewMethodMeta("VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)), // VerifyDealsForActivation + 6: builtin.NewMethodMeta("ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)), // ActivateDeals + 7: builtin.NewMethodMeta("OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)), // OnMinerSectorsTerminate + 8: builtin.NewMethodMeta("ComputeDataCommitment", *new(func(*ComputeDataCommitmentParams) *ComputeDataCommitmentReturn)), // ComputeDataCommitment + 9: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + builtin.MustGenerateFRCMethodNum("GetBalance"): builtin.NewMethodMeta("GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)), // GetBalanceExported + builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): builtin.NewMethodMeta("GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)), // GetDealDataCommitmentExported + builtin.MustGenerateFRCMethodNum("GetDealClient"): builtin.NewMethodMeta("GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)), // GetDealClientExported + builtin.MustGenerateFRCMethodNum("GetDealProvider"): builtin.NewMethodMeta("GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)), // GetDealProviderExported + builtin.MustGenerateFRCMethodNum("GetDealLabel"): builtin.NewMethodMeta("GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)), // GetDealLabelExported + builtin.MustGenerateFRCMethodNum("GetDealTerm"): builtin.NewMethodMeta("GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)), // GetDealTermExported + builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): builtin.NewMethodMeta("GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)), // GetDealTotalPriceExported + builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): builtin.NewMethodMeta("GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)), // GetDealClientCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): builtin.NewMethodMeta("GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)), // GetDealProviderCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealVerified"): builtin.NewMethodMeta("GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)), // GetDealVerifiedExported + builtin.MustGenerateFRCMethodNum("GetDealActivation"): builtin.NewMethodMeta("GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)), // GetDealActivationExported } diff --git a/builtin/v11/miner/methods.go b/builtin/v11/miner/methods.go index 0b61e55f..0bbabe1e 100644 --- a/builtin/v11/miner/methods.go +++ b/builtin/v11/miner/methods.go @@ -9,54 +9,54 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)}, // ControlAddresses - 3: {"ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): {"ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddressExported - 4: {"ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerID - builtin.MustGenerateFRCMethodNum("ChangePeerID"): {"ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerIDExported - 5: {"SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)}, // SubmitWindowedPoSt - 6: {"PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)}, // PreCommitSector - 7: {"ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)}, // ProveCommitSector - 8: {"ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)}, // ExtendSectorExpiration - 9: {"TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)}, // TerminateSectors - 10: {"DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)}, // DeclareFaults - 11: {"DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)}, // DeclareFaultsRecovered - 12: {"OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)}, // OnDeferredCronEvent - 13: {"CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)}, // CheckSectorProven - 14: {"ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)}, // ApplyRewards - 15: {"ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)}, // ReportConsensusFault - 16: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 17: {"ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)}, // ConfirmSectorProofsValid - 18: {"ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrs - builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): {"ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrsExported - 19: {"CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)}, // CompactPartitions - 20: {"CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)}, // CompactSectorNumbers - 21: {"ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): {"ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddressExported - 22: {"RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebt - builtin.MustGenerateFRCMethodNum("RepayDebt"): {"RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebtExported - 23: {"ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddress - builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): {"ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddressExported - 24: {"DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)}, // DisputeWindowedPoSt - 25: {"PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)}, // PreCommitSectorBatch - 26: {"ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)}, // ProveCommitAggregate - 27: {"ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)}, // ProveReplicaUpdates + 1: builtin.NewMethodMeta("Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)), // ControlAddresses + 3: builtin.NewMethodMeta("ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): builtin.NewMethodMeta("ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddressExported + 4: builtin.NewMethodMeta("ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerID + builtin.MustGenerateFRCMethodNum("ChangePeerID"): builtin.NewMethodMeta("ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerIDExported + 5: builtin.NewMethodMeta("SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)), // SubmitWindowedPoSt + 6: builtin.NewMethodMeta("PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)), // PreCommitSector + 7: builtin.NewMethodMeta("ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)), // ProveCommitSector + 8: builtin.NewMethodMeta("ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)), // ExtendSectorExpiration + 9: builtin.NewMethodMeta("TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)), // TerminateSectors + 10: builtin.NewMethodMeta("DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)), // DeclareFaults + 11: builtin.NewMethodMeta("DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)), // DeclareFaultsRecovered + 12: builtin.NewMethodMeta("OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)), // OnDeferredCronEvent + 13: builtin.NewMethodMeta("CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)), // CheckSectorProven + 14: builtin.NewMethodMeta("ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)), // ApplyRewards + 15: builtin.NewMethodMeta("ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)), // ReportConsensusFault + 16: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 17: builtin.NewMethodMeta("ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)), // ConfirmSectorProofsValid + 18: builtin.NewMethodMeta("ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrs + builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): builtin.NewMethodMeta("ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrsExported + 19: builtin.NewMethodMeta("CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)), // CompactPartitions + 20: builtin.NewMethodMeta("CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)), // CompactSectorNumbers + 21: builtin.NewMethodMeta("ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): builtin.NewMethodMeta("ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddressExported + 22: builtin.NewMethodMeta("RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebt + builtin.MustGenerateFRCMethodNum("RepayDebt"): builtin.NewMethodMeta("RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebtExported + 23: builtin.NewMethodMeta("ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddress + builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): builtin.NewMethodMeta("ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddressExported + 24: builtin.NewMethodMeta("DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)), // DisputeWindowedPoSt + 25: builtin.NewMethodMeta("PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)), // PreCommitSectorBatch + 26: builtin.NewMethodMeta("ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)), // ProveCommitAggregate + 27: builtin.NewMethodMeta("ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)), // ProveReplicaUpdates // NB: the name of this method must not change across actor/network versions - 28: {"PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)}, // PreCommitSectorBatch2 + 28: builtin.NewMethodMeta("PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)), // PreCommitSectorBatch2 // NB: the name of this method must not change across actor/network versions - 29: {"ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)}, // ProveReplicaUpdates2 - 30: {"ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiary - builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): {"ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiaryExported - 31: {"GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)}, // GetBeneficiary + 29: builtin.NewMethodMeta("ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)), // ProveReplicaUpdates2 + 30: builtin.NewMethodMeta("ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiary + builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): builtin.NewMethodMeta("ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiaryExported + 31: builtin.NewMethodMeta("GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)), // GetBeneficiary // NB: the name of this method must not change across actor/network versions - 32: {"ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)}, // ExtendSectorExpiration2 - builtin.MustGenerateFRCMethodNum("GetOwner"): {"GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)}, // GetOwnerExported - builtin.MustGenerateFRCMethodNum("IsControllingAddress"): {"IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)}, // IsControllingAddressExported - builtin.MustGenerateFRCMethodNum("GetSectorSize"): {"GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)}, // GetSectorSizeExported - builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): {"GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)}, // GetAvailableBalanceExported - builtin.MustGenerateFRCMethodNum("GetVestingFunds"): {"GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)}, // GetVestingFundsExported - builtin.MustGenerateFRCMethodNum("GetPeerID"): {"GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)}, // GetPeerIDExported - builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): {"GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)}, // GetMultiaddrsExported + 32: builtin.NewMethodMeta("ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)), // ExtendSectorExpiration2 + builtin.MustGenerateFRCMethodNum("GetOwner"): builtin.NewMethodMeta("GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)), // GetOwnerExported + builtin.MustGenerateFRCMethodNum("IsControllingAddress"): builtin.NewMethodMeta("IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)), // IsControllingAddressExported + builtin.MustGenerateFRCMethodNum("GetSectorSize"): builtin.NewMethodMeta("GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)), // GetSectorSizeExported + builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): builtin.NewMethodMeta("GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)), // GetAvailableBalanceExported + builtin.MustGenerateFRCMethodNum("GetVestingFunds"): builtin.NewMethodMeta("GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)), // GetVestingFundsExported + builtin.MustGenerateFRCMethodNum("GetPeerID"): builtin.NewMethodMeta("GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)), // GetPeerIDExported + builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): builtin.NewMethodMeta("GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)), // GetMultiaddrsExported } diff --git a/builtin/v11/multisig/methods.go b/builtin/v11/multisig/methods.go index 918eaeaf..3970193a 100644 --- a/builtin/v11/multisig/methods.go +++ b/builtin/v11/multisig/methods.go @@ -6,22 +6,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Propose", *new(func(*ProposeParams) *ProposeReturn)}, // Propose - builtin.MustGenerateFRCMethodNum("Propose"): {"ProposeExported", *new(func(*ProposeParams) *ProposeReturn)}, // ProposeExported - 3: {"Approve", *new(func(*TxnIDParams) *ApproveReturn)}, // Approve - builtin.MustGenerateFRCMethodNum("Approve"): {"ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)}, // ApproveExported - 4: {"Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)}, // Cancel - builtin.MustGenerateFRCMethodNum("Cancel"): {"CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)}, // CancelExported - 5: {"AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSigner - builtin.MustGenerateFRCMethodNum("AddSigner"): {"AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSignerExported - 6: {"RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSigner - builtin.MustGenerateFRCMethodNum("RemoveSigner"): {"RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSignerExported - 7: {"SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSigner - builtin.MustGenerateFRCMethodNum("SwapSigner"): {"SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSignerExported - 8: {"ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThreshold - builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): {"ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThresholdExported - 9: {"LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalance - builtin.MustGenerateFRCMethodNum("LockBalance"): {"LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalanceExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Propose", *new(func(*ProposeParams) *ProposeReturn)), // Propose + builtin.MustGenerateFRCMethodNum("Propose"): builtin.NewMethodMeta("ProposeExported", *new(func(*ProposeParams) *ProposeReturn)), // ProposeExported + 3: builtin.NewMethodMeta("Approve", *new(func(*TxnIDParams) *ApproveReturn)), // Approve + builtin.MustGenerateFRCMethodNum("Approve"): builtin.NewMethodMeta("ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)), // ApproveExported + 4: builtin.NewMethodMeta("Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)), // Cancel + builtin.MustGenerateFRCMethodNum("Cancel"): builtin.NewMethodMeta("CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)), // CancelExported + 5: builtin.NewMethodMeta("AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSigner + builtin.MustGenerateFRCMethodNum("AddSigner"): builtin.NewMethodMeta("AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSignerExported + 6: builtin.NewMethodMeta("RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSigner + builtin.MustGenerateFRCMethodNum("RemoveSigner"): builtin.NewMethodMeta("RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSignerExported + 7: builtin.NewMethodMeta("SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSigner + builtin.MustGenerateFRCMethodNum("SwapSigner"): builtin.NewMethodMeta("SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSignerExported + 8: builtin.NewMethodMeta("ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThreshold + builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): builtin.NewMethodMeta("ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThresholdExported + 9: builtin.NewMethodMeta("LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalance + builtin.MustGenerateFRCMethodNum("LockBalance"): builtin.NewMethodMeta("LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalanceExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)), // UniversalReceiverHook } diff --git a/builtin/v11/multisig/multisig_types.go b/builtin/v11/multisig/multisig_types.go index 06d8c649..9be3fc8e 100644 --- a/builtin/v11/multisig/multisig_types.go +++ b/builtin/v11/multisig/multisig_types.go @@ -21,12 +21,12 @@ type Transaction struct { Approved []addr.Address } -//Data for a BLAKE2B-256 to be attached to methods referencing proposals via TXIDs. -//Ensures the existence of a cryptographic reference to the original proposal. Useful -//for offline signers and for protection when reorgs change a multisig TXID. +// Data for a BLAKE2B-256 to be attached to methods referencing proposals via TXIDs. +// Ensures the existence of a cryptographic reference to the original proposal. Useful +// for offline signers and for protection when reorgs change a multisig TXID. // -//Requester - The requesting multisig wallet member. -//All other fields - From the "Transaction" struct. +// Requester - The requesting multisig wallet member. +// All other fields - From the "Transaction" struct. type ProposalHashData struct { Requester addr.Address To addr.Address diff --git a/builtin/v11/paych/methods.go b/builtin/v11/paych/methods.go index b4beca7d..e034d4aa 100644 --- a/builtin/v11/paych/methods.go +++ b/builtin/v11/paych/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)}, // UpdateChannelState - 3: {"Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Settle - 4: {"Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Collect + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)), // UpdateChannelState + 3: builtin.NewMethodMeta("Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Settle + 4: builtin.NewMethodMeta("Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Collect } diff --git a/builtin/v11/paych/paych_types.go b/builtin/v11/paych/paych_types.go index db9f15a7..cdc7dc78 100644 --- a/builtin/v11/paych/paych_types.go +++ b/builtin/v11/paych/paych_types.go @@ -71,7 +71,7 @@ type ModVerifyParams struct { Data []byte } -//Specifies which `Lane`s to be merged with what `Nonce` on channelUpdate +// Specifies which `Lane`s to be merged with what `Nonce` on channelUpdate type Merge struct { Lane uint64 Nonce uint64 diff --git a/builtin/v11/power/methods.go b/builtin/v11/power/methods.go index 2ce5a1ff..8d3839e8 100644 --- a/builtin/v11/power/methods.go +++ b/builtin/v11/power/methods.go @@ -7,18 +7,18 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMiner - builtin.MustGenerateFRCMethodNum("CreateMiner"): {"CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMinerExported - 3: {"UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)}, // UpdateClaimedPower - 4: {"EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)}, // EnrollCronEvent - 5: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - 6: {"UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)}, // UpdatePledgeTotal - 7: {"OnConsensusFault", nil}, // deprecated - 8: {"SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)}, // SubmitPoRepForBulkVerify - 9: {"CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)}, // CurrentTotalPower - builtin.MustGenerateFRCMethodNum("NetworkRawPower"): {"NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)}, // NetworkRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerRawPower"): {"MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)}, // MinerRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerCount"): {"MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)}, // MinerCountExported - builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): {"MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)}, // MinerConsensusCountExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMiner + builtin.MustGenerateFRCMethodNum("CreateMiner"): builtin.NewMethodMeta("CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMinerExported + 3: builtin.NewMethodMeta("UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)), // UpdateClaimedPower + 4: builtin.NewMethodMeta("EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)), // EnrollCronEvent + 5: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + 6: builtin.NewMethodMeta("UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)), // UpdatePledgeTotal + 7: builtin.NewMethodMeta("OnConsensusFault", nil), // deprecated + 8: builtin.NewMethodMeta("SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)), // SubmitPoRepForBulkVerify + 9: builtin.NewMethodMeta("CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)), // CurrentTotalPower + builtin.MustGenerateFRCMethodNum("NetworkRawPower"): builtin.NewMethodMeta("NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)), // NetworkRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerRawPower"): builtin.NewMethodMeta("MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)), // MinerRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerCount"): builtin.NewMethodMeta("MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)), // MinerCountExported + builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): builtin.NewMethodMeta("MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)), // MinerConsensusCountExported } diff --git a/builtin/v11/reward/methods.go b/builtin/v11/reward/methods.go index b6577f10..b0d043e5 100644 --- a/builtin/v11/reward/methods.go +++ b/builtin/v11/reward/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // Constructor - 2: {"AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)}, // AwardBlockReward - 3: {"ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)}, // ThisEpochReward - 4: {"UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // UpdateNetworkKPI + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)), // AwardBlockReward + 3: builtin.NewMethodMeta("ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)), // ThisEpochReward + 4: builtin.NewMethodMeta("UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)), // UpdateNetworkKPI } diff --git a/builtin/v11/system/methods.go b/builtin/v11/system/methods.go index e33f9982..22e7cf89 100644 --- a/builtin/v11/system/methods.go +++ b/builtin/v11/system/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor } diff --git a/builtin/v11/util/adt/array.go b/builtin/v11/util/adt/array.go index edcdf68d..a053a6f0 100644 --- a/builtin/v11/util/adt/array.go +++ b/builtin/v11/util/adt/array.go @@ -125,7 +125,8 @@ func (a *Array) Length() uint64 { } // Get retrieves array element into the 'out' unmarshaler, returning a boolean -// indicating whether the element was found in the array +// +// indicating whether the element was found in the array func (a *Array) Get(k uint64, out cbor.Unmarshaler) (bool, error) { if found, err := a.root.Get(a.store.Context(), k, out); err != nil { return false, xerrors.Errorf("failed to get index %v in root %v: %w", k, a.root, err) diff --git a/builtin/v11/util/smoothing/alpha_beta_filter.go b/builtin/v11/util/smoothing/alpha_beta_filter.go index 8cba0fbd..c39c3f6a 100644 --- a/builtin/v11/util/smoothing/alpha_beta_filter.go +++ b/builtin/v11/util/smoothing/alpha_beta_filter.go @@ -28,8 +28,8 @@ func init() { } -//Alpha Beta Filter "position" (value) and "velocity" (rate of change of value) estimates -//Estimates are in Q.128 format +// Alpha Beta Filter "position" (value) and "velocity" (rate of change of value) estimates +// Estimates are in Q.128 format type FilterEstimate struct { PositionEstimate big.Int // Q.128 VelocityEstimate big.Int // Q.128 diff --git a/builtin/v11/verifreg/methods.go b/builtin/v11/verifreg/methods.go index 1a42e805..ee8769db 100644 --- a/builtin/v11/verifreg/methods.go +++ b/builtin/v11/verifreg/methods.go @@ -7,22 +7,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)}, // AddVerifier - 3: {"RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)}, // RemoveVerifier - 4: {"AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClient - builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): {"AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClientExported - 5: {"UseBytes", nil}, // deprecated - 6: {"RestoreBytes", nil}, // deprecated - 7: {"RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)}, // RemoveVerifiedClientDataCap - 8: {"RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocations - builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): {"RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocationsExported - 9: {"ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)}, // ClaimAllocations - 10: {"GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaims - builtin.MustGenerateFRCMethodNum("GetClaims"): {"GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaimsExported - 11: {"ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTerms - builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): {"ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTermsExported - 12: {"RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaims - builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): {"RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaimsExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)), // AddVerifier + 3: builtin.NewMethodMeta("RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)), // RemoveVerifier + 4: builtin.NewMethodMeta("AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClient + builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): builtin.NewMethodMeta("AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClientExported + 5: builtin.NewMethodMeta("UseBytes", nil), // deprecated + 6: builtin.NewMethodMeta("RestoreBytes", nil), // deprecated + 7: builtin.NewMethodMeta("RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)), // RemoveVerifiedClientDataCap + 8: builtin.NewMethodMeta("RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocations + builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): builtin.NewMethodMeta("RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocationsExported + 9: builtin.NewMethodMeta("ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)), // ClaimAllocations + 10: builtin.NewMethodMeta("GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaims + builtin.MustGenerateFRCMethodNum("GetClaims"): builtin.NewMethodMeta("GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaimsExported + 11: builtin.NewMethodMeta("ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTerms + builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): builtin.NewMethodMeta("ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTermsExported + 12: builtin.NewMethodMeta("RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaims + builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): builtin.NewMethodMeta("RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaimsExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)), // UniversalReceiverHook } diff --git a/builtin/v12/account/methods.go b/builtin/v12/account/methods.go index b6d11eee..1a727130 100644 --- a/builtin/v12/account/methods.go +++ b/builtin/v12/account/methods.go @@ -9,7 +9,7 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)}, // PubkeyAddress - builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)}, // AuthenticateMessage + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)), // PubkeyAddress + builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): builtin.NewMethodMeta("AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)), // AuthenticateMessage } diff --git a/builtin/v12/cron/methods.go b/builtin/v12/cron/methods.go index b84acb3a..97669037 100644 --- a/builtin/v12/cron/methods.go +++ b/builtin/v12/cron/methods.go @@ -6,6 +6,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // EpochTick + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // EpochTick } diff --git a/builtin/v12/datacap/methods.go b/builtin/v12/datacap/methods.go index 78b6d5f2..a19d4b41 100644 --- a/builtin/v12/datacap/methods.go +++ b/builtin/v12/datacap/methods.go @@ -7,20 +7,20 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - builtin.MustGenerateFRCMethodNum("Mint"): {"MintExported", *new(func(*MintParams) *MintReturn)}, // MintExported - builtin.MustGenerateFRCMethodNum("Destroy"): {"DestroyExported", *new(func(*DestroyParams) *BurnReturn)}, // DestroyExported - builtin.MustGenerateFRCMethodNum("Name"): {"NameExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // NameExported - builtin.MustGenerateFRCMethodNum("Symbol"): {"SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // SymbolExported - builtin.MustGenerateFRCMethodNum("TotalSupply"): {"TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)}, // TotalSupplyExported - builtin.MustGenerateFRCMethodNum("Balance"): {"BalanceExported", *new(func(*address.Address) *abi.TokenAmount)}, // BalanceExported - builtin.MustGenerateFRCMethodNum("Transfer"): {"TransferExported", *new(func(*TransferParams) *TransferReturn)}, // TransferExported - builtin.MustGenerateFRCMethodNum("TransferFrom"): {"TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)}, // TransferFromExported - builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): {"IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)}, // IncreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): {"DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)}, // DecreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("RevokeAllowance"): {"RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)}, // RevokeAllowanceExported - builtin.MustGenerateFRCMethodNum("Burn"): {"BurnExported", *new(func(*BurnParams) *BurnReturn)}, // BurnExported - builtin.MustGenerateFRCMethodNum("BurnFrom"): {"BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)}, // BurnFromExported - builtin.MustGenerateFRCMethodNum("Allowance"): {"AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)}, // AllowanceExported - builtin.MustGenerateFRCMethodNum("Granularity"): {"GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)}, // GranularityExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + builtin.MustGenerateFRCMethodNum("Mint"): builtin.NewMethodMeta("MintExported", *new(func(*MintParams) *MintReturn)), // MintExported + builtin.MustGenerateFRCMethodNum("Destroy"): builtin.NewMethodMeta("DestroyExported", *new(func(*DestroyParams) *BurnReturn)), // DestroyExported + builtin.MustGenerateFRCMethodNum("Name"): builtin.NewMethodMeta("NameExported", *new(func(*abi.EmptyValue) *abi.CborString)), // NameExported + builtin.MustGenerateFRCMethodNum("Symbol"): builtin.NewMethodMeta("SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)), // SymbolExported + builtin.MustGenerateFRCMethodNum("TotalSupply"): builtin.NewMethodMeta("TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)), // TotalSupplyExported + builtin.MustGenerateFRCMethodNum("Balance"): builtin.NewMethodMeta("BalanceExported", *new(func(*address.Address) *abi.TokenAmount)), // BalanceExported + builtin.MustGenerateFRCMethodNum("Transfer"): builtin.NewMethodMeta("TransferExported", *new(func(*TransferParams) *TransferReturn)), // TransferExported + builtin.MustGenerateFRCMethodNum("TransferFrom"): builtin.NewMethodMeta("TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)), // TransferFromExported + builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): builtin.NewMethodMeta("IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)), // IncreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): builtin.NewMethodMeta("DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)), // DecreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("RevokeAllowance"): builtin.NewMethodMeta("RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)), // RevokeAllowanceExported + builtin.MustGenerateFRCMethodNum("Burn"): builtin.NewMethodMeta("BurnExported", *new(func(*BurnParams) *BurnReturn)), // BurnExported + builtin.MustGenerateFRCMethodNum("BurnFrom"): builtin.NewMethodMeta("BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)), // BurnFromExported + builtin.MustGenerateFRCMethodNum("Allowance"): builtin.NewMethodMeta("AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)), // AllowanceExported + builtin.MustGenerateFRCMethodNum("Granularity"): builtin.NewMethodMeta("GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)), // GranularityExported } diff --git a/builtin/v12/eam/methods.go b/builtin/v12/eam/methods.go index b611d916..fb816a51 100644 --- a/builtin/v12/eam/methods.go +++ b/builtin/v12/eam/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"Create", *new(func(*CreateParams) *CreateReturn)}, // Create - 3: {"Create2", *new(func(*Create2Params) *Create2Return)}, // Create2 - 4: {"CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)}, // CreateExternal + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Create", *new(func(*CreateParams) *CreateReturn)), // Create + 3: builtin.NewMethodMeta("Create2", *new(func(*Create2Params) *Create2Return)), // Create2 + 4: builtin.NewMethodMeta("CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)), // CreateExternal } diff --git a/builtin/v12/ethaccount/methods.go b/builtin/v12/ethaccount/methods.go index f6d15d17..0a6ba48f 100644 --- a/builtin/v12/ethaccount/methods.go +++ b/builtin/v12/ethaccount/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)), } diff --git a/builtin/v12/evm/methods.go b/builtin/v12/evm/methods.go index da09181e..f89fd5fc 100644 --- a/builtin/v12/evm/methods.go +++ b/builtin/v12/evm/methods.go @@ -6,11 +6,11 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, - 2: {"Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)}, - 3: {"GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)}, - 4: {"GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)}, - 5: {"GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)}, - 6: {"InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)}, - builtin.MustGenerateFRCMethodNum("InvokeEVM"): {"InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), + 2: builtin.NewMethodMeta("Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)), + 3: builtin.NewMethodMeta("GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)), + 4: builtin.NewMethodMeta("GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)), + 5: builtin.NewMethodMeta("GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)), + 6: builtin.NewMethodMeta("InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)), + builtin.MustGenerateFRCMethodNum("InvokeEVM"): builtin.NewMethodMeta("InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)), } diff --git a/builtin/v12/init/methods.go b/builtin/v12/init/methods.go index d89a2dbc..eee468b8 100644 --- a/builtin/v12/init/methods.go +++ b/builtin/v12/init/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Exec", *new(func(*ExecParams) *ExecReturn)}, // Exec + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Exec", *new(func(*ExecParams) *ExecReturn)), // Exec // TODO Are we exporting Exec4 - 3: {"Exec4", *new(func(*Exec4Params) *ExecReturn)}, // Exec4 + 3: builtin.NewMethodMeta("Exec4", *new(func(*Exec4Params) *ExecReturn)), // Exec4 } diff --git a/builtin/v12/market/methods.go b/builtin/v12/market/methods.go index 74773777..068e45da 100644 --- a/builtin/v12/market/methods.go +++ b/builtin/v12/market/methods.go @@ -7,27 +7,27 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"AddBalance", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalance - builtin.MustGenerateFRCMethodNum("AddBalance"): {"AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalanceExported - 3: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 4: {"PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDeals - builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): {"PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDealsExported - 5: {"VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)}, // VerifyDealsForActivation - 6: {"ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)}, // ActivateDeals - 7: {"OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)}, // OnMinerSectorsTerminate - 8: {"ComputeDataCommitment", nil}, // deprecated - 9: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - builtin.MustGenerateFRCMethodNum("GetBalance"): {"GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)}, // GetBalanceExported - builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): {"GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)}, // GetDealDataCommitmentExported - builtin.MustGenerateFRCMethodNum("GetDealClient"): {"GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)}, // GetDealClientExported - builtin.MustGenerateFRCMethodNum("GetDealProvider"): {"GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)}, // GetDealProviderExported - builtin.MustGenerateFRCMethodNum("GetDealLabel"): {"GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)}, // GetDealLabelExported - builtin.MustGenerateFRCMethodNum("GetDealTerm"): {"GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)}, // GetDealTermExported - builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): {"GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)}, // GetDealTotalPriceExported - builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): {"GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)}, // GetDealClientCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): {"GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)}, // GetDealProviderCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealVerified"): {"GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)}, // GetDealVerifiedExported - builtin.MustGenerateFRCMethodNum("GetDealActivation"): {"GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)}, // GetDealActivationExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddBalance", *new(func(*address.Address) *abi.EmptyValue)), // AddBalance + builtin.MustGenerateFRCMethodNum("AddBalance"): builtin.NewMethodMeta("AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)), // AddBalanceExported + 3: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 4: builtin.NewMethodMeta("PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDeals + builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): builtin.NewMethodMeta("PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDealsExported + 5: builtin.NewMethodMeta("VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)), // VerifyDealsForActivation + 6: builtin.NewMethodMeta("ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)), // ActivateDeals + 7: builtin.NewMethodMeta("OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)), // OnMinerSectorsTerminate + 8: builtin.NewMethodMeta("ComputeDataCommitment", nil), // deprecated + 9: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + builtin.MustGenerateFRCMethodNum("GetBalance"): builtin.NewMethodMeta("GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)), // GetBalanceExported + builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): builtin.NewMethodMeta("GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)), // GetDealDataCommitmentExported + builtin.MustGenerateFRCMethodNum("GetDealClient"): builtin.NewMethodMeta("GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)), // GetDealClientExported + builtin.MustGenerateFRCMethodNum("GetDealProvider"): builtin.NewMethodMeta("GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)), // GetDealProviderExported + builtin.MustGenerateFRCMethodNum("GetDealLabel"): builtin.NewMethodMeta("GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)), // GetDealLabelExported + builtin.MustGenerateFRCMethodNum("GetDealTerm"): builtin.NewMethodMeta("GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)), // GetDealTermExported + builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): builtin.NewMethodMeta("GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)), // GetDealTotalPriceExported + builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): builtin.NewMethodMeta("GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)), // GetDealClientCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): builtin.NewMethodMeta("GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)), // GetDealProviderCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealVerified"): builtin.NewMethodMeta("GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)), // GetDealVerifiedExported + builtin.MustGenerateFRCMethodNum("GetDealActivation"): builtin.NewMethodMeta("GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)), // GetDealActivationExported } diff --git a/builtin/v12/miner/methods.go b/builtin/v12/miner/methods.go index a3c13d9c..9b49ab78 100644 --- a/builtin/v12/miner/methods.go +++ b/builtin/v12/miner/methods.go @@ -9,54 +9,54 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)}, // ControlAddresses - 3: {"ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): {"ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddressExported - 4: {"ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerID - builtin.MustGenerateFRCMethodNum("ChangePeerID"): {"ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerIDExported - 5: {"SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)}, // SubmitWindowedPoSt - 6: {"PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)}, // PreCommitSector - 7: {"ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)}, // ProveCommitSector - 8: {"ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)}, // ExtendSectorExpiration - 9: {"TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)}, // TerminateSectors - 10: {"DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)}, // DeclareFaults - 11: {"DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)}, // DeclareFaultsRecovered - 12: {"OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)}, // OnDeferredCronEvent - 13: {"CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)}, // CheckSectorProven - 14: {"ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)}, // ApplyRewards - 15: {"ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)}, // ReportConsensusFault - 16: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 17: {"ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)}, // ConfirmSectorProofsValid - 18: {"ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrs - builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): {"ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrsExported - 19: {"CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)}, // CompactPartitions - 20: {"CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)}, // CompactSectorNumbers - 21: {"ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): {"ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddressExported - 22: {"RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebt - builtin.MustGenerateFRCMethodNum("RepayDebt"): {"RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebtExported - 23: {"ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddress - builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): {"ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddressExported - 24: {"DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)}, // DisputeWindowedPoSt - 25: {"PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)}, // PreCommitSectorBatch - 26: {"ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)}, // ProveCommitAggregate - 27: {"ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)}, // ProveReplicaUpdates + 1: builtin.NewMethodMeta("Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)), // ControlAddresses + 3: builtin.NewMethodMeta("ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): builtin.NewMethodMeta("ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddressExported + 4: builtin.NewMethodMeta("ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerID + builtin.MustGenerateFRCMethodNum("ChangePeerID"): builtin.NewMethodMeta("ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerIDExported + 5: builtin.NewMethodMeta("SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)), // SubmitWindowedPoSt + 6: builtin.NewMethodMeta("PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)), // PreCommitSector + 7: builtin.NewMethodMeta("ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)), // ProveCommitSector + 8: builtin.NewMethodMeta("ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)), // ExtendSectorExpiration + 9: builtin.NewMethodMeta("TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)), // TerminateSectors + 10: builtin.NewMethodMeta("DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)), // DeclareFaults + 11: builtin.NewMethodMeta("DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)), // DeclareFaultsRecovered + 12: builtin.NewMethodMeta("OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)), // OnDeferredCronEvent + 13: builtin.NewMethodMeta("CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)), // CheckSectorProven + 14: builtin.NewMethodMeta("ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)), // ApplyRewards + 15: builtin.NewMethodMeta("ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)), // ReportConsensusFault + 16: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 17: builtin.NewMethodMeta("ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)), // ConfirmSectorProofsValid + 18: builtin.NewMethodMeta("ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrs + builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): builtin.NewMethodMeta("ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrsExported + 19: builtin.NewMethodMeta("CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)), // CompactPartitions + 20: builtin.NewMethodMeta("CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)), // CompactSectorNumbers + 21: builtin.NewMethodMeta("ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): builtin.NewMethodMeta("ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddressExported + 22: builtin.NewMethodMeta("RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebt + builtin.MustGenerateFRCMethodNum("RepayDebt"): builtin.NewMethodMeta("RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebtExported + 23: builtin.NewMethodMeta("ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddress + builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): builtin.NewMethodMeta("ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddressExported + 24: builtin.NewMethodMeta("DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)), // DisputeWindowedPoSt + 25: builtin.NewMethodMeta("PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)), // PreCommitSectorBatch + 26: builtin.NewMethodMeta("ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)), // ProveCommitAggregate + 27: builtin.NewMethodMeta("ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)), // ProveReplicaUpdates // NB: the name of this method must not change across actor/network versions - 28: {"PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)}, // PreCommitSectorBatch2 + 28: builtin.NewMethodMeta("PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)), // PreCommitSectorBatch2 // NB: the name of this method must not change across actor/network versions - 29: {"ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)}, // ProveReplicaUpdates2 - 30: {"ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiary - builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): {"ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiaryExported - 31: {"GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)}, // GetBeneficiary + 29: builtin.NewMethodMeta("ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)), // ProveReplicaUpdates2 + 30: builtin.NewMethodMeta("ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiary + builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): builtin.NewMethodMeta("ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiaryExported + 31: builtin.NewMethodMeta("GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)), // GetBeneficiary // NB: the name of this method must not change across actor/network versions - 32: {"ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)}, // ExtendSectorExpiration2 - builtin.MustGenerateFRCMethodNum("GetOwner"): {"GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)}, // GetOwnerExported - builtin.MustGenerateFRCMethodNum("IsControllingAddress"): {"IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)}, // IsControllingAddressExported - builtin.MustGenerateFRCMethodNum("GetSectorSize"): {"GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)}, // GetSectorSizeExported - builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): {"GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)}, // GetAvailableBalanceExported - builtin.MustGenerateFRCMethodNum("GetVestingFunds"): {"GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)}, // GetVestingFundsExported - builtin.MustGenerateFRCMethodNum("GetPeerID"): {"GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)}, // GetPeerIDExported - builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): {"GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)}, // GetMultiaddrsExported + 32: builtin.NewMethodMeta("ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)), // ExtendSectorExpiration2 + builtin.MustGenerateFRCMethodNum("GetOwner"): builtin.NewMethodMeta("GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)), // GetOwnerExported + builtin.MustGenerateFRCMethodNum("IsControllingAddress"): builtin.NewMethodMeta("IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)), // IsControllingAddressExported + builtin.MustGenerateFRCMethodNum("GetSectorSize"): builtin.NewMethodMeta("GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)), // GetSectorSizeExported + builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): builtin.NewMethodMeta("GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)), // GetAvailableBalanceExported + builtin.MustGenerateFRCMethodNum("GetVestingFunds"): builtin.NewMethodMeta("GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)), // GetVestingFundsExported + builtin.MustGenerateFRCMethodNum("GetPeerID"): builtin.NewMethodMeta("GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)), // GetPeerIDExported + builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): builtin.NewMethodMeta("GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)), // GetMultiaddrsExported } diff --git a/builtin/v12/miner/miner_state.go b/builtin/v12/miner/miner_state.go index 2edecdaa..2bb7afe2 100644 --- a/builtin/v12/miner/miner_state.go +++ b/builtin/v12/miner/miner_state.go @@ -161,27 +161,26 @@ type SectorPreCommitOnChainInfo struct { type SectorOnChainInfoFlags uint64 const ( - SIMPLE_QA_POWER SectorOnChainInfoFlags = 1 << iota // QA power mechanism introduced in FIP-0045 + SIMPLE_QA_POWER SectorOnChainInfoFlags = 1 << iota // QA power mechanism introduced in FIP-0045 ) - // Information stored on-chain for a proven sector. type SectorOnChainInfo struct { SectorNumber abi.SectorNumber SealProof abi.RegisteredSealProof // The seal proof type implies the PoSt proof/s SealedCID cid.Cid // CommR DealIDs []abi.DealID - Activation abi.ChainEpoch // Epoch during which the sector proof was accepted - Expiration abi.ChainEpoch // Epoch during which the sector expires - DealWeight abi.DealWeight // Integral of active deals over sector lifetime - VerifiedDealWeight abi.DealWeight // Integral of active verified deals over sector lifetime - InitialPledge abi.TokenAmount // Pledge collected to commit this sector - ExpectedDayReward abi.TokenAmount // Expected one day projection of reward for sector computed at activation time - ExpectedStoragePledge abi.TokenAmount // Expected twenty day projection of reward for sector computed at activation time - PowerBaseEpoch abi.ChainEpoch // Epoch at which this sector's power was most recently updated - ReplacedDayReward abi.TokenAmount // Day reward of this sector before its power was most recently updated - SectorKeyCID *cid.Cid // The original SealedSectorCID, only gets set on the first ReplicaUpdate - Flags SectorOnChainInfoFlags // Additional flags + Activation abi.ChainEpoch // Epoch during which the sector proof was accepted + Expiration abi.ChainEpoch // Epoch during which the sector expires + DealWeight abi.DealWeight // Integral of active deals over sector lifetime + VerifiedDealWeight abi.DealWeight // Integral of active verified deals over sector lifetime + InitialPledge abi.TokenAmount // Pledge collected to commit this sector + ExpectedDayReward abi.TokenAmount // Expected one day projection of reward for sector computed at activation time + ExpectedStoragePledge abi.TokenAmount // Expected twenty day projection of reward for sector computed at activation time + PowerBaseEpoch abi.ChainEpoch // Epoch at which this sector's power was most recently updated + ReplacedDayReward abi.TokenAmount // Day reward of this sector before its power was most recently updated + SectorKeyCID *cid.Cid // The original SealedSectorCID, only gets set on the first ReplicaUpdate + Flags SectorOnChainInfoFlags // Additional flags } func (st *State) GetInfo(store adt.Store) (*MinerInfo, error) { diff --git a/builtin/v12/multisig/methods.go b/builtin/v12/multisig/methods.go index 918eaeaf..3970193a 100644 --- a/builtin/v12/multisig/methods.go +++ b/builtin/v12/multisig/methods.go @@ -6,22 +6,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Propose", *new(func(*ProposeParams) *ProposeReturn)}, // Propose - builtin.MustGenerateFRCMethodNum("Propose"): {"ProposeExported", *new(func(*ProposeParams) *ProposeReturn)}, // ProposeExported - 3: {"Approve", *new(func(*TxnIDParams) *ApproveReturn)}, // Approve - builtin.MustGenerateFRCMethodNum("Approve"): {"ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)}, // ApproveExported - 4: {"Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)}, // Cancel - builtin.MustGenerateFRCMethodNum("Cancel"): {"CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)}, // CancelExported - 5: {"AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSigner - builtin.MustGenerateFRCMethodNum("AddSigner"): {"AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSignerExported - 6: {"RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSigner - builtin.MustGenerateFRCMethodNum("RemoveSigner"): {"RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSignerExported - 7: {"SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSigner - builtin.MustGenerateFRCMethodNum("SwapSigner"): {"SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSignerExported - 8: {"ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThreshold - builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): {"ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThresholdExported - 9: {"LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalance - builtin.MustGenerateFRCMethodNum("LockBalance"): {"LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalanceExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Propose", *new(func(*ProposeParams) *ProposeReturn)), // Propose + builtin.MustGenerateFRCMethodNum("Propose"): builtin.NewMethodMeta("ProposeExported", *new(func(*ProposeParams) *ProposeReturn)), // ProposeExported + 3: builtin.NewMethodMeta("Approve", *new(func(*TxnIDParams) *ApproveReturn)), // Approve + builtin.MustGenerateFRCMethodNum("Approve"): builtin.NewMethodMeta("ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)), // ApproveExported + 4: builtin.NewMethodMeta("Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)), // Cancel + builtin.MustGenerateFRCMethodNum("Cancel"): builtin.NewMethodMeta("CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)), // CancelExported + 5: builtin.NewMethodMeta("AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSigner + builtin.MustGenerateFRCMethodNum("AddSigner"): builtin.NewMethodMeta("AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSignerExported + 6: builtin.NewMethodMeta("RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSigner + builtin.MustGenerateFRCMethodNum("RemoveSigner"): builtin.NewMethodMeta("RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSignerExported + 7: builtin.NewMethodMeta("SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSigner + builtin.MustGenerateFRCMethodNum("SwapSigner"): builtin.NewMethodMeta("SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSignerExported + 8: builtin.NewMethodMeta("ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThreshold + builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): builtin.NewMethodMeta("ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThresholdExported + 9: builtin.NewMethodMeta("LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalance + builtin.MustGenerateFRCMethodNum("LockBalance"): builtin.NewMethodMeta("LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalanceExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)), // UniversalReceiverHook } diff --git a/builtin/v12/paych/methods.go b/builtin/v12/paych/methods.go index b4beca7d..e034d4aa 100644 --- a/builtin/v12/paych/methods.go +++ b/builtin/v12/paych/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)}, // UpdateChannelState - 3: {"Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Settle - 4: {"Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Collect + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)), // UpdateChannelState + 3: builtin.NewMethodMeta("Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Settle + 4: builtin.NewMethodMeta("Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Collect } diff --git a/builtin/v12/power/methods.go b/builtin/v12/power/methods.go index 2ce5a1ff..8d3839e8 100644 --- a/builtin/v12/power/methods.go +++ b/builtin/v12/power/methods.go @@ -7,18 +7,18 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMiner - builtin.MustGenerateFRCMethodNum("CreateMiner"): {"CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMinerExported - 3: {"UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)}, // UpdateClaimedPower - 4: {"EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)}, // EnrollCronEvent - 5: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - 6: {"UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)}, // UpdatePledgeTotal - 7: {"OnConsensusFault", nil}, // deprecated - 8: {"SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)}, // SubmitPoRepForBulkVerify - 9: {"CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)}, // CurrentTotalPower - builtin.MustGenerateFRCMethodNum("NetworkRawPower"): {"NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)}, // NetworkRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerRawPower"): {"MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)}, // MinerRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerCount"): {"MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)}, // MinerCountExported - builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): {"MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)}, // MinerConsensusCountExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMiner + builtin.MustGenerateFRCMethodNum("CreateMiner"): builtin.NewMethodMeta("CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMinerExported + 3: builtin.NewMethodMeta("UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)), // UpdateClaimedPower + 4: builtin.NewMethodMeta("EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)), // EnrollCronEvent + 5: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + 6: builtin.NewMethodMeta("UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)), // UpdatePledgeTotal + 7: builtin.NewMethodMeta("OnConsensusFault", nil), // deprecated + 8: builtin.NewMethodMeta("SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)), // SubmitPoRepForBulkVerify + 9: builtin.NewMethodMeta("CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)), // CurrentTotalPower + builtin.MustGenerateFRCMethodNum("NetworkRawPower"): builtin.NewMethodMeta("NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)), // NetworkRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerRawPower"): builtin.NewMethodMeta("MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)), // MinerRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerCount"): builtin.NewMethodMeta("MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)), // MinerCountExported + builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): builtin.NewMethodMeta("MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)), // MinerConsensusCountExported } diff --git a/builtin/v12/reward/methods.go b/builtin/v12/reward/methods.go index b6577f10..b0d043e5 100644 --- a/builtin/v12/reward/methods.go +++ b/builtin/v12/reward/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // Constructor - 2: {"AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)}, // AwardBlockReward - 3: {"ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)}, // ThisEpochReward - 4: {"UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // UpdateNetworkKPI + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)), // AwardBlockReward + 3: builtin.NewMethodMeta("ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)), // ThisEpochReward + 4: builtin.NewMethodMeta("UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)), // UpdateNetworkKPI } diff --git a/builtin/v12/system/methods.go b/builtin/v12/system/methods.go index e33f9982..22e7cf89 100644 --- a/builtin/v12/system/methods.go +++ b/builtin/v12/system/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor } diff --git a/builtin/v12/verifreg/methods.go b/builtin/v12/verifreg/methods.go index 1a42e805..ee8769db 100644 --- a/builtin/v12/verifreg/methods.go +++ b/builtin/v12/verifreg/methods.go @@ -7,22 +7,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)}, // AddVerifier - 3: {"RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)}, // RemoveVerifier - 4: {"AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClient - builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): {"AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClientExported - 5: {"UseBytes", nil}, // deprecated - 6: {"RestoreBytes", nil}, // deprecated - 7: {"RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)}, // RemoveVerifiedClientDataCap - 8: {"RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocations - builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): {"RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocationsExported - 9: {"ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)}, // ClaimAllocations - 10: {"GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaims - builtin.MustGenerateFRCMethodNum("GetClaims"): {"GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaimsExported - 11: {"ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTerms - builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): {"ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTermsExported - 12: {"RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaims - builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): {"RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaimsExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)), // AddVerifier + 3: builtin.NewMethodMeta("RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)), // RemoveVerifier + 4: builtin.NewMethodMeta("AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClient + builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): builtin.NewMethodMeta("AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClientExported + 5: builtin.NewMethodMeta("UseBytes", nil), // deprecated + 6: builtin.NewMethodMeta("RestoreBytes", nil), // deprecated + 7: builtin.NewMethodMeta("RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)), // RemoveVerifiedClientDataCap + 8: builtin.NewMethodMeta("RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocations + builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): builtin.NewMethodMeta("RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocationsExported + 9: builtin.NewMethodMeta("ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)), // ClaimAllocations + 10: builtin.NewMethodMeta("GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaims + builtin.MustGenerateFRCMethodNum("GetClaims"): builtin.NewMethodMeta("GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaimsExported + 11: builtin.NewMethodMeta("ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTerms + builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): builtin.NewMethodMeta("ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTermsExported + 12: builtin.NewMethodMeta("RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaims + builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): builtin.NewMethodMeta("RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaimsExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)), // UniversalReceiverHook } diff --git a/builtin/v13/account/methods.go b/builtin/v13/account/methods.go index b6d11eee..1a727130 100644 --- a/builtin/v13/account/methods.go +++ b/builtin/v13/account/methods.go @@ -9,7 +9,7 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)}, // PubkeyAddress - builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)}, // AuthenticateMessage + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)), // PubkeyAddress + builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): builtin.NewMethodMeta("AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)), // AuthenticateMessage } diff --git a/builtin/v13/cron/methods.go b/builtin/v13/cron/methods.go index b84acb3a..97669037 100644 --- a/builtin/v13/cron/methods.go +++ b/builtin/v13/cron/methods.go @@ -6,6 +6,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // EpochTick + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // EpochTick } diff --git a/builtin/v13/datacap/methods.go b/builtin/v13/datacap/methods.go index 78b6d5f2..a19d4b41 100644 --- a/builtin/v13/datacap/methods.go +++ b/builtin/v13/datacap/methods.go @@ -7,20 +7,20 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - builtin.MustGenerateFRCMethodNum("Mint"): {"MintExported", *new(func(*MintParams) *MintReturn)}, // MintExported - builtin.MustGenerateFRCMethodNum("Destroy"): {"DestroyExported", *new(func(*DestroyParams) *BurnReturn)}, // DestroyExported - builtin.MustGenerateFRCMethodNum("Name"): {"NameExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // NameExported - builtin.MustGenerateFRCMethodNum("Symbol"): {"SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // SymbolExported - builtin.MustGenerateFRCMethodNum("TotalSupply"): {"TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)}, // TotalSupplyExported - builtin.MustGenerateFRCMethodNum("Balance"): {"BalanceExported", *new(func(*address.Address) *abi.TokenAmount)}, // BalanceExported - builtin.MustGenerateFRCMethodNum("Transfer"): {"TransferExported", *new(func(*TransferParams) *TransferReturn)}, // TransferExported - builtin.MustGenerateFRCMethodNum("TransferFrom"): {"TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)}, // TransferFromExported - builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): {"IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)}, // IncreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): {"DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)}, // DecreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("RevokeAllowance"): {"RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)}, // RevokeAllowanceExported - builtin.MustGenerateFRCMethodNum("Burn"): {"BurnExported", *new(func(*BurnParams) *BurnReturn)}, // BurnExported - builtin.MustGenerateFRCMethodNum("BurnFrom"): {"BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)}, // BurnFromExported - builtin.MustGenerateFRCMethodNum("Allowance"): {"AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)}, // AllowanceExported - builtin.MustGenerateFRCMethodNum("Granularity"): {"GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)}, // GranularityExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + builtin.MustGenerateFRCMethodNum("Mint"): builtin.NewMethodMeta("MintExported", *new(func(*MintParams) *MintReturn)), // MintExported + builtin.MustGenerateFRCMethodNum("Destroy"): builtin.NewMethodMeta("DestroyExported", *new(func(*DestroyParams) *BurnReturn)), // DestroyExported + builtin.MustGenerateFRCMethodNum("Name"): builtin.NewMethodMeta("NameExported", *new(func(*abi.EmptyValue) *abi.CborString)), // NameExported + builtin.MustGenerateFRCMethodNum("Symbol"): builtin.NewMethodMeta("SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)), // SymbolExported + builtin.MustGenerateFRCMethodNum("TotalSupply"): builtin.NewMethodMeta("TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)), // TotalSupplyExported + builtin.MustGenerateFRCMethodNum("Balance"): builtin.NewMethodMeta("BalanceExported", *new(func(*address.Address) *abi.TokenAmount)), // BalanceExported + builtin.MustGenerateFRCMethodNum("Transfer"): builtin.NewMethodMeta("TransferExported", *new(func(*TransferParams) *TransferReturn)), // TransferExported + builtin.MustGenerateFRCMethodNum("TransferFrom"): builtin.NewMethodMeta("TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)), // TransferFromExported + builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): builtin.NewMethodMeta("IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)), // IncreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): builtin.NewMethodMeta("DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)), // DecreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("RevokeAllowance"): builtin.NewMethodMeta("RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)), // RevokeAllowanceExported + builtin.MustGenerateFRCMethodNum("Burn"): builtin.NewMethodMeta("BurnExported", *new(func(*BurnParams) *BurnReturn)), // BurnExported + builtin.MustGenerateFRCMethodNum("BurnFrom"): builtin.NewMethodMeta("BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)), // BurnFromExported + builtin.MustGenerateFRCMethodNum("Allowance"): builtin.NewMethodMeta("AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)), // AllowanceExported + builtin.MustGenerateFRCMethodNum("Granularity"): builtin.NewMethodMeta("GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)), // GranularityExported } diff --git a/builtin/v13/eam/methods.go b/builtin/v13/eam/methods.go index b611d916..fb816a51 100644 --- a/builtin/v13/eam/methods.go +++ b/builtin/v13/eam/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"Create", *new(func(*CreateParams) *CreateReturn)}, // Create - 3: {"Create2", *new(func(*Create2Params) *Create2Return)}, // Create2 - 4: {"CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)}, // CreateExternal + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Create", *new(func(*CreateParams) *CreateReturn)), // Create + 3: builtin.NewMethodMeta("Create2", *new(func(*Create2Params) *Create2Return)), // Create2 + 4: builtin.NewMethodMeta("CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)), // CreateExternal } diff --git a/builtin/v13/ethaccount/methods.go b/builtin/v13/ethaccount/methods.go index f6d15d17..0a6ba48f 100644 --- a/builtin/v13/ethaccount/methods.go +++ b/builtin/v13/ethaccount/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)), } diff --git a/builtin/v13/evm/methods.go b/builtin/v13/evm/methods.go index da09181e..f89fd5fc 100644 --- a/builtin/v13/evm/methods.go +++ b/builtin/v13/evm/methods.go @@ -6,11 +6,11 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, - 2: {"Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)}, - 3: {"GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)}, - 4: {"GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)}, - 5: {"GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)}, - 6: {"InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)}, - builtin.MustGenerateFRCMethodNum("InvokeEVM"): {"InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), + 2: builtin.NewMethodMeta("Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)), + 3: builtin.NewMethodMeta("GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)), + 4: builtin.NewMethodMeta("GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)), + 5: builtin.NewMethodMeta("GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)), + 6: builtin.NewMethodMeta("InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)), + builtin.MustGenerateFRCMethodNum("InvokeEVM"): builtin.NewMethodMeta("InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)), } diff --git a/builtin/v13/init/methods.go b/builtin/v13/init/methods.go index d89a2dbc..eee468b8 100644 --- a/builtin/v13/init/methods.go +++ b/builtin/v13/init/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Exec", *new(func(*ExecParams) *ExecReturn)}, // Exec + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Exec", *new(func(*ExecParams) *ExecReturn)), // Exec // TODO Are we exporting Exec4 - 3: {"Exec4", *new(func(*Exec4Params) *ExecReturn)}, // Exec4 + 3: builtin.NewMethodMeta("Exec4", *new(func(*Exec4Params) *ExecReturn)), // Exec4 } diff --git a/builtin/v13/market/methods.go b/builtin/v13/market/methods.go index b8327581..d485df1e 100644 --- a/builtin/v13/market/methods.go +++ b/builtin/v13/market/methods.go @@ -8,30 +8,30 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"AddBalance", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalance - builtin.MustGenerateFRCMethodNum("AddBalance"): {"AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalanceExported - 3: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 4: {"PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDeals - builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): {"PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDealsExported - 5: {"VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)}, // VerifyDealsForActivation - 6: {"ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)}, // ActivateDeals - 7: {"OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)}, // OnMinerSectorsTerminate - 8: {"ComputeDataCommitment", nil}, // deprecated - 9: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - builtin.MustGenerateFRCMethodNum("GetBalance"): {"GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)}, // GetBalanceExported - builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): {"GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)}, // GetDealDataCommitmentExported - builtin.MustGenerateFRCMethodNum("GetDealClient"): {"GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)}, // GetDealClientExported - builtin.MustGenerateFRCMethodNum("GetDealProvider"): {"GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)}, // GetDealProviderExported - builtin.MustGenerateFRCMethodNum("GetDealLabel"): {"GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)}, // GetDealLabelExported - builtin.MustGenerateFRCMethodNum("GetDealTerm"): {"GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)}, // GetDealTermExported - builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): {"GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)}, // GetDealTotalPriceExported - builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): {"GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)}, // GetDealClientCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): {"GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)}, // GetDealProviderCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealVerified"): {"GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)}, // GetDealVerifiedExported - builtin.MustGenerateFRCMethodNum("GetDealActivation"): {"GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)}, // GetDealActivationExported - builtin.MustGenerateFRCMethodNum("GetDealSector"): {"GetDealSectorExported", *new(func(*GetDealSectorParams) *GetDealSectorReturn)}, // GetDealSectorExported - builtin.MethodSectorContentChanged: {"SectorContentChanged", *new(func(*miner.SectorContentChangedParams) *miner.SectorContentChangedReturn)}, // SectorContentChanged - builtin.MustGenerateFRCMethodNum("SettleDealPayments"): {"SettleDealPaymentsExported", *new(func(*SettleDealPaymentsParams) *SettleDealPaymentsReturn)}, // SettleDealPaymentsExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddBalance", *new(func(*address.Address) *abi.EmptyValue)), // AddBalance + builtin.MustGenerateFRCMethodNum("AddBalance"): builtin.NewMethodMeta("AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)), // AddBalanceExported + 3: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 4: builtin.NewMethodMeta("PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDeals + builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): builtin.NewMethodMeta("PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDealsExported + 5: builtin.NewMethodMeta("VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)), // VerifyDealsForActivation + 6: builtin.NewMethodMeta("ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)), // ActivateDeals + 7: builtin.NewMethodMeta("OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)), // OnMinerSectorsTerminate + 8: builtin.NewMethodMeta("ComputeDataCommitment", nil), // deprecated + 9: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + builtin.MustGenerateFRCMethodNum("GetBalance"): builtin.NewMethodMeta("GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)), // GetBalanceExported + builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): builtin.NewMethodMeta("GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)), // GetDealDataCommitmentExported + builtin.MustGenerateFRCMethodNum("GetDealClient"): builtin.NewMethodMeta("GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)), // GetDealClientExported + builtin.MustGenerateFRCMethodNum("GetDealProvider"): builtin.NewMethodMeta("GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)), // GetDealProviderExported + builtin.MustGenerateFRCMethodNum("GetDealLabel"): builtin.NewMethodMeta("GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)), // GetDealLabelExported + builtin.MustGenerateFRCMethodNum("GetDealTerm"): builtin.NewMethodMeta("GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)), // GetDealTermExported + builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): builtin.NewMethodMeta("GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)), // GetDealTotalPriceExported + builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): builtin.NewMethodMeta("GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)), // GetDealClientCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): builtin.NewMethodMeta("GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)), // GetDealProviderCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealVerified"): builtin.NewMethodMeta("GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)), // GetDealVerifiedExported + builtin.MustGenerateFRCMethodNum("GetDealActivation"): builtin.NewMethodMeta("GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)), // GetDealActivationExported + builtin.MustGenerateFRCMethodNum("GetDealSector"): builtin.NewMethodMeta("GetDealSectorExported", *new(func(*GetDealSectorParams) *GetDealSectorReturn)), // GetDealSectorExported + builtin.MethodSectorContentChanged: builtin.NewMethodMeta("SectorContentChanged", *new(func(*miner.SectorContentChangedParams) *miner.SectorContentChangedReturn)), // SectorContentChanged + builtin.MustGenerateFRCMethodNum("SettleDealPayments"): builtin.NewMethodMeta("SettleDealPaymentsExported", *new(func(*SettleDealPaymentsParams) *SettleDealPaymentsReturn)), // SettleDealPaymentsExported } diff --git a/builtin/v13/miner/methods.go b/builtin/v13/miner/methods.go index 7f33f42f..ea9e1ff9 100644 --- a/builtin/v13/miner/methods.go +++ b/builtin/v13/miner/methods.go @@ -9,57 +9,57 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)}, // ControlAddresses - 3: {"ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): {"ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddressExported - 4: {"ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerID - builtin.MustGenerateFRCMethodNum("ChangePeerID"): {"ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerIDExported - 5: {"SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)}, // SubmitWindowedPoSt - 6: {"PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)}, // PreCommitSector - 7: {"ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)}, // ProveCommitSector - 8: {"ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)}, // ExtendSectorExpiration - 9: {"TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)}, // TerminateSectors - 10: {"DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)}, // DeclareFaults - 11: {"DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)}, // DeclareFaultsRecovered - 12: {"OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)}, // OnDeferredCronEvent - 13: {"CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)}, // CheckSectorProven - 14: {"ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)}, // ApplyRewards - 15: {"ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)}, // ReportConsensusFault - 16: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 17: {"ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)}, // ConfirmSectorProofsValid - 18: {"ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrs - builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): {"ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrsExported - 19: {"CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)}, // CompactPartitions - 20: {"CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)}, // CompactSectorNumbers - 21: {"ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): {"ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddressExported - 22: {"RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebt - builtin.MustGenerateFRCMethodNum("RepayDebt"): {"RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebtExported - 23: {"ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddress - builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): {"ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddressExported - 24: {"DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)}, // DisputeWindowedPoSt - 25: {"PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)}, // PreCommitSectorBatch - 26: {"ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)}, // ProveCommitAggregate - 27: {"ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)}, // ProveReplicaUpdates + 1: builtin.NewMethodMeta("Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)), // ControlAddresses + 3: builtin.NewMethodMeta("ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): builtin.NewMethodMeta("ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddressExported + 4: builtin.NewMethodMeta("ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerID + builtin.MustGenerateFRCMethodNum("ChangePeerID"): builtin.NewMethodMeta("ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerIDExported + 5: builtin.NewMethodMeta("SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)), // SubmitWindowedPoSt + 6: builtin.NewMethodMeta("PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)), // PreCommitSector + 7: builtin.NewMethodMeta("ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)), // ProveCommitSector + 8: builtin.NewMethodMeta("ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)), // ExtendSectorExpiration + 9: builtin.NewMethodMeta("TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)), // TerminateSectors + 10: builtin.NewMethodMeta("DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)), // DeclareFaults + 11: builtin.NewMethodMeta("DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)), // DeclareFaultsRecovered + 12: builtin.NewMethodMeta("OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)), // OnDeferredCronEvent + 13: builtin.NewMethodMeta("CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)), // CheckSectorProven + 14: builtin.NewMethodMeta("ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)), // ApplyRewards + 15: builtin.NewMethodMeta("ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)), // ReportConsensusFault + 16: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 17: builtin.NewMethodMeta("ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)), // ConfirmSectorProofsValid + 18: builtin.NewMethodMeta("ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrs + builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): builtin.NewMethodMeta("ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrsExported + 19: builtin.NewMethodMeta("CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)), // CompactPartitions + 20: builtin.NewMethodMeta("CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)), // CompactSectorNumbers + 21: builtin.NewMethodMeta("ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): builtin.NewMethodMeta("ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddressExported + 22: builtin.NewMethodMeta("RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebt + builtin.MustGenerateFRCMethodNum("RepayDebt"): builtin.NewMethodMeta("RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebtExported + 23: builtin.NewMethodMeta("ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddress + builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): builtin.NewMethodMeta("ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddressExported + 24: builtin.NewMethodMeta("DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)), // DisputeWindowedPoSt + 25: builtin.NewMethodMeta("PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)), // PreCommitSectorBatch + 26: builtin.NewMethodMeta("ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)), // ProveCommitAggregate + 27: builtin.NewMethodMeta("ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)), // ProveReplicaUpdates // NB: the name of this method must not change across actor/network versions - 28: {"PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)}, // PreCommitSectorBatch2 + 28: builtin.NewMethodMeta("PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)), // PreCommitSectorBatch2 // NB: the name of this method must not change across actor/network versions - 29: {"ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)}, // ProveReplicaUpdates2 - 30: {"ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiary - builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): {"ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiaryExported - 31: {"GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)}, // GetBeneficiary + 29: builtin.NewMethodMeta("ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)), // ProveReplicaUpdates2 + 30: builtin.NewMethodMeta("ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiary + builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): builtin.NewMethodMeta("ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiaryExported + 31: builtin.NewMethodMeta("GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)), // GetBeneficiary // NB: the name of this method must not change across actor/network versions - 32: {"ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)}, // ExtendSectorExpiration2 - builtin.MustGenerateFRCMethodNum("GetOwner"): {"GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)}, // GetOwnerExported - builtin.MustGenerateFRCMethodNum("IsControllingAddress"): {"IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)}, // IsControllingAddressExported - builtin.MustGenerateFRCMethodNum("GetSectorSize"): {"GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)}, // GetSectorSizeExported - builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): {"GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)}, // GetAvailableBalanceExported - builtin.MustGenerateFRCMethodNum("GetVestingFunds"): {"GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)}, // GetVestingFundsExported - builtin.MustGenerateFRCMethodNum("GetPeerID"): {"GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)}, // GetPeerIDExported - builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): {"GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)}, // GetMultiaddrsExported + 32: builtin.NewMethodMeta("ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)), // ExtendSectorExpiration2 + builtin.MustGenerateFRCMethodNum("GetOwner"): builtin.NewMethodMeta("GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)), // GetOwnerExported + builtin.MustGenerateFRCMethodNum("IsControllingAddress"): builtin.NewMethodMeta("IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)), // IsControllingAddressExported + builtin.MustGenerateFRCMethodNum("GetSectorSize"): builtin.NewMethodMeta("GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)), // GetSectorSizeExported + builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): builtin.NewMethodMeta("GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)), // GetAvailableBalanceExported + builtin.MustGenerateFRCMethodNum("GetVestingFunds"): builtin.NewMethodMeta("GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)), // GetVestingFundsExported + builtin.MustGenerateFRCMethodNum("GetPeerID"): builtin.NewMethodMeta("GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)), // GetPeerIDExported + builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): builtin.NewMethodMeta("GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)), // GetMultiaddrsExported // 33 MovePartitions - 34: {"ProveCommitSectors3", *new(func(*ProveCommitSectors3Params) *ProveCommitSectors3Return)}, // ProveCommitSectors3 - 35: {"ProveReplicaUpdates3", *new(func(*ProveReplicaUpdates3Params) *ProveReplicaUpdates3Return)}, // ProveReplicaUpdates3 + 34: builtin.NewMethodMeta("ProveCommitSectors3", *new(func(*ProveCommitSectors3Params) *ProveCommitSectors3Return)), // ProveCommitSectors3 + 35: builtin.NewMethodMeta("ProveReplicaUpdates3", *new(func(*ProveReplicaUpdates3Params) *ProveReplicaUpdates3Return)), // ProveReplicaUpdates3 } diff --git a/builtin/v13/multisig/methods.go b/builtin/v13/multisig/methods.go index 918eaeaf..3970193a 100644 --- a/builtin/v13/multisig/methods.go +++ b/builtin/v13/multisig/methods.go @@ -6,22 +6,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Propose", *new(func(*ProposeParams) *ProposeReturn)}, // Propose - builtin.MustGenerateFRCMethodNum("Propose"): {"ProposeExported", *new(func(*ProposeParams) *ProposeReturn)}, // ProposeExported - 3: {"Approve", *new(func(*TxnIDParams) *ApproveReturn)}, // Approve - builtin.MustGenerateFRCMethodNum("Approve"): {"ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)}, // ApproveExported - 4: {"Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)}, // Cancel - builtin.MustGenerateFRCMethodNum("Cancel"): {"CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)}, // CancelExported - 5: {"AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSigner - builtin.MustGenerateFRCMethodNum("AddSigner"): {"AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSignerExported - 6: {"RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSigner - builtin.MustGenerateFRCMethodNum("RemoveSigner"): {"RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSignerExported - 7: {"SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSigner - builtin.MustGenerateFRCMethodNum("SwapSigner"): {"SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSignerExported - 8: {"ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThreshold - builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): {"ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThresholdExported - 9: {"LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalance - builtin.MustGenerateFRCMethodNum("LockBalance"): {"LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalanceExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Propose", *new(func(*ProposeParams) *ProposeReturn)), // Propose + builtin.MustGenerateFRCMethodNum("Propose"): builtin.NewMethodMeta("ProposeExported", *new(func(*ProposeParams) *ProposeReturn)), // ProposeExported + 3: builtin.NewMethodMeta("Approve", *new(func(*TxnIDParams) *ApproveReturn)), // Approve + builtin.MustGenerateFRCMethodNum("Approve"): builtin.NewMethodMeta("ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)), // ApproveExported + 4: builtin.NewMethodMeta("Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)), // Cancel + builtin.MustGenerateFRCMethodNum("Cancel"): builtin.NewMethodMeta("CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)), // CancelExported + 5: builtin.NewMethodMeta("AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSigner + builtin.MustGenerateFRCMethodNum("AddSigner"): builtin.NewMethodMeta("AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSignerExported + 6: builtin.NewMethodMeta("RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSigner + builtin.MustGenerateFRCMethodNum("RemoveSigner"): builtin.NewMethodMeta("RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSignerExported + 7: builtin.NewMethodMeta("SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSigner + builtin.MustGenerateFRCMethodNum("SwapSigner"): builtin.NewMethodMeta("SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSignerExported + 8: builtin.NewMethodMeta("ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThreshold + builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): builtin.NewMethodMeta("ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThresholdExported + 9: builtin.NewMethodMeta("LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalance + builtin.MustGenerateFRCMethodNum("LockBalance"): builtin.NewMethodMeta("LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalanceExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)), // UniversalReceiverHook } diff --git a/builtin/v13/paych/methods.go b/builtin/v13/paych/methods.go index b4beca7d..e034d4aa 100644 --- a/builtin/v13/paych/methods.go +++ b/builtin/v13/paych/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)}, // UpdateChannelState - 3: {"Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Settle - 4: {"Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Collect + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)), // UpdateChannelState + 3: builtin.NewMethodMeta("Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Settle + 4: builtin.NewMethodMeta("Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Collect } diff --git a/builtin/v13/power/methods.go b/builtin/v13/power/methods.go index 2ce5a1ff..8d3839e8 100644 --- a/builtin/v13/power/methods.go +++ b/builtin/v13/power/methods.go @@ -7,18 +7,18 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMiner - builtin.MustGenerateFRCMethodNum("CreateMiner"): {"CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMinerExported - 3: {"UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)}, // UpdateClaimedPower - 4: {"EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)}, // EnrollCronEvent - 5: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - 6: {"UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)}, // UpdatePledgeTotal - 7: {"OnConsensusFault", nil}, // deprecated - 8: {"SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)}, // SubmitPoRepForBulkVerify - 9: {"CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)}, // CurrentTotalPower - builtin.MustGenerateFRCMethodNum("NetworkRawPower"): {"NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)}, // NetworkRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerRawPower"): {"MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)}, // MinerRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerCount"): {"MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)}, // MinerCountExported - builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): {"MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)}, // MinerConsensusCountExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMiner + builtin.MustGenerateFRCMethodNum("CreateMiner"): builtin.NewMethodMeta("CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMinerExported + 3: builtin.NewMethodMeta("UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)), // UpdateClaimedPower + 4: builtin.NewMethodMeta("EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)), // EnrollCronEvent + 5: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + 6: builtin.NewMethodMeta("UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)), // UpdatePledgeTotal + 7: builtin.NewMethodMeta("OnConsensusFault", nil), // deprecated + 8: builtin.NewMethodMeta("SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)), // SubmitPoRepForBulkVerify + 9: builtin.NewMethodMeta("CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)), // CurrentTotalPower + builtin.MustGenerateFRCMethodNum("NetworkRawPower"): builtin.NewMethodMeta("NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)), // NetworkRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerRawPower"): builtin.NewMethodMeta("MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)), // MinerRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerCount"): builtin.NewMethodMeta("MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)), // MinerCountExported + builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): builtin.NewMethodMeta("MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)), // MinerConsensusCountExported } diff --git a/builtin/v13/reward/methods.go b/builtin/v13/reward/methods.go index b6577f10..b0d043e5 100644 --- a/builtin/v13/reward/methods.go +++ b/builtin/v13/reward/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // Constructor - 2: {"AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)}, // AwardBlockReward - 3: {"ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)}, // ThisEpochReward - 4: {"UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // UpdateNetworkKPI + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)), // AwardBlockReward + 3: builtin.NewMethodMeta("ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)), // ThisEpochReward + 4: builtin.NewMethodMeta("UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)), // UpdateNetworkKPI } diff --git a/builtin/v13/system/methods.go b/builtin/v13/system/methods.go index e33f9982..22e7cf89 100644 --- a/builtin/v13/system/methods.go +++ b/builtin/v13/system/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor } diff --git a/builtin/v13/verifreg/methods.go b/builtin/v13/verifreg/methods.go index 1a42e805..ee8769db 100644 --- a/builtin/v13/verifreg/methods.go +++ b/builtin/v13/verifreg/methods.go @@ -7,22 +7,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)}, // AddVerifier - 3: {"RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)}, // RemoveVerifier - 4: {"AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClient - builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): {"AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClientExported - 5: {"UseBytes", nil}, // deprecated - 6: {"RestoreBytes", nil}, // deprecated - 7: {"RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)}, // RemoveVerifiedClientDataCap - 8: {"RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocations - builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): {"RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocationsExported - 9: {"ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)}, // ClaimAllocations - 10: {"GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaims - builtin.MustGenerateFRCMethodNum("GetClaims"): {"GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaimsExported - 11: {"ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTerms - builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): {"ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTermsExported - 12: {"RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaims - builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): {"RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaimsExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)), // AddVerifier + 3: builtin.NewMethodMeta("RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)), // RemoveVerifier + 4: builtin.NewMethodMeta("AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClient + builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): builtin.NewMethodMeta("AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClientExported + 5: builtin.NewMethodMeta("UseBytes", nil), // deprecated + 6: builtin.NewMethodMeta("RestoreBytes", nil), // deprecated + 7: builtin.NewMethodMeta("RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)), // RemoveVerifiedClientDataCap + 8: builtin.NewMethodMeta("RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocations + builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): builtin.NewMethodMeta("RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocationsExported + 9: builtin.NewMethodMeta("ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)), // ClaimAllocations + 10: builtin.NewMethodMeta("GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaims + builtin.MustGenerateFRCMethodNum("GetClaims"): builtin.NewMethodMeta("GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaimsExported + 11: builtin.NewMethodMeta("ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTerms + builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): builtin.NewMethodMeta("ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTermsExported + 12: builtin.NewMethodMeta("RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaims + builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): builtin.NewMethodMeta("RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaimsExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)), // UniversalReceiverHook } diff --git a/builtin/v14/account/methods.go b/builtin/v14/account/methods.go index b6d11eee..1a727130 100644 --- a/builtin/v14/account/methods.go +++ b/builtin/v14/account/methods.go @@ -9,7 +9,7 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)}, // PubkeyAddress - builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)}, // AuthenticateMessage + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)), // PubkeyAddress + builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): builtin.NewMethodMeta("AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)), // AuthenticateMessage } diff --git a/builtin/v14/cron/methods.go b/builtin/v14/cron/methods.go index b84acb3a..97669037 100644 --- a/builtin/v14/cron/methods.go +++ b/builtin/v14/cron/methods.go @@ -6,6 +6,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // EpochTick + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // EpochTick } diff --git a/builtin/v14/datacap/methods.go b/builtin/v14/datacap/methods.go index 78b6d5f2..a19d4b41 100644 --- a/builtin/v14/datacap/methods.go +++ b/builtin/v14/datacap/methods.go @@ -7,20 +7,20 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - builtin.MustGenerateFRCMethodNum("Mint"): {"MintExported", *new(func(*MintParams) *MintReturn)}, // MintExported - builtin.MustGenerateFRCMethodNum("Destroy"): {"DestroyExported", *new(func(*DestroyParams) *BurnReturn)}, // DestroyExported - builtin.MustGenerateFRCMethodNum("Name"): {"NameExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // NameExported - builtin.MustGenerateFRCMethodNum("Symbol"): {"SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)}, // SymbolExported - builtin.MustGenerateFRCMethodNum("TotalSupply"): {"TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)}, // TotalSupplyExported - builtin.MustGenerateFRCMethodNum("Balance"): {"BalanceExported", *new(func(*address.Address) *abi.TokenAmount)}, // BalanceExported - builtin.MustGenerateFRCMethodNum("Transfer"): {"TransferExported", *new(func(*TransferParams) *TransferReturn)}, // TransferExported - builtin.MustGenerateFRCMethodNum("TransferFrom"): {"TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)}, // TransferFromExported - builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): {"IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)}, // IncreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): {"DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)}, // DecreaseAllowanceExported - builtin.MustGenerateFRCMethodNum("RevokeAllowance"): {"RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)}, // RevokeAllowanceExported - builtin.MustGenerateFRCMethodNum("Burn"): {"BurnExported", *new(func(*BurnParams) *BurnReturn)}, // BurnExported - builtin.MustGenerateFRCMethodNum("BurnFrom"): {"BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)}, // BurnFromExported - builtin.MustGenerateFRCMethodNum("Allowance"): {"AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)}, // AllowanceExported - builtin.MustGenerateFRCMethodNum("Granularity"): {"GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)}, // GranularityExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + builtin.MustGenerateFRCMethodNum("Mint"): builtin.NewMethodMeta("MintExported", *new(func(*MintParams) *MintReturn)), // MintExported + builtin.MustGenerateFRCMethodNum("Destroy"): builtin.NewMethodMeta("DestroyExported", *new(func(*DestroyParams) *BurnReturn)), // DestroyExported + builtin.MustGenerateFRCMethodNum("Name"): builtin.NewMethodMeta("NameExported", *new(func(*abi.EmptyValue) *abi.CborString)), // NameExported + builtin.MustGenerateFRCMethodNum("Symbol"): builtin.NewMethodMeta("SymbolExported", *new(func(*abi.EmptyValue) *abi.CborString)), // SymbolExported + builtin.MustGenerateFRCMethodNum("TotalSupply"): builtin.NewMethodMeta("TotalSupplyExported", *new(func(*abi.EmptyValue) *abi.TokenAmount)), // TotalSupplyExported + builtin.MustGenerateFRCMethodNum("Balance"): builtin.NewMethodMeta("BalanceExported", *new(func(*address.Address) *abi.TokenAmount)), // BalanceExported + builtin.MustGenerateFRCMethodNum("Transfer"): builtin.NewMethodMeta("TransferExported", *new(func(*TransferParams) *TransferReturn)), // TransferExported + builtin.MustGenerateFRCMethodNum("TransferFrom"): builtin.NewMethodMeta("TransferFromExported", *new(func(*TransferFromParams) *TransferFromReturn)), // TransferFromExported + builtin.MustGenerateFRCMethodNum("IncreaseAllowance"): builtin.NewMethodMeta("IncreaseAllowanceExported", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)), // IncreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("DecreaseAllowance"): builtin.NewMethodMeta("DecreaseAllowanceExported", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)), // DecreaseAllowanceExported + builtin.MustGenerateFRCMethodNum("RevokeAllowance"): builtin.NewMethodMeta("RevokeAllowanceExported", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)), // RevokeAllowanceExported + builtin.MustGenerateFRCMethodNum("Burn"): builtin.NewMethodMeta("BurnExported", *new(func(*BurnParams) *BurnReturn)), // BurnExported + builtin.MustGenerateFRCMethodNum("BurnFrom"): builtin.NewMethodMeta("BurnFromExported", *new(func(*BurnFromParams) *BurnFromReturn)), // BurnFromExported + builtin.MustGenerateFRCMethodNum("Allowance"): builtin.NewMethodMeta("AllowanceExported", *new(func(*GetAllowanceParams) *abi.TokenAmount)), // AllowanceExported + builtin.MustGenerateFRCMethodNum("Granularity"): builtin.NewMethodMeta("GranularityExported", *new(func(value *abi.EmptyValue) *GranularityReturn)), // GranularityExported } diff --git a/builtin/v14/eam/methods.go b/builtin/v14/eam/methods.go index b611d916..fb816a51 100644 --- a/builtin/v14/eam/methods.go +++ b/builtin/v14/eam/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"Create", *new(func(*CreateParams) *CreateReturn)}, // Create - 3: {"Create2", *new(func(*Create2Params) *Create2Return)}, // Create2 - 4: {"CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)}, // CreateExternal + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Create", *new(func(*CreateParams) *CreateReturn)), // Create + 3: builtin.NewMethodMeta("Create2", *new(func(*Create2Params) *Create2Return)), // Create2 + 4: builtin.NewMethodMeta("CreateExternal", *new(func(*abi.CborBytes) *CreateExternalReturn)), // CreateExternal } diff --git a/builtin/v14/ethaccount/methods.go b/builtin/v14/ethaccount/methods.go index f6d15d17..0a6ba48f 100644 --- a/builtin/v14/ethaccount/methods.go +++ b/builtin/v14/ethaccount/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)), } diff --git a/builtin/v14/evm/methods.go b/builtin/v14/evm/methods.go index da09181e..f89fd5fc 100644 --- a/builtin/v14/evm/methods.go +++ b/builtin/v14/evm/methods.go @@ -6,11 +6,11 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, - 2: {"Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)}, - 3: {"GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)}, - 4: {"GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)}, - 5: {"GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)}, - 6: {"InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)}, - builtin.MustGenerateFRCMethodNum("InvokeEVM"): {"InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)}, + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), + 2: builtin.NewMethodMeta("Resurrect", *new(func(*ResurrectParams) *abi.EmptyValue)), + 3: builtin.NewMethodMeta("GetBytecode", *new(func(*abi.EmptyValue) *GetBytecodeReturn)), + 4: builtin.NewMethodMeta("GetBytecodeHash", *new(func(*abi.EmptyValue) *abi.CborBytes)), + 5: builtin.NewMethodMeta("GetStorageAt", *new(func(*GetStorageAtParams) *abi.CborBytes)), + 6: builtin.NewMethodMeta("InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)), + builtin.MustGenerateFRCMethodNum("InvokeEVM"): builtin.NewMethodMeta("InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)), } diff --git a/builtin/v14/init/methods.go b/builtin/v14/init/methods.go index d89a2dbc..eee468b8 100644 --- a/builtin/v14/init/methods.go +++ b/builtin/v14/init/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Exec", *new(func(*ExecParams) *ExecReturn)}, // Exec + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Exec", *new(func(*ExecParams) *ExecReturn)), // Exec // TODO Are we exporting Exec4 - 3: {"Exec4", *new(func(*Exec4Params) *ExecReturn)}, // Exec4 + 3: builtin.NewMethodMeta("Exec4", *new(func(*Exec4Params) *ExecReturn)), // Exec4 } diff --git a/builtin/v14/market/methods.go b/builtin/v14/market/methods.go index 3cdb9e4c..18b2e129 100644 --- a/builtin/v14/market/methods.go +++ b/builtin/v14/market/methods.go @@ -8,30 +8,30 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"AddBalance", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalance - builtin.MustGenerateFRCMethodNum("AddBalance"): {"AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalanceExported - 3: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 4: {"PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDeals - builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): {"PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDealsExported - 5: {"VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)}, // VerifyDealsForActivation - 6: {"ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)}, // ActivateDeals - 7: {"OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)}, // OnMinerSectorsTerminate - 8: {"ComputeDataCommitment", nil}, // deprecated - 9: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - builtin.MustGenerateFRCMethodNum("GetBalance"): {"GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)}, // GetBalanceExported - builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): {"GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)}, // GetDealDataCommitmentExported - builtin.MustGenerateFRCMethodNum("GetDealClient"): {"GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)}, // GetDealClientExported - builtin.MustGenerateFRCMethodNum("GetDealProvider"): {"GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)}, // GetDealProviderExported - builtin.MustGenerateFRCMethodNum("GetDealLabel"): {"GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)}, // GetDealLabelExported - builtin.MustGenerateFRCMethodNum("GetDealTerm"): {"GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)}, // GetDealTermExported - builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): {"GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)}, // GetDealTotalPriceExported - builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): {"GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)}, // GetDealClientCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): {"GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)}, // GetDealProviderCollateralExported - builtin.MustGenerateFRCMethodNum("GetDealVerified"): {"GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)}, // GetDealVerifiedExported - builtin.MustGenerateFRCMethodNum("GetDealActivation"): {"GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)}, // GetDealActivationExported - builtin.MustGenerateFRCMethodNum("GetDealSector"): {"GetDealSectorExported", *new(func(*GetDealSectorParams) *GetDealSectorReturn)}, // GetDealSectorExported - builtin.MethodSectorContentChanged: {"SectorContentChanged", *new(func(*miner.SectorContentChangedParams) *miner.SectorContentChangedReturn)}, // SectorContentChanged - builtin.MustGenerateFRCMethodNum("SettleDealPayments"): {"SettleDealPaymentsExported", *new(func(*SettleDealPaymentsParams) *SettleDealPaymentsReturn)}, // SettleDealPaymentsExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddBalance", *new(func(*address.Address) *abi.EmptyValue)), // AddBalance + builtin.MustGenerateFRCMethodNum("AddBalance"): builtin.NewMethodMeta("AddBalanceExported", *new(func(*address.Address) *abi.EmptyValue)), // AddBalanceExported + 3: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 4: builtin.NewMethodMeta("PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDeals + builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): builtin.NewMethodMeta("PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDealsExported + 5: builtin.NewMethodMeta("VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)), // VerifyDealsForActivation + 6: builtin.NewMethodMeta("ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)), // ActivateDeals + 7: builtin.NewMethodMeta("OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)), // OnMinerSectorsTerminate + 8: builtin.NewMethodMeta("ComputeDataCommitment", nil), // deprecated + 9: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + builtin.MustGenerateFRCMethodNum("GetBalance"): builtin.NewMethodMeta("GetBalanceExported", *new(func(*address.Address) *GetBalanceReturn)), // GetBalanceExported + builtin.MustGenerateFRCMethodNum("GetDealDataCommitment"): builtin.NewMethodMeta("GetDealDataCommitmentExported", *new(func(*GetDealDataCommitmentParams) *GetDealDataCommitmentReturn)), // GetDealDataCommitmentExported + builtin.MustGenerateFRCMethodNum("GetDealClient"): builtin.NewMethodMeta("GetDealClientExported", *new(func(*GetDealClientParams) *GetDealClientReturn)), // GetDealClientExported + builtin.MustGenerateFRCMethodNum("GetDealProvider"): builtin.NewMethodMeta("GetDealProviderExported", *new(func(*GetDealProviderParams) *GetDealProviderReturn)), // GetDealProviderExported + builtin.MustGenerateFRCMethodNum("GetDealLabel"): builtin.NewMethodMeta("GetDealLabelExported", *new(func(*GetDealLabelParams) *GetDealLabelReturn)), // GetDealLabelExported + builtin.MustGenerateFRCMethodNum("GetDealTerm"): builtin.NewMethodMeta("GetDealTermExported", *new(func(*GetDealTermParams) *GetDealTermReturn)), // GetDealTermExported + builtin.MustGenerateFRCMethodNum("GetDealTotalPrice"): builtin.NewMethodMeta("GetDealTotalPriceExported", *new(func(*GetDealTotalPriceParams) *GetDealTotalPriceReturn)), // GetDealTotalPriceExported + builtin.MustGenerateFRCMethodNum("GetDealClientCollateral"): builtin.NewMethodMeta("GetDealClientCollateralExported", *new(func(*GetDealClientCollateralParams) *GetDealClientCollateralReturn)), // GetDealClientCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealProviderCollateral"): builtin.NewMethodMeta("GetDealProviderCollateralExported", *new(func(*GetDealProviderCollateralParams) *GetDealProviderCollateralReturn)), // GetDealProviderCollateralExported + builtin.MustGenerateFRCMethodNum("GetDealVerified"): builtin.NewMethodMeta("GetDealVerifiedExported", *new(func(*GetDealVerifiedParams) *GetDealVerifiedReturn)), // GetDealVerifiedExported + builtin.MustGenerateFRCMethodNum("GetDealActivation"): builtin.NewMethodMeta("GetDealActivationExported", *new(func(*GetDealActivationParams) *GetDealActivationReturn)), // GetDealActivationExported + builtin.MustGenerateFRCMethodNum("GetDealSector"): builtin.NewMethodMeta("GetDealSectorExported", *new(func(*GetDealSectorParams) *GetDealSectorReturn)), // GetDealSectorExported + builtin.MethodSectorContentChanged: builtin.NewMethodMeta("SectorContentChanged", *new(func(*miner.SectorContentChangedParams) *miner.SectorContentChangedReturn)), // SectorContentChanged + builtin.MustGenerateFRCMethodNum("SettleDealPayments"): builtin.NewMethodMeta("SettleDealPaymentsExported", *new(func(*SettleDealPaymentsParams) *SettleDealPaymentsReturn)), // SettleDealPaymentsExported } diff --git a/builtin/v14/miner/methods.go b/builtin/v14/miner/methods.go index c7bba158..9b08afac 100644 --- a/builtin/v14/miner/methods.go +++ b/builtin/v14/miner/methods.go @@ -9,58 +9,58 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)}, // ControlAddresses - 3: {"ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): {"ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddressExported - 4: {"ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerID - builtin.MustGenerateFRCMethodNum("ChangePeerID"): {"ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerIDExported - 5: {"SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)}, // SubmitWindowedPoSt - 6: {"PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)}, // PreCommitSector - 7: {"ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)}, // ProveCommitSector - 8: {"ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)}, // ExtendSectorExpiration - 9: {"TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)}, // TerminateSectors - 10: {"DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)}, // DeclareFaults - 11: {"DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)}, // DeclareFaultsRecovered - 12: {"OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)}, // OnDeferredCronEvent - 13: {"CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)}, // CheckSectorProven - 14: {"ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)}, // ApplyRewards - 15: {"ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)}, // ReportConsensusFault - 16: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - builtin.MustGenerateFRCMethodNum("WithdrawBalance"): {"WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalanceExported - 17: {"InternalSectorSetupForPreseal", *new(func(*InternalSectorSetupForPresealParams) *abi.EmptyValue)}, // InternalSectorSetupForPreseal - 18: {"ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrs - builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): {"ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrsExported - 19: {"CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)}, // CompactPartitions - 20: {"CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)}, // CompactSectorNumbers - 21: {"ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddress - builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): {"ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmChangeWorkerAddressExported - 22: {"RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebt - builtin.MustGenerateFRCMethodNum("RepayDebt"): {"RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebtExported - 23: {"ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddress - builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): {"ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddressExported - 24: {"DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)}, // DisputeWindowedPoSt - 25: {"PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)}, // PreCommitSectorBatch - 26: {"ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)}, // ProveCommitAggregate - 27: {"ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)}, // ProveReplicaUpdates + 1: builtin.NewMethodMeta("Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)), // ControlAddresses + 3: builtin.NewMethodMeta("ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ChangeWorkerAddress"): builtin.NewMethodMeta("ChangeWorkerAddressExported", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddressExported + 4: builtin.NewMethodMeta("ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerID + builtin.MustGenerateFRCMethodNum("ChangePeerID"): builtin.NewMethodMeta("ChangePeerIDExported", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerIDExported + 5: builtin.NewMethodMeta("SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)), // SubmitWindowedPoSt + 6: builtin.NewMethodMeta("PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)), // PreCommitSector + 7: builtin.NewMethodMeta("ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)), // ProveCommitSector + 8: builtin.NewMethodMeta("ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)), // ExtendSectorExpiration + 9: builtin.NewMethodMeta("TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)), // TerminateSectors + 10: builtin.NewMethodMeta("DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)), // DeclareFaults + 11: builtin.NewMethodMeta("DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)), // DeclareFaultsRecovered + 12: builtin.NewMethodMeta("OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)), // OnDeferredCronEvent + 13: builtin.NewMethodMeta("CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)), // CheckSectorProven + 14: builtin.NewMethodMeta("ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)), // ApplyRewards + 15: builtin.NewMethodMeta("ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)), // ReportConsensusFault + 16: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + builtin.MustGenerateFRCMethodNum("WithdrawBalance"): builtin.NewMethodMeta("WithdrawBalanceExported", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalanceExported + 17: builtin.NewMethodMeta("InternalSectorSetupForPreseal", *new(func(*InternalSectorSetupForPresealParams) *abi.EmptyValue)), // InternalSectorSetupForPreseal + 18: builtin.NewMethodMeta("ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrs + builtin.MustGenerateFRCMethodNum("ChangeMultiaddrs"): builtin.NewMethodMeta("ChangeMultiaddrsExported", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrsExported + 19: builtin.NewMethodMeta("CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)), // CompactPartitions + 20: builtin.NewMethodMeta("CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)), // CompactSectorNumbers + 21: builtin.NewMethodMeta("ConfirmChangeWorkerAddress", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddress + builtin.MustGenerateFRCMethodNum("ConfirmChangeWorkerAddress"): builtin.NewMethodMeta("ConfirmChangeWorkerAddressExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmChangeWorkerAddressExported + 22: builtin.NewMethodMeta("RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebt + builtin.MustGenerateFRCMethodNum("RepayDebt"): builtin.NewMethodMeta("RepayDebtExported", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebtExported + 23: builtin.NewMethodMeta("ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddress + builtin.MustGenerateFRCMethodNum("ChangeOwnerAddress"): builtin.NewMethodMeta("ChangeOwnerAddressExported", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddressExported + 24: builtin.NewMethodMeta("DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)), // DisputeWindowedPoSt + 25: builtin.NewMethodMeta("PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)), // PreCommitSectorBatch + 26: builtin.NewMethodMeta("ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)), // ProveCommitAggregate + 27: builtin.NewMethodMeta("ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)), // ProveReplicaUpdates // NB: the name of this method must not change across actor/network versions - 28: {"PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)}, // PreCommitSectorBatch2 + 28: builtin.NewMethodMeta("PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)), // PreCommitSectorBatch2 // NB: the name of this method must not change across actor/network versions - 29: {"ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)}, // ProveReplicaUpdates2 - 30: {"ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiary - builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): {"ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiaryExported - 31: {"GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)}, // GetBeneficiary + 29: builtin.NewMethodMeta("ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)), // ProveReplicaUpdates2 + 30: builtin.NewMethodMeta("ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiary + builtin.MustGenerateFRCMethodNum("ChangeBeneficiary"): builtin.NewMethodMeta("ChangeBeneficiaryExported", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiaryExported + 31: builtin.NewMethodMeta("GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)), // GetBeneficiary // NB: the name of this method must not change across actor/network versions - 32: {"ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)}, // ExtendSectorExpiration2 - builtin.MustGenerateFRCMethodNum("GetOwner"): {"GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)}, // GetOwnerExported - builtin.MustGenerateFRCMethodNum("IsControllingAddress"): {"IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)}, // IsControllingAddressExported - builtin.MustGenerateFRCMethodNum("GetSectorSize"): {"GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)}, // GetSectorSizeExported - builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): {"GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)}, // GetAvailableBalanceExported - builtin.MustGenerateFRCMethodNum("GetVestingFunds"): {"GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)}, // GetVestingFundsExported - builtin.MustGenerateFRCMethodNum("GetPeerID"): {"GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)}, // GetPeerIDExported - builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): {"GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)}, // GetMultiaddrsExported + 32: builtin.NewMethodMeta("ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)), // ExtendSectorExpiration2 + builtin.MustGenerateFRCMethodNum("GetOwner"): builtin.NewMethodMeta("GetOwnerExported", *new(func(*abi.EmptyValue) *GetOwnerReturn)), // GetOwnerExported + builtin.MustGenerateFRCMethodNum("IsControllingAddress"): builtin.NewMethodMeta("IsControllingAddressExported", *new(func(params *IsControllingAddressParams) *IsControllingAddressReturn)), // IsControllingAddressExported + builtin.MustGenerateFRCMethodNum("GetSectorSize"): builtin.NewMethodMeta("GetSectorSizeExported", *new(func(*abi.EmptyValue) *GetSectorSizeReturn)), // GetSectorSizeExported + builtin.MustGenerateFRCMethodNum("GetAvailableBalance"): builtin.NewMethodMeta("GetAvailableBalanceExported", *new(func(*abi.EmptyValue) *GetAvailableBalanceReturn)), // GetAvailableBalanceExported + builtin.MustGenerateFRCMethodNum("GetVestingFunds"): builtin.NewMethodMeta("GetVestingFundsExported", *new(func(*abi.EmptyValue) *GetVestingFundsReturn)), // GetVestingFundsExported + builtin.MustGenerateFRCMethodNum("GetPeerID"): builtin.NewMethodMeta("GetPeerIDExported", *new(func(*abi.EmptyValue) *GetPeerIDReturn)), // GetPeerIDExported + builtin.MustGenerateFRCMethodNum("GetMultiaddrs"): builtin.NewMethodMeta("GetMultiaddrsExported", *new(func(*abi.EmptyValue) *GetMultiAddrsReturn)), // GetMultiaddrsExported // 33 MovePartitions - 34: {"ProveCommitSectors3", *new(func(*ProveCommitSectors3Params) *ProveCommitSectors3Return)}, // ProveCommitSectors3 - 35: {"ProveReplicaUpdates3", *new(func(*ProveReplicaUpdates3Params) *ProveReplicaUpdates3Return)}, // ProveReplicaUpdates3 - 36: {"ProveCommitSectorsNI", *new(func(*ProveCommitSectorsNIParams) *abi.EmptyValue)}, // ProveCommitSectorsNI + 34: builtin.NewMethodMeta("ProveCommitSectors3", *new(func(*ProveCommitSectors3Params) *ProveCommitSectors3Return)), // ProveCommitSectors3 + 35: builtin.NewMethodMeta("ProveReplicaUpdates3", *new(func(*ProveReplicaUpdates3Params) *ProveReplicaUpdates3Return)), // ProveReplicaUpdates3 + 36: builtin.NewMethodMeta("ProveCommitSectorsNI", *new(func(*ProveCommitSectorsNIParams) *abi.EmptyValue)), // ProveCommitSectorsNI } diff --git a/builtin/v14/multisig/methods.go b/builtin/v14/multisig/methods.go index 918eaeaf..3970193a 100644 --- a/builtin/v14/multisig/methods.go +++ b/builtin/v14/multisig/methods.go @@ -6,22 +6,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Propose", *new(func(*ProposeParams) *ProposeReturn)}, // Propose - builtin.MustGenerateFRCMethodNum("Propose"): {"ProposeExported", *new(func(*ProposeParams) *ProposeReturn)}, // ProposeExported - 3: {"Approve", *new(func(*TxnIDParams) *ApproveReturn)}, // Approve - builtin.MustGenerateFRCMethodNum("Approve"): {"ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)}, // ApproveExported - 4: {"Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)}, // Cancel - builtin.MustGenerateFRCMethodNum("Cancel"): {"CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)}, // CancelExported - 5: {"AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSigner - builtin.MustGenerateFRCMethodNum("AddSigner"): {"AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSignerExported - 6: {"RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSigner - builtin.MustGenerateFRCMethodNum("RemoveSigner"): {"RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSignerExported - 7: {"SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSigner - builtin.MustGenerateFRCMethodNum("SwapSigner"): {"SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSignerExported - 8: {"ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThreshold - builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): {"ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThresholdExported - 9: {"LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalance - builtin.MustGenerateFRCMethodNum("LockBalance"): {"LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalanceExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Propose", *new(func(*ProposeParams) *ProposeReturn)), // Propose + builtin.MustGenerateFRCMethodNum("Propose"): builtin.NewMethodMeta("ProposeExported", *new(func(*ProposeParams) *ProposeReturn)), // ProposeExported + 3: builtin.NewMethodMeta("Approve", *new(func(*TxnIDParams) *ApproveReturn)), // Approve + builtin.MustGenerateFRCMethodNum("Approve"): builtin.NewMethodMeta("ApproveExported", *new(func(*TxnIDParams) *ApproveReturn)), // ApproveExported + 4: builtin.NewMethodMeta("Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)), // Cancel + builtin.MustGenerateFRCMethodNum("Cancel"): builtin.NewMethodMeta("CancelExported", *new(func(*TxnIDParams) *abi.EmptyValue)), // CancelExported + 5: builtin.NewMethodMeta("AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSigner + builtin.MustGenerateFRCMethodNum("AddSigner"): builtin.NewMethodMeta("AddSignerExported", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSignerExported + 6: builtin.NewMethodMeta("RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSigner + builtin.MustGenerateFRCMethodNum("RemoveSigner"): builtin.NewMethodMeta("RemoveSignerExported", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSignerExported + 7: builtin.NewMethodMeta("SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSigner + builtin.MustGenerateFRCMethodNum("SwapSigner"): builtin.NewMethodMeta("SwapSignerExported", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSignerExported + 8: builtin.NewMethodMeta("ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThreshold + builtin.MustGenerateFRCMethodNum("ChangeNumApprovalsThreshold"): builtin.NewMethodMeta("ChangeNumApprovalsThresholdExported", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThresholdExported + 9: builtin.NewMethodMeta("LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalance + builtin.MustGenerateFRCMethodNum("LockBalance"): builtin.NewMethodMeta("LockBalanceExported", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalanceExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)), // UniversalReceiverHook } diff --git a/builtin/v14/paych/methods.go b/builtin/v14/paych/methods.go index b4beca7d..e034d4aa 100644 --- a/builtin/v14/paych/methods.go +++ b/builtin/v14/paych/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)}, // UpdateChannelState - 3: {"Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Settle - 4: {"Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Collect + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)), // UpdateChannelState + 3: builtin.NewMethodMeta("Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Settle + 4: builtin.NewMethodMeta("Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Collect } diff --git a/builtin/v14/power/methods.go b/builtin/v14/power/methods.go index 2ce5a1ff..8d3839e8 100644 --- a/builtin/v14/power/methods.go +++ b/builtin/v14/power/methods.go @@ -7,18 +7,18 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMiner - builtin.MustGenerateFRCMethodNum("CreateMiner"): {"CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMinerExported - 3: {"UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)}, // UpdateClaimedPower - 4: {"EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)}, // EnrollCronEvent - 5: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - 6: {"UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)}, // UpdatePledgeTotal - 7: {"OnConsensusFault", nil}, // deprecated - 8: {"SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)}, // SubmitPoRepForBulkVerify - 9: {"CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)}, // CurrentTotalPower - builtin.MustGenerateFRCMethodNum("NetworkRawPower"): {"NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)}, // NetworkRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerRawPower"): {"MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)}, // MinerRawPowerExported - builtin.MustGenerateFRCMethodNum("MinerCount"): {"MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)}, // MinerCountExported - builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): {"MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)}, // MinerConsensusCountExported + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMiner + builtin.MustGenerateFRCMethodNum("CreateMiner"): builtin.NewMethodMeta("CreateMinerExported", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMinerExported + 3: builtin.NewMethodMeta("UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)), // UpdateClaimedPower + 4: builtin.NewMethodMeta("EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)), // EnrollCronEvent + 5: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + 6: builtin.NewMethodMeta("UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)), // UpdatePledgeTotal + 7: builtin.NewMethodMeta("OnConsensusFault", nil), // deprecated + 8: builtin.NewMethodMeta("SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)), // SubmitPoRepForBulkVerify + 9: builtin.NewMethodMeta("CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)), // CurrentTotalPower + builtin.MustGenerateFRCMethodNum("NetworkRawPower"): builtin.NewMethodMeta("NetworkRawPowerExported", *new(func(*abi.EmptyValue) *NetworkRawPowerReturn)), // NetworkRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerRawPower"): builtin.NewMethodMeta("MinerRawPowerExported", *new(func(*MinerRawPowerParams) *MinerRawPowerReturn)), // MinerRawPowerExported + builtin.MustGenerateFRCMethodNum("MinerCount"): builtin.NewMethodMeta("MinerCountExported", *new(func(*abi.EmptyValue) *MinerCountReturn)), // MinerCountExported + builtin.MustGenerateFRCMethodNum("MinerConsensusCount"): builtin.NewMethodMeta("MinerConsensusCountExported", *new(func(*abi.EmptyValue) *MinerConsensusCountReturn)), // MinerConsensusCountExported } diff --git a/builtin/v14/reward/methods.go b/builtin/v14/reward/methods.go index b6577f10..b0d043e5 100644 --- a/builtin/v14/reward/methods.go +++ b/builtin/v14/reward/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // Constructor - 2: {"AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)}, // AwardBlockReward - 3: {"ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)}, // ThisEpochReward - 4: {"UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // UpdateNetworkKPI + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)), // AwardBlockReward + 3: builtin.NewMethodMeta("ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)), // ThisEpochReward + 4: builtin.NewMethodMeta("UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)), // UpdateNetworkKPI } diff --git a/builtin/v14/system/methods.go b/builtin/v14/system/methods.go index e33f9982..22e7cf89 100644 --- a/builtin/v14/system/methods.go +++ b/builtin/v14/system/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor } diff --git a/builtin/v14/verifreg/methods.go b/builtin/v14/verifreg/methods.go index 1a42e805..ee8769db 100644 --- a/builtin/v14/verifreg/methods.go +++ b/builtin/v14/verifreg/methods.go @@ -7,22 +7,22 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)}, // AddVerifier - 3: {"RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)}, // RemoveVerifier - 4: {"AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClient - builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): {"AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClientExported - 5: {"UseBytes", nil}, // deprecated - 6: {"RestoreBytes", nil}, // deprecated - 7: {"RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)}, // RemoveVerifiedClientDataCap - 8: {"RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocations - builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): {"RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocationsExported - 9: {"ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)}, // ClaimAllocations - 10: {"GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaims - builtin.MustGenerateFRCMethodNum("GetClaims"): {"GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaimsExported - 11: {"ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTerms - builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): {"ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTermsExported - 12: {"RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaims - builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): {"RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaimsExported - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)), // AddVerifier + 3: builtin.NewMethodMeta("RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)), // RemoveVerifier + 4: builtin.NewMethodMeta("AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClient + builtin.MustGenerateFRCMethodNum("AddVerifiedClient"): builtin.NewMethodMeta("AddVerifiedClientExported", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClientExported + 5: builtin.NewMethodMeta("UseBytes", nil), // deprecated + 6: builtin.NewMethodMeta("RestoreBytes", nil), // deprecated + 7: builtin.NewMethodMeta("RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)), // RemoveVerifiedClientDataCap + 8: builtin.NewMethodMeta("RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocations + builtin.MustGenerateFRCMethodNum("RemoveExpiredAllocations"): builtin.NewMethodMeta("RemoveExpiredAllocationsExported", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocationsExported + 9: builtin.NewMethodMeta("ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)), // ClaimAllocations + 10: builtin.NewMethodMeta("GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaims + builtin.MustGenerateFRCMethodNum("GetClaims"): builtin.NewMethodMeta("GetClaimsExported", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaimsExported + 11: builtin.NewMethodMeta("ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTerms + builtin.MustGenerateFRCMethodNum("ExtendClaimTerms"): builtin.NewMethodMeta("ExtendClaimTermsExported", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTermsExported + 12: builtin.NewMethodMeta("RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaims + builtin.MustGenerateFRCMethodNum("RemoveExpiredClaims"): builtin.NewMethodMeta("RemoveExpiredClaimsExported", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaimsExported + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)), // UniversalReceiverHook } diff --git a/builtin/v8/account/methods.go b/builtin/v8/account/methods.go index d5cd2b67..6f815dd7 100644 --- a/builtin/v8/account/methods.go +++ b/builtin/v8/account/methods.go @@ -8,6 +8,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)}, // PubkeyAddress + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)), // PubkeyAddress } diff --git a/builtin/v8/cron/methods.go b/builtin/v8/cron/methods.go index b84acb3a..97669037 100644 --- a/builtin/v8/cron/methods.go +++ b/builtin/v8/cron/methods.go @@ -6,6 +6,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // EpochTick + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // EpochTick } diff --git a/builtin/v8/init/methods.go b/builtin/v8/init/methods.go index 2f9684bd..1451ea72 100644 --- a/builtin/v8/init/methods.go +++ b/builtin/v8/init/methods.go @@ -6,6 +6,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Exec", *new(func(*ExecParams) *ExecReturn)}, // Exec + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Exec", *new(func(*ExecParams) *ExecReturn)), // Exec } diff --git a/builtin/v8/market/methods.go b/builtin/v8/market/methods.go index 6a7f4a9b..ad8652b4 100644 --- a/builtin/v8/market/methods.go +++ b/builtin/v8/market/methods.go @@ -8,13 +8,13 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"AddBalance", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalance - 3: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - 4: {"PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDeals - 5: {"VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)}, // VerifyDealsForActivation - 6: {"ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)}, // ActivateDeals - 7: {"OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)}, // OnMinerSectorsTerminate - 8: {"ComputeDataCommitment", *new(func(*ComputeDataCommitmentParams) *ComputeDataCommitmentReturn)}, // ComputeDataCommitment - 9: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddBalance", *new(func(*address.Address) *abi.EmptyValue)), // AddBalance + 3: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + 4: builtin.NewMethodMeta("PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDeals + 5: builtin.NewMethodMeta("VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)), // VerifyDealsForActivation + 6: builtin.NewMethodMeta("ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)), // ActivateDeals + 7: builtin.NewMethodMeta("OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)), // OnMinerSectorsTerminate + 8: builtin.NewMethodMeta("ComputeDataCommitment", *new(func(*ComputeDataCommitmentParams) *ComputeDataCommitmentReturn)), // ComputeDataCommitment + 9: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick } diff --git a/builtin/v8/miner/methods.go b/builtin/v8/miner/methods.go index db8857f6..979b4d9c 100644 --- a/builtin/v8/miner/methods.go +++ b/builtin/v8/miner/methods.go @@ -10,31 +10,31 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)}, // ControlAddresses - 3: {"ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddress - 4: {"ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerID - 5: {"SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)}, // SubmitWindowedPoSt - 6: {"PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)}, // PreCommitSector - 7: {"ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)}, // ProveCommitSector - 8: {"ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)}, // ExtendSectorExpiration - 9: {"TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)}, // TerminateSectors - 10: {"DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)}, // DeclareFaults - 11: {"DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)}, // DeclareFaultsRecovered - 12: {"OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)}, // OnDeferredCronEvent - 13: {"CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)}, // CheckSectorProven - 14: {"ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)}, // ApplyRewards - 15: {"ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)}, // ReportConsensusFault - 16: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - 17: {"ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)}, // ConfirmSectorProofsValid - 18: {"ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrs - 19: {"CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)}, // CompactPartitions - 20: {"CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)}, // CompactSectorNumbers - 21: {"ConfirmUpdateWorkerKey", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmUpdateWorkerKey - 22: {"RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebt - 23: {"ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddress - 24: {"DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)}, // DisputeWindowedPoSt - 25: {"PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)}, // PreCommitSectorBatch - 26: {"ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)}, // ProveCommitAggregate - 27: {"ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)}, // ProveReplicaUpdates + 1: builtin.NewMethodMeta("Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)), // ControlAddresses + 3: builtin.NewMethodMeta("ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddress + 4: builtin.NewMethodMeta("ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerID + 5: builtin.NewMethodMeta("SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)), // SubmitWindowedPoSt + 6: builtin.NewMethodMeta("PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)), // PreCommitSector + 7: builtin.NewMethodMeta("ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)), // ProveCommitSector + 8: builtin.NewMethodMeta("ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)), // ExtendSectorExpiration + 9: builtin.NewMethodMeta("TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)), // TerminateSectors + 10: builtin.NewMethodMeta("DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)), // DeclareFaults + 11: builtin.NewMethodMeta("DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)), // DeclareFaultsRecovered + 12: builtin.NewMethodMeta("OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)), // OnDeferredCronEvent + 13: builtin.NewMethodMeta("CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)), // CheckSectorProven + 14: builtin.NewMethodMeta("ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)), // ApplyRewards + 15: builtin.NewMethodMeta("ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)), // ReportConsensusFault + 16: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + 17: builtin.NewMethodMeta("ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)), // ConfirmSectorProofsValid + 18: builtin.NewMethodMeta("ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrs + 19: builtin.NewMethodMeta("CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)), // CompactPartitions + 20: builtin.NewMethodMeta("CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)), // CompactSectorNumbers + 21: builtin.NewMethodMeta("ConfirmUpdateWorkerKey", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmUpdateWorkerKey + 22: builtin.NewMethodMeta("RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebt + 23: builtin.NewMethodMeta("ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddress + 24: builtin.NewMethodMeta("DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)), // DisputeWindowedPoSt + 25: builtin.NewMethodMeta("PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)), // PreCommitSectorBatch + 26: builtin.NewMethodMeta("ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)), // ProveCommitAggregate + 27: builtin.NewMethodMeta("ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)), // ProveReplicaUpdates } diff --git a/builtin/v8/multisig/methods.go b/builtin/v8/multisig/methods.go index 43eca9a9..6ad7b538 100644 --- a/builtin/v8/multisig/methods.go +++ b/builtin/v8/multisig/methods.go @@ -6,13 +6,13 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Propose", *new(func(*ProposeParams) *ProposeReturn)}, // Propose - 3: {"Approve", *new(func(*TxnIDParams) *ApproveReturn)}, // Approve - 4: {"Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)}, // Cancel - 5: {"AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSigner - 6: {"RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSigner - 7: {"SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSigner - 8: {"ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThreshold - 9: {"LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalance + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Propose", *new(func(*ProposeParams) *ProposeReturn)), // Propose + 3: builtin.NewMethodMeta("Approve", *new(func(*TxnIDParams) *ApproveReturn)), // Approve + 4: builtin.NewMethodMeta("Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)), // Cancel + 5: builtin.NewMethodMeta("AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSigner + 6: builtin.NewMethodMeta("RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSigner + 7: builtin.NewMethodMeta("SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSigner + 8: builtin.NewMethodMeta("ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThreshold + 9: builtin.NewMethodMeta("LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalance } diff --git a/builtin/v8/multisig/multisig_types.go b/builtin/v8/multisig/multisig_types.go index 06d8c649..9be3fc8e 100644 --- a/builtin/v8/multisig/multisig_types.go +++ b/builtin/v8/multisig/multisig_types.go @@ -21,12 +21,12 @@ type Transaction struct { Approved []addr.Address } -//Data for a BLAKE2B-256 to be attached to methods referencing proposals via TXIDs. -//Ensures the existence of a cryptographic reference to the original proposal. Useful -//for offline signers and for protection when reorgs change a multisig TXID. +// Data for a BLAKE2B-256 to be attached to methods referencing proposals via TXIDs. +// Ensures the existence of a cryptographic reference to the original proposal. Useful +// for offline signers and for protection when reorgs change a multisig TXID. // -//Requester - The requesting multisig wallet member. -//All other fields - From the "Transaction" struct. +// Requester - The requesting multisig wallet member. +// All other fields - From the "Transaction" struct. type ProposalHashData struct { Requester addr.Address To addr.Address diff --git a/builtin/v8/paych/methods.go b/builtin/v8/paych/methods.go index b4beca7d..e034d4aa 100644 --- a/builtin/v8/paych/methods.go +++ b/builtin/v8/paych/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)}, // UpdateChannelState - 3: {"Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Settle - 4: {"Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Collect + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)), // UpdateChannelState + 3: builtin.NewMethodMeta("Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Settle + 4: builtin.NewMethodMeta("Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Collect } diff --git a/builtin/v8/paych/paych_types.go b/builtin/v8/paych/paych_types.go index db9f15a7..cdc7dc78 100644 --- a/builtin/v8/paych/paych_types.go +++ b/builtin/v8/paych/paych_types.go @@ -71,7 +71,7 @@ type ModVerifyParams struct { Data []byte } -//Specifies which `Lane`s to be merged with what `Nonce` on channelUpdate +// Specifies which `Lane`s to be merged with what `Nonce` on channelUpdate type Merge struct { Lane uint64 Nonce uint64 diff --git a/builtin/v8/power/methods.go b/builtin/v8/power/methods.go index 921efece..517dc56e 100644 --- a/builtin/v8/power/methods.go +++ b/builtin/v8/power/methods.go @@ -7,13 +7,13 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMiner - 3: {"UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)}, // UpdateClaimedPower - 4: {"EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)}, // EnrollCronEvent - 5: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - 6: {"UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)}, // UpdatePledgeTotal - 7: {"OnConsensusFault", nil}, // deprecated - 8: {"SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)}, // SubmitPoRepForBulkVerify - 9: {"CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)}, // CurrentTotalPower + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMiner + 3: builtin.NewMethodMeta("UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)), // UpdateClaimedPower + 4: builtin.NewMethodMeta("EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)), // EnrollCronEvent + 5: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + 6: builtin.NewMethodMeta("UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)), // UpdatePledgeTotal + 7: builtin.NewMethodMeta("OnConsensusFault", nil), // deprecated + 8: builtin.NewMethodMeta("SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)), // SubmitPoRepForBulkVerify + 9: builtin.NewMethodMeta("CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)), // CurrentTotalPower } diff --git a/builtin/v8/reward/methods.go b/builtin/v8/reward/methods.go index b6577f10..b0d043e5 100644 --- a/builtin/v8/reward/methods.go +++ b/builtin/v8/reward/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // Constructor - 2: {"AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)}, // AwardBlockReward - 3: {"ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)}, // ThisEpochReward - 4: {"UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // UpdateNetworkKPI + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)), // AwardBlockReward + 3: builtin.NewMethodMeta("ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)), // ThisEpochReward + 4: builtin.NewMethodMeta("UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)), // UpdateNetworkKPI } diff --git a/builtin/v8/system/methods.go b/builtin/v8/system/methods.go index e33f9982..22e7cf89 100644 --- a/builtin/v8/system/methods.go +++ b/builtin/v8/system/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor } diff --git a/builtin/v8/util/adt/array.go b/builtin/v8/util/adt/array.go index edcdf68d..a053a6f0 100644 --- a/builtin/v8/util/adt/array.go +++ b/builtin/v8/util/adt/array.go @@ -125,7 +125,8 @@ func (a *Array) Length() uint64 { } // Get retrieves array element into the 'out' unmarshaler, returning a boolean -// indicating whether the element was found in the array +// +// indicating whether the element was found in the array func (a *Array) Get(k uint64, out cbor.Unmarshaler) (bool, error) { if found, err := a.root.Get(a.store.Context(), k, out); err != nil { return false, xerrors.Errorf("failed to get index %v in root %v: %w", k, a.root, err) diff --git a/builtin/v8/util/smoothing/alpha_beta_filter.go b/builtin/v8/util/smoothing/alpha_beta_filter.go index b197abd5..eec37763 100644 --- a/builtin/v8/util/smoothing/alpha_beta_filter.go +++ b/builtin/v8/util/smoothing/alpha_beta_filter.go @@ -28,8 +28,8 @@ func init() { } -//Alpha Beta Filter "position" (value) and "velocity" (rate of change of value) estimates -//Estimates are in Q.128 format +// Alpha Beta Filter "position" (value) and "velocity" (rate of change of value) estimates +// Estimates are in Q.128 format type FilterEstimate struct { PositionEstimate big.Int // Q.128 VelocityEstimate big.Int // Q.128 diff --git a/builtin/v8/verifreg/methods.go b/builtin/v8/verifreg/methods.go index 4636b735..41f0445b 100644 --- a/builtin/v8/verifreg/methods.go +++ b/builtin/v8/verifreg/methods.go @@ -8,11 +8,11 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)}, // AddVerifier - 3: {"RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)}, // RemoveVerifier - 4: {"AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClient - 5: {"UseBytes", *new(func(*UseBytesParams) *abi.EmptyValue)}, // UseBytes - 6: {"RestoreBytes", *new(func(*RestoreBytesParams) *abi.EmptyValue)}, // RestoreBytes - 7: {"RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)}, // RemoveVerifiedClientDataCap + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)), // AddVerifier + 3: builtin.NewMethodMeta("RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)), // RemoveVerifier + 4: builtin.NewMethodMeta("AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClient + 5: builtin.NewMethodMeta("UseBytes", *new(func(*UseBytesParams) *abi.EmptyValue)), // UseBytes + 6: builtin.NewMethodMeta("RestoreBytes", *new(func(*RestoreBytesParams) *abi.EmptyValue)), // RestoreBytes + 7: builtin.NewMethodMeta("RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)), // RemoveVerifiedClientDataCap } diff --git a/builtin/v9/account/methods.go b/builtin/v9/account/methods.go index 85a53e18..b58e10e6 100644 --- a/builtin/v9/account/methods.go +++ b/builtin/v9/account/methods.go @@ -8,8 +8,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)}, // PubkeyAddress - 3: {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *abi.EmptyValue)}, // AuthenticateMessage - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)), // PubkeyAddress + 3: builtin.NewMethodMeta("AuthenticateMessage", *new(func(*AuthenticateMessageParams) *abi.EmptyValue)), // AuthenticateMessage + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)), // UniversalReceiverHook } diff --git a/builtin/v9/cron/methods.go b/builtin/v9/cron/methods.go index b84acb3a..97669037 100644 --- a/builtin/v9/cron/methods.go +++ b/builtin/v9/cron/methods.go @@ -6,6 +6,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // EpochTick + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // EpochTick } diff --git a/builtin/v9/datacap/methods.go b/builtin/v9/datacap/methods.go index 0d6b6e18..cbb103be 100644 --- a/builtin/v9/datacap/methods.go +++ b/builtin/v9/datacap/methods.go @@ -8,20 +8,20 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"Mint", *new(func(*MintParams) *MintReturn)}, // Mint - 3: {"Destroy", *new(func(*DestroyParams) *BurnReturn)}, // Destroy + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Mint", *new(func(*MintParams) *MintReturn)), // Mint + 3: builtin.NewMethodMeta("Destroy", *new(func(*DestroyParams) *BurnReturn)), // Destroy // Reserved - 10: {"Name", *new(func(*abi.EmptyValue) *abi.CborString)}, // Name - 11: {"Symbol", *new(func(*abi.EmptyValue) *abi.CborString)}, // Symbol - 12: {"TotalSupply", *new(func(*abi.EmptyValue) *abi.TokenAmount)}, // TotalSupply - 13: {"BalanceOf", *new(func(*address.Address) *abi.TokenAmount)}, // BalanceOf - 14: {"Transfer", *new(func(*TransferParams) *TransferReturn)}, // Transfer - 15: {"TransferFrom", *new(func(*TransferFromParams) *TransferFromReturn)}, // TransferFrom - 16: {"IncreaseAllowance", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)}, // IncreaseAllowance - 17: {"DecreaseAllowance", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)}, // DecreaseAllowance - 18: {"RevokeAllowance", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)}, // RevokeAllowance - 19: {"Burn", *new(func(*BurnParams) *BurnReturn)}, // Burn - 20: {"BurnFrom", *new(func(*BurnFromParams) *BurnFromReturn)}, // BurnFrom - 21: {"Allowance", *new(func(*GetAllowanceParams) *abi.TokenAmount)}, // Allowance + 10: builtin.NewMethodMeta("Name", *new(func(*abi.EmptyValue) *abi.CborString)), // Name + 11: builtin.NewMethodMeta("Symbol", *new(func(*abi.EmptyValue) *abi.CborString)), // Symbol + 12: builtin.NewMethodMeta("TotalSupply", *new(func(*abi.EmptyValue) *abi.TokenAmount)), // TotalSupply + 13: builtin.NewMethodMeta("BalanceOf", *new(func(*address.Address) *abi.TokenAmount)), // BalanceOf + 14: builtin.NewMethodMeta("Transfer", *new(func(*TransferParams) *TransferReturn)), // Transfer + 15: builtin.NewMethodMeta("TransferFrom", *new(func(*TransferFromParams) *TransferFromReturn)), // TransferFrom + 16: builtin.NewMethodMeta("IncreaseAllowance", *new(func(*IncreaseAllowanceParams) *abi.TokenAmount)), // IncreaseAllowance + 17: builtin.NewMethodMeta("DecreaseAllowance", *new(func(*DecreaseAllowanceParams) *abi.TokenAmount)), // DecreaseAllowance + 18: builtin.NewMethodMeta("RevokeAllowance", *new(func(*RevokeAllowanceParams) *abi.TokenAmount)), // RevokeAllowance + 19: builtin.NewMethodMeta("Burn", *new(func(*BurnParams) *BurnReturn)), // Burn + 20: builtin.NewMethodMeta("BurnFrom", *new(func(*BurnFromParams) *BurnFromReturn)), // BurnFrom + 21: builtin.NewMethodMeta("Allowance", *new(func(*GetAllowanceParams) *abi.TokenAmount)), // Allowance } diff --git a/builtin/v9/init/methods.go b/builtin/v9/init/methods.go index 2f9684bd..1451ea72 100644 --- a/builtin/v9/init/methods.go +++ b/builtin/v9/init/methods.go @@ -6,6 +6,6 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Exec", *new(func(*ExecParams) *ExecReturn)}, // Exec + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Exec", *new(func(*ExecParams) *ExecReturn)), // Exec } diff --git a/builtin/v9/market/methods.go b/builtin/v9/market/methods.go index 6a7f4a9b..ad8652b4 100644 --- a/builtin/v9/market/methods.go +++ b/builtin/v9/market/methods.go @@ -8,13 +8,13 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"AddBalance", *new(func(*address.Address) *abi.EmptyValue)}, // AddBalance - 3: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - 4: {"PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)}, // PublishStorageDeals - 5: {"VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)}, // VerifyDealsForActivation - 6: {"ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)}, // ActivateDeals - 7: {"OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)}, // OnMinerSectorsTerminate - 8: {"ComputeDataCommitment", *new(func(*ComputeDataCommitmentParams) *ComputeDataCommitmentReturn)}, // ComputeDataCommitment - 9: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddBalance", *new(func(*address.Address) *abi.EmptyValue)), // AddBalance + 3: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + 4: builtin.NewMethodMeta("PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDeals + 5: builtin.NewMethodMeta("VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)), // VerifyDealsForActivation + 6: builtin.NewMethodMeta("ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)), // ActivateDeals + 7: builtin.NewMethodMeta("OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)), // OnMinerSectorsTerminate + 8: builtin.NewMethodMeta("ComputeDataCommitment", *new(func(*ComputeDataCommitmentParams) *ComputeDataCommitmentReturn)), // ComputeDataCommitment + 9: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick } diff --git a/builtin/v9/miner/methods.go b/builtin/v9/miner/methods.go index e463b81f..c5fa3265 100644 --- a/builtin/v9/miner/methods.go +++ b/builtin/v9/miner/methods.go @@ -10,39 +10,39 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)}, // ControlAddresses - 3: {"ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)}, // ChangeWorkerAddress - 4: {"ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)}, // ChangePeerID - 5: {"SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)}, // SubmitWindowedPoSt - 6: {"PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)}, // PreCommitSector - 7: {"ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)}, // ProveCommitSector - 8: {"ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)}, // ExtendSectorExpiration - 9: {"TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)}, // TerminateSectors - 10: {"DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)}, // DeclareFaults - 11: {"DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)}, // DeclareFaultsRecovered - 12: {"OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)}, // OnDeferredCronEvent - 13: {"CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)}, // CheckSectorProven - 14: {"ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)}, // ApplyRewards - 15: {"ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)}, // ReportConsensusFault - 16: {"WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)}, // WithdrawBalance - 17: {"ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)}, // ConfirmSectorProofsValid - 18: {"ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)}, // ChangeMultiaddrs - 19: {"CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)}, // CompactPartitions - 20: {"CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)}, // CompactSectorNumbers - 21: {"ConfirmUpdateWorkerKey", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // ConfirmUpdateWorkerKey - 22: {"RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // RepayDebt - 23: {"ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)}, // ChangeOwnerAddress - 24: {"DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)}, // DisputeWindowedPoSt - 25: {"PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)}, // PreCommitSectorBatch - 26: {"ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)}, // ProveCommitAggregate - 27: {"ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)}, // ProveReplicaUpdates + 1: builtin.NewMethodMeta("Constructor", *new(func(*power.MinerConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("ControlAddresses", *new(func(*abi.EmptyValue) *GetControlAddressesReturn)), // ControlAddresses + 3: builtin.NewMethodMeta("ChangeWorkerAddress", *new(func(*ChangeWorkerAddressParams) *abi.EmptyValue)), // ChangeWorkerAddress + 4: builtin.NewMethodMeta("ChangePeerID", *new(func(*ChangePeerIDParams) *abi.EmptyValue)), // ChangePeerID + 5: builtin.NewMethodMeta("SubmitWindowedPoSt", *new(func(*SubmitWindowedPoStParams) *abi.EmptyValue)), // SubmitWindowedPoSt + 6: builtin.NewMethodMeta("PreCommitSector", *new(func(*PreCommitSectorParams) *abi.EmptyValue)), // PreCommitSector + 7: builtin.NewMethodMeta("ProveCommitSector", *new(func(*ProveCommitSectorParams) *abi.EmptyValue)), // ProveCommitSector + 8: builtin.NewMethodMeta("ExtendSectorExpiration", *new(func(*ExtendSectorExpirationParams) *abi.EmptyValue)), // ExtendSectorExpiration + 9: builtin.NewMethodMeta("TerminateSectors", *new(func(*TerminateSectorsParams) *TerminateSectorsReturn)), // TerminateSectors + 10: builtin.NewMethodMeta("DeclareFaults", *new(func(*DeclareFaultsParams) *abi.EmptyValue)), // DeclareFaults + 11: builtin.NewMethodMeta("DeclareFaultsRecovered", *new(func(*DeclareFaultsRecoveredParams) *abi.EmptyValue)), // DeclareFaultsRecovered + 12: builtin.NewMethodMeta("OnDeferredCronEvent", *new(func(*DeferredCronEventParams) *abi.EmptyValue)), // OnDeferredCronEvent + 13: builtin.NewMethodMeta("CheckSectorProven", *new(func(*CheckSectorProvenParams) *abi.EmptyValue)), // CheckSectorProven + 14: builtin.NewMethodMeta("ApplyRewards", *new(func(*ApplyRewardParams) *abi.EmptyValue)), // ApplyRewards + 15: builtin.NewMethodMeta("ReportConsensusFault", *new(func(*ReportConsensusFaultParams) *abi.EmptyValue)), // ReportConsensusFault + 16: builtin.NewMethodMeta("WithdrawBalance", *new(func(*WithdrawBalanceParams) *abi.TokenAmount)), // WithdrawBalance + 17: builtin.NewMethodMeta("ConfirmSectorProofsValid", *new(func(*ConfirmSectorProofsParams) *abi.EmptyValue)), // ConfirmSectorProofsValid + 18: builtin.NewMethodMeta("ChangeMultiaddrs", *new(func(*ChangeMultiaddrsParams) *abi.EmptyValue)), // ChangeMultiaddrs + 19: builtin.NewMethodMeta("CompactPartitions", *new(func(*CompactPartitionsParams) *abi.EmptyValue)), // CompactPartitions + 20: builtin.NewMethodMeta("CompactSectorNumbers", *new(func(*CompactSectorNumbersParams) *abi.EmptyValue)), // CompactSectorNumbers + 21: builtin.NewMethodMeta("ConfirmUpdateWorkerKey", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // ConfirmUpdateWorkerKey + 22: builtin.NewMethodMeta("RepayDebt", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // RepayDebt + 23: builtin.NewMethodMeta("ChangeOwnerAddress", *new(func(*address.Address) *abi.EmptyValue)), // ChangeOwnerAddress + 24: builtin.NewMethodMeta("DisputeWindowedPoSt", *new(func(*DisputeWindowedPoStParams) *abi.EmptyValue)), // DisputeWindowedPoSt + 25: builtin.NewMethodMeta("PreCommitSectorBatch", *new(func(*PreCommitSectorBatchParams) *abi.EmptyValue)), // PreCommitSectorBatch + 26: builtin.NewMethodMeta("ProveCommitAggregate", *new(func(*ProveCommitAggregateParams) *abi.EmptyValue)), // ProveCommitAggregate + 27: builtin.NewMethodMeta("ProveReplicaUpdates", *new(func(*ProveReplicaUpdatesParams) *bitfield.BitField)), // ProveReplicaUpdates // NB: the name of this method must not change across actor/network versions - 28: {"PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)}, // PreCommitSectorBatch2 + 28: builtin.NewMethodMeta("PreCommitSectorBatch2", *new(func(*PreCommitSectorBatchParams2) *abi.EmptyValue)), // PreCommitSectorBatch2 // NB: the name of this method must not change across actor/network versions - 29: {"ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)}, // ProveReplicaUpdates2 - 30: {"ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)}, // ChangeBeneficiary - 31: {"GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)}, // GetBeneficiary + 29: builtin.NewMethodMeta("ProveReplicaUpdates2", *new(func(*ProveReplicaUpdatesParams2) *bitfield.BitField)), // ProveReplicaUpdates2 + 30: builtin.NewMethodMeta("ChangeBeneficiary", *new(func(*ChangeBeneficiaryParams) *abi.EmptyValue)), // ChangeBeneficiary + 31: builtin.NewMethodMeta("GetBeneficiary", *new(func(*abi.EmptyValue) *GetBeneficiaryReturn)), // GetBeneficiary // NB: the name of this method must not change across actor/network versions - 32: {"ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)}, // ExtendSectorExpiration2 + 32: builtin.NewMethodMeta("ExtendSectorExpiration2", *new(func(*ExtendSectorExpiration2Params) *abi.EmptyValue)), // ExtendSectorExpiration2 } diff --git a/builtin/v9/multisig/methods.go b/builtin/v9/multisig/methods.go index 688e5393..47062d0a 100644 --- a/builtin/v9/multisig/methods.go +++ b/builtin/v9/multisig/methods.go @@ -6,14 +6,14 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"Propose", *new(func(*ProposeParams) *ProposeReturn)}, // Propose - 3: {"Approve", *new(func(*TxnIDParams) *ApproveReturn)}, // Approve - 4: {"Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)}, // Cancel - 5: {"AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)}, // AddSigner - 6: {"RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)}, // RemoveSigner - 7: {"SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)}, // SwapSigner - 8: {"ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)}, // ChangeNumApprovalsThreshold - 9: {"LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)}, // LockBalance - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("Propose", *new(func(*ProposeParams) *ProposeReturn)), // Propose + 3: builtin.NewMethodMeta("Approve", *new(func(*TxnIDParams) *ApproveReturn)), // Approve + 4: builtin.NewMethodMeta("Cancel", *new(func(*TxnIDParams) *abi.EmptyValue)), // Cancel + 5: builtin.NewMethodMeta("AddSigner", *new(func(*AddSignerParams) *abi.EmptyValue)), // AddSigner + 6: builtin.NewMethodMeta("RemoveSigner", *new(func(*RemoveSignerParams) *abi.EmptyValue)), // RemoveSigner + 7: builtin.NewMethodMeta("SwapSigner", *new(func(*SwapSignerParams) *abi.EmptyValue)), // SwapSigner + 8: builtin.NewMethodMeta("ChangeNumApprovalsThreshold", *new(func(*ChangeNumApprovalsThresholdParams) *abi.EmptyValue)), // ChangeNumApprovalsThreshold + 9: builtin.NewMethodMeta("LockBalance", *new(func(*LockBalanceParams) *abi.EmptyValue)), // LockBalance + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*abi.CborBytesTransparent) *abi.EmptyValue)), // UniversalReceiverHook } diff --git a/builtin/v9/multisig/multisig_types.go b/builtin/v9/multisig/multisig_types.go index 06d8c649..9be3fc8e 100644 --- a/builtin/v9/multisig/multisig_types.go +++ b/builtin/v9/multisig/multisig_types.go @@ -21,12 +21,12 @@ type Transaction struct { Approved []addr.Address } -//Data for a BLAKE2B-256 to be attached to methods referencing proposals via TXIDs. -//Ensures the existence of a cryptographic reference to the original proposal. Useful -//for offline signers and for protection when reorgs change a multisig TXID. +// Data for a BLAKE2B-256 to be attached to methods referencing proposals via TXIDs. +// Ensures the existence of a cryptographic reference to the original proposal. Useful +// for offline signers and for protection when reorgs change a multisig TXID. // -//Requester - The requesting multisig wallet member. -//All other fields - From the "Transaction" struct. +// Requester - The requesting multisig wallet member. +// All other fields - From the "Transaction" struct. type ProposalHashData struct { Requester addr.Address To addr.Address diff --git a/builtin/v9/paych/methods.go b/builtin/v9/paych/methods.go index b4beca7d..e034d4aa 100644 --- a/builtin/v9/paych/methods.go +++ b/builtin/v9/paych/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)}, // Constructor - 2: {"UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)}, // UpdateChannelState - 3: {"Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Settle - 4: {"Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Collect + 1: builtin.NewMethodMeta("Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("UpdateChannelState", *new(func(*UpdateChannelStateParams) *abi.EmptyValue)), // UpdateChannelState + 3: builtin.NewMethodMeta("Settle", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Settle + 4: builtin.NewMethodMeta("Collect", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Collect } diff --git a/builtin/v9/paych/paych_types.go b/builtin/v9/paych/paych_types.go index db9f15a7..cdc7dc78 100644 --- a/builtin/v9/paych/paych_types.go +++ b/builtin/v9/paych/paych_types.go @@ -71,7 +71,7 @@ type ModVerifyParams struct { Data []byte } -//Specifies which `Lane`s to be merged with what `Nonce` on channelUpdate +// Specifies which `Lane`s to be merged with what `Nonce` on channelUpdate type Merge struct { Lane uint64 Nonce uint64 diff --git a/builtin/v9/power/methods.go b/builtin/v9/power/methods.go index 921efece..517dc56e 100644 --- a/builtin/v9/power/methods.go +++ b/builtin/v9/power/methods.go @@ -7,13 +7,13 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor - 2: {"CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)}, // CreateMiner - 3: {"UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)}, // UpdateClaimedPower - 4: {"EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)}, // EnrollCronEvent - 5: {"CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // CronTick - 6: {"UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)}, // UpdatePledgeTotal - 7: {"OnConsensusFault", nil}, // deprecated - 8: {"SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)}, // SubmitPoRepForBulkVerify - 9: {"CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)}, // CurrentTotalPower + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("CreateMiner", *new(func(*CreateMinerParams) *CreateMinerReturn)), // CreateMiner + 3: builtin.NewMethodMeta("UpdateClaimedPower", *new(func(*UpdateClaimedPowerParams) *abi.EmptyValue)), // UpdateClaimedPower + 4: builtin.NewMethodMeta("EnrollCronEvent", *new(func(*EnrollCronEventParams) *abi.EmptyValue)), // EnrollCronEvent + 5: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick + 6: builtin.NewMethodMeta("UpdatePledgeTotal", *new(func(*abi.TokenAmount) *abi.EmptyValue)), // UpdatePledgeTotal + 7: builtin.NewMethodMeta("OnConsensusFault", nil), // deprecated + 8: builtin.NewMethodMeta("SubmitPoRepForBulkVerify", *new(func(*proof.SealVerifyInfo) *abi.EmptyValue)), // SubmitPoRepForBulkVerify + 9: builtin.NewMethodMeta("CurrentTotalPower", *new(func(*abi.EmptyValue) *CurrentTotalPowerReturn)), // CurrentTotalPower } diff --git a/builtin/v9/reward/methods.go b/builtin/v9/reward/methods.go index b6577f10..b0d043e5 100644 --- a/builtin/v9/reward/methods.go +++ b/builtin/v9/reward/methods.go @@ -6,8 +6,8 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // Constructor - 2: {"AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)}, // AwardBlockReward - 3: {"ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)}, // ThisEpochReward - 4: {"UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)}, // UpdateNetworkKPI + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.StoragePower) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AwardBlockReward", *new(func(*AwardBlockRewardParams) *abi.EmptyValue)), // AwardBlockReward + 3: builtin.NewMethodMeta("ThisEpochReward", *new(func(*abi.EmptyValue) *ThisEpochRewardReturn)), // ThisEpochReward + 4: builtin.NewMethodMeta("UpdateNetworkKPI", *new(func(*abi.StoragePower) *abi.EmptyValue)), // UpdateNetworkKPI } diff --git a/builtin/v9/system/methods.go b/builtin/v9/system/methods.go index e33f9982..22e7cf89 100644 --- a/builtin/v9/system/methods.go +++ b/builtin/v9/system/methods.go @@ -6,5 +6,5 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)}, // Constructor + 1: builtin.NewMethodMeta("Constructor", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // Constructor } diff --git a/builtin/v9/util/adt/array.go b/builtin/v9/util/adt/array.go index edcdf68d..a053a6f0 100644 --- a/builtin/v9/util/adt/array.go +++ b/builtin/v9/util/adt/array.go @@ -125,7 +125,8 @@ func (a *Array) Length() uint64 { } // Get retrieves array element into the 'out' unmarshaler, returning a boolean -// indicating whether the element was found in the array +// +// indicating whether the element was found in the array func (a *Array) Get(k uint64, out cbor.Unmarshaler) (bool, error) { if found, err := a.root.Get(a.store.Context(), k, out); err != nil { return false, xerrors.Errorf("failed to get index %v in root %v: %w", k, a.root, err) diff --git a/builtin/v9/util/smoothing/alpha_beta_filter.go b/builtin/v9/util/smoothing/alpha_beta_filter.go index c7c352e6..006192d8 100644 --- a/builtin/v9/util/smoothing/alpha_beta_filter.go +++ b/builtin/v9/util/smoothing/alpha_beta_filter.go @@ -28,8 +28,8 @@ func init() { } -//Alpha Beta Filter "position" (value) and "velocity" (rate of change of value) estimates -//Estimates are in Q.128 format +// Alpha Beta Filter "position" (value) and "velocity" (rate of change of value) estimates +// Estimates are in Q.128 format type FilterEstimate struct { PositionEstimate big.Int // Q.128 VelocityEstimate big.Int // Q.128 diff --git a/builtin/v9/verifreg/methods.go b/builtin/v9/verifreg/methods.go index daadacbc..cddaa55b 100644 --- a/builtin/v9/verifreg/methods.go +++ b/builtin/v9/verifreg/methods.go @@ -7,17 +7,17 @@ import ( ) var Methods = map[abi.MethodNum]builtin.MethodMeta{ - 1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor - 2: {"AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)}, // AddVerifier - 3: {"RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)}, // RemoveVerifier - 4: {"AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)}, // AddVerifiedClient - 5: {"UseBytes", nil}, // deprecated - 6: {"RestoreBytes", nil}, // deprecated - 7: {"RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)}, // RemoveVerifiedClientDataCap - 8: {"RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)}, // RemoveExpiredAllocations - 9: {"ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)}, // ClaimAllocations - 10: {"GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)}, // GetClaims - 11: {"ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)}, // ExtendClaimTerms - 12: {"RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)}, // RemoveExpiredClaims - builtin.MustGenerateFRCMethodNum("Receive"): {"UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)}, // UniversalReceiverHook + 1: builtin.NewMethodMeta("Constructor", *new(func(*address.Address) *abi.EmptyValue)), // Constructor + 2: builtin.NewMethodMeta("AddVerifier", *new(func(*AddVerifierParams) *abi.EmptyValue)), // AddVerifier + 3: builtin.NewMethodMeta("RemoveVerifier", *new(func(*address.Address) *abi.EmptyValue)), // RemoveVerifier + 4: builtin.NewMethodMeta("AddVerifiedClient", *new(func(*AddVerifiedClientParams) *abi.EmptyValue)), // AddVerifiedClient + 5: builtin.NewMethodMeta("UseBytes", nil), // deprecated + 6: builtin.NewMethodMeta("RestoreBytes", nil), // deprecated + 7: builtin.NewMethodMeta("RemoveVerifiedClientDataCap", *new(func(*RemoveDataCapParams) *RemoveDataCapReturn)), // RemoveVerifiedClientDataCap + 8: builtin.NewMethodMeta("RemoveExpiredAllocations", *new(func(*RemoveExpiredAllocationsParams) *RemoveExpiredAllocationsReturn)), // RemoveExpiredAllocations + 9: builtin.NewMethodMeta("ClaimAllocations", *new(func(*ClaimAllocationsParams) *ClaimAllocationsReturn)), // ClaimAllocations + 10: builtin.NewMethodMeta("GetClaims", *new(func(*GetClaimsParams) *GetClaimsReturn)), // GetClaims + 11: builtin.NewMethodMeta("ExtendClaimTerms", *new(func(*ExtendClaimTermsParams) *ExtendClaimTermsReturn)), // ExtendClaimTerms + 12: builtin.NewMethodMeta("RemoveExpiredClaims", *new(func(*RemoveExpiredClaimsParams) *RemoveExpiredClaimsReturn)), // RemoveExpiredClaims + builtin.MustGenerateFRCMethodNum("Receive"): builtin.NewMethodMeta("UniversalReceiverHook", *new(func(*UniversalReceiverParams) *AllocationsResponse)), // UniversalReceiverHook } diff --git a/exitcode/exitcode.go b/exitcode/exitcode.go index d6049095..553b3a15 100644 --- a/exitcode/exitcode.go +++ b/exitcode/exitcode.go @@ -44,8 +44,8 @@ func (x ExitCode) Error() string { // Wrapf attaches an error message, and possibly an error, to the exit // code. // -// err := ErrIllegalArgument.Wrapf("my description: %w", err) -// exitcode.Unwrap(exitcode.ErrIllegalState, err) == exitcode.ErrIllegalArgument +// err := ErrIllegalArgument.Wrapf("my description: %w", err) +// exitcode.Unwrap(exitcode.ErrIllegalState, err) == exitcode.ErrIllegalArgument func (x ExitCode) Wrapf(msg string, args ...interface{}) error { return &wrapped{ exitCode: x, @@ -86,8 +86,8 @@ func (w *wrapped) Is(target error) bool { // Unwrap extracts an exit code from an error, defaulting to the passed default // exit code. // -// err := ErrIllegalState.WithContext("my description: %w", err) -// exitcode.Unwrap(exitcode.ErrIllegalState, err) == exitcode.ErrIllegalArgument +// err := ErrIllegalState.WithContext("my description: %w", err) +// exitcode.Unwrap(exitcode.ErrIllegalState, err) == exitcode.ErrIllegalArgument func Unwrap(err error, defaultExitCode ExitCode) (code ExitCode) { if errors.As(err, &code) { return code diff --git a/go.mod b/go.mod index 525cb441..327f2407 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/filecoin-project/go-state-types -go 1.18 +go 1.21 retract v0.12.7 // wrongfully skipped a patch version, use v0.12.6 or v0.12.8&^ diff --git a/go.sum b/go.sum index 0bdb05b3..eb0032ea 100644 --- a/go.sum +++ b/go.sum @@ -32,9 +32,11 @@ github.com/filecoin-project/go-state-types v0.0.0-20201102161440-c8033295a1fc/go github.com/filecoin-project/specs-actors v0.9.4 h1:FePB+hrctHHiTbmaY4hnvBJzfgckN3eJreUZWpS5yks= github.com/filecoin-project/specs-actors v0.9.4/go.mod h1:BStZQzx5x7TmCkLv0Bpa07U6cPKol6fd3w9KjMPZ6Z4= github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= +github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gopherjs/gopherjs v0.0.0-20190812055157-5d271430af9f h1:KMlcu9X58lhTA/KrfX8Bi1LQSO4pzoVjTiL3h4Jk+Zk= @@ -82,9 +84,11 @@ github.com/klauspost/cpuid/v2 v2.2.3 h1:sxCkb+qR91z4vsqw4vGGZlDgPz3G7gjaLyK3V8y7 github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= +github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 h1:lYpkrQH5ajf0OXOcUbGjvZxxijuBwbbmlSxLiuofa+g= github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= @@ -105,6 +109,7 @@ github.com/multiformats/go-multibase v0.0.1/go.mod h1:bja2MqRZ3ggyXtZSEDKpl0uO/g github.com/multiformats/go-multibase v0.0.3 h1:l/B6bJDQjvQ5G52jw4QGSYeOTZoAwIO77RblWplfIqk= github.com/multiformats/go-multibase v0.0.3/go.mod h1:5+1R4eQrT3PkYZ24C3W2Ue2tPwIdYQD509ZjSb5y9Oc= github.com/multiformats/go-multicodec v0.6.0 h1:KhH2kSuCARyuJraYMFxrNO3DqIaYhOdS039kbhgVwpE= +github.com/multiformats/go-multicodec v0.6.0/go.mod h1:GUC8upxSBE4oG+q3kWZRw/+6yC1BqO550bjhWsJbZlw= github.com/multiformats/go-multihash v0.0.1/go.mod h1:w/5tugSrLEbWqlcgJabL3oHFKTwfvkofsjW2Qa1ct4U= github.com/multiformats/go-multihash v0.0.10/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= github.com/multiformats/go-multihash v0.0.13/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= @@ -129,12 +134,14 @@ github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6O github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= +github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/assertions v1.0.1 h1:voD4ITNjPL5jjBfgR/r8fPIIBrliWrWHeiJApdr3r4w= github.com/smartystreets/assertions v1.0.1/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM= github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa/go.mod h1:2RVY1rIf+2J2o/IM9+vPq9RzmHDSseB7FoXiSNIUsoU= github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -148,6 +155,7 @@ github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKw github.com/warpfork/go-wish v0.0.0-20180510122957-5ad1f5abf436/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= github.com/warpfork/go-wish v0.0.0-20190328234359-8b3e70f8e830/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= github.com/warpfork/go-wish v0.0.0-20200122115046-b9ea61034e4a h1:G++j5e0OC488te356JvdhaM8YS6nMsjLAYF7JxCv07w= +github.com/warpfork/go-wish v0.0.0-20200122115046-b9ea61034e4a/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= github.com/whyrusleeping/cbor-gen v0.0.0-20200123233031-1cdf64d27158/go.mod h1:Xj/M2wWU+QdTdRbu/L/1dIZY8/Wb2K9pAhtroQuxJJI= github.com/whyrusleeping/cbor-gen v0.0.0-20200414195334-429a0b5e922e/go.mod h1:Xj/M2wWU+QdTdRbu/L/1dIZY8/Wb2K9pAhtroQuxJJI= github.com/whyrusleeping/cbor-gen v0.0.0-20200504204219-64967432584d/go.mod h1:W5MvapuoHRP8rz4vxjwCK1pDqF1aQcWsV5PZ+AHbqdg= @@ -222,6 +230,7 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/manifest/cbor_gen.go b/manifest/cbor_gen.go index b3a9e63e..85d0891e 100644 --- a/manifest/cbor_gen.go +++ b/manifest/cbor_gen.go @@ -5,12 +5,18 @@ package manifest import ( "fmt" "io" + "math" + "sort" + cid "github.com/ipfs/go-cid" cbg "github.com/whyrusleeping/cbor-gen" xerrors "golang.org/x/xerrors" ) var _ = xerrors.Errorf +var _ = cid.Undef +var _ = math.E +var _ = sort.Sort var lengthBufManifest = []byte{130} @@ -19,37 +25,43 @@ func (t *Manifest) MarshalCBOR(w io.Writer) error { _, err := w.Write(cbg.CborNull) return err } - if _, err := w.Write(lengthBufManifest); err != nil { + + cw := cbg.NewCborWriter(w) + + if _, err := cw.Write(lengthBufManifest); err != nil { return err } - scratch := make([]byte, 9) - // t.Version (uint64) (uint64) - if err := cbg.WriteMajorTypeHeaderBuf(scratch, w, cbg.MajUnsignedInt, uint64(t.Version)); err != nil { + if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(t.Version)); err != nil { return err } // t.Data (cid.Cid) (struct) - if err := cbg.WriteCidBuf(scratch, w, t.Data); err != nil { + if err := cbg.WriteCid(cw, t.Data); err != nil { return xerrors.Errorf("failed to write cid field t.Data: %w", err) } return nil } -func (t *Manifest) UnmarshalCBOR(r io.Reader) error { +func (t *Manifest) UnmarshalCBOR(r io.Reader) (err error) { *t = Manifest{} - br := cbg.GetPeeker(r) - scratch := make([]byte, 8) + cr := cbg.NewCborReader(r) - maj, extra, err := cbg.CborReadHeaderBuf(br, scratch) + maj, extra, err := cr.ReadHeader() if err != nil { return err } + defer func() { + if err == io.EOF { + err = io.ErrUnexpectedEOF + } + }() + if maj != cbg.MajArray { return fmt.Errorf("cbor input should be of type array") } @@ -62,7 +74,7 @@ func (t *Manifest) UnmarshalCBOR(r io.Reader) error { { - maj, extra, err = cbg.CborReadHeaderBuf(br, scratch) + maj, extra, err = cr.ReadHeader() if err != nil { return err } @@ -76,7 +88,7 @@ func (t *Manifest) UnmarshalCBOR(r io.Reader) error { { - c, err := cbg.ReadCid(br) + c, err := cbg.ReadCid(cr) if err != nil { return xerrors.Errorf("failed to read cid field t.Data: %w", err) } @@ -94,43 +106,49 @@ func (t *ManifestEntry) MarshalCBOR(w io.Writer) error { _, err := w.Write(cbg.CborNull) return err } - if _, err := w.Write(lengthBufManifestEntry); err != nil { + + cw := cbg.NewCborWriter(w) + + if _, err := cw.Write(lengthBufManifestEntry); err != nil { return err } - scratch := make([]byte, 9) - // t.Name (string) (string) - if uint64(len(t.Name)) > cbg.MaxLength { + if len(t.Name) > 8192 { return xerrors.Errorf("Value in field t.Name was too long") } - if err := cbg.WriteMajorTypeHeaderBuf(scratch, w, cbg.MajTextString, uint64(len(t.Name))); err != nil { + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.Name))); err != nil { return err } - if _, err := io.WriteString(w, string(t.Name)); err != nil { + if _, err := cw.WriteString(string(t.Name)); err != nil { return err } // t.Code (cid.Cid) (struct) - if err := cbg.WriteCidBuf(scratch, w, t.Code); err != nil { + if err := cbg.WriteCid(cw, t.Code); err != nil { return xerrors.Errorf("failed to write cid field t.Code: %w", err) } return nil } -func (t *ManifestEntry) UnmarshalCBOR(r io.Reader) error { +func (t *ManifestEntry) UnmarshalCBOR(r io.Reader) (err error) { *t = ManifestEntry{} - br := cbg.GetPeeker(r) - scratch := make([]byte, 8) + cr := cbg.NewCborReader(r) - maj, extra, err := cbg.CborReadHeaderBuf(br, scratch) + maj, extra, err := cr.ReadHeader() if err != nil { return err } + defer func() { + if err == io.EOF { + err = io.ErrUnexpectedEOF + } + }() + if maj != cbg.MajArray { return fmt.Errorf("cbor input should be of type array") } @@ -142,7 +160,7 @@ func (t *ManifestEntry) UnmarshalCBOR(r io.Reader) error { // t.Name (string) (string) { - sval, err := cbg.ReadStringBuf(br, scratch) + sval, err := cbg.ReadStringWithMax(cr, 8192) if err != nil { return err } @@ -153,7 +171,7 @@ func (t *ManifestEntry) UnmarshalCBOR(r io.Reader) error { { - c, err := cbg.ReadCid(br) + c, err := cbg.ReadCid(cr) if err != nil { return xerrors.Errorf("failed to read cid field t.Code: %w", err) } diff --git a/version.json b/version.json new file mode 100644 index 00000000..ab102e98 --- /dev/null +++ b/version.json @@ -0,0 +1,3 @@ +{ + "version": "v0.14.0-rc5" +}