pond: Update some mapping arrays

This commit is contained in:
Łukasz Magiera 2020-02-24 01:05:20 +01:00
parent ba6d1091f2
commit 929161c070
3 changed files with 84 additions and 66 deletions

View File

@ -8,20 +8,27 @@ const stateConnecting = 'connecting'
const stateGettingToken = 'getting-token'
let sealCodes = [
"Undefined",
"UndefinedSectorState",
"Empty",
"Packing",
"Unsealed",
"PreCommitting",
"PreCommitted",
"WaitSeed",
"Committing",
"CommitWait",
"FinalizeSector",
"Proving",
"SealFailed",
"PreCommitFailed",
"SealCommitFailed",
"CommitFailed",
"PackingFailed",
"FailedUnrecoverable",
"Faulty",
"FaultReported",
"FaultedFinal",
]
class StorageNode extends React.Component {

View File

@ -1,9 +1,12 @@
export default {
account: "fil/1/account",
power: "fil/1/power",
market: "fil/1/market",
miner: "fil/1/miner",
multisig: "fil/1/multisig",
system: "fil/1/system",
init: "fil/1/init",
paych: "fil/1/paych",
cron: "fil/1/cron",
account: "fil/1/account",
power: "fil/1/storagepower",
miner: "fil/1/storageminer",
market: "fil/1/storagemarket",
paych: "fil/1/paymentchannel",
multisig: "fil/1/multisig",
reward: "fil/1/reward",
}

View File

@ -4,54 +4,23 @@ export default {
[code.account]: [
"Send",
"Constructor",
"GetAddress",
"PubkeyAddress",
],
[code.power]: [
[code.init]: [
"Send",
"Constructor",
"CreateStorageMiner",
"SlashConsensusFault",
"UpdateStorage",
"GetTotalStorage",
"PowerLookup",
"IsMiner",
"StorageCollateralForSize"
"Exec",
],
[code.market]: [
[code.cron]: [
"Send",
"Constructor",
"WithdrawBalance",
"AddBalance",
"CheckLockedBalance",
"PublishStorageDeals",
"HandleCronAction",
"SettleExpiredDeals",
"ProcessStorageDealsPayment",
"SlashStorageDealCollateral",
"GetLastExpirationFromDealIDs",
"ActivateStorageDeals",
"EpochTick",
],
[code.miner]: [
[code.reward]: [
"Send",
"Constructor",
"PreCommitSector",
"ProveCommitSector",
"SubmitPoSt",
"SlashStorageFault",
"GetCurrentProvingSet",
"ArbitrateDeal",
"DePledge",
"GetOwner",
"GetWorkerAddr",
"GetPower",
"GetPeerID",
"GetSectorSize",
"UpdatePeerID",
"ChangeWorker",
"IsSlashed",
"IsLate",
"DeclareFaults",
"SlashConsensusFault",
"AwardBlockReward",
"WithdrawReward",
],
[code.multisig]: [
"Send",
@ -63,19 +32,58 @@ export default {
"AddSigner",
"RemoveSigner",
"SwapSigner",
"ChangeRequirement",
],
[code.init]: [
"Send",
"Constructor",
"Exec",
"GetIdForAddress"
"ChangeNumApprovalsThreshold",
],
[code.paych]: [
"Send",
"Constructor",
"UpdateChannelState",
"Close",
"Settle",
"Collect",
],
[code.market]: [
"Send",
"Constructor",
"AddBalance",
"WithdrawBalance",
"HandleExpiredDeals",
"PublishStorageDeals",
"VerifyDealsOnSectorProveCommit",
"OnMinerSectorsTerminate",
"ComputeDataCommitment",
"GetWeightForDealSet",
],
[code.power]: [
"Send",
"Constructor",
"AddBalance",
"WithdrawBalance",
"CreateMiner",
"DeleteMiner",
"OnSectorProveCommit",
"OnSectorTerminate",
"OnSectorTemporaryFaultEffectiveBegin",
"OnSectorTemporaryFaultEffectiveEnd",
"OnSectorModifyWeightDesc",
"OnMinerWindowedPoStSuccess",
"OnMinerWindowedPoStFailure",
"EnrollCronEvent",
"ReportConsensusFault",
"OnEpochTickEnd",
],
[code.miner]: [
"Send",
"Constructor",
"ControlAddresses",
"ChangeWorkerAddress",
"ChangePeerID",
"SubmitWindowedPoSt",
"OnDeleteMiner",
"PreCommitSector",
"ProveCommitSector",
"ExtendSectorExpiration",
"TerminateSectors",
"DeclareTemporaryFaults",
"OnDeferredCronEvent",
],
}