forked from filecoin-project/go-state-types
/
methods.go
33 lines (31 loc) · 3.97 KB
/
methods.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package market
import (
"github.com/CluEleSsUK/go-state-types/abi"
"github.com/CluEleSsUK/go-state-types/builtin"
"github.com/filecoin-project/go-address"
)
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
}