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' const stateGettingToken = 'getting-token'
let sealCodes = [ let sealCodes = [
"Undefined", "UndefinedSectorState",
"Empty", "Empty",
"Packing", "Packing",
"Unsealed", "Unsealed",
"PreCommitting", "PreCommitting",
"PreCommitted", "WaitSeed",
"Committing", "Committing",
"CommitWait", "CommitWait",
"Proving", "FinalizeSector",
"Proving",
"SealFailed", "SealFailed",
"PreCommitFailed", "PreCommitFailed",
"SealCommitFailed", "SealCommitFailed",
"CommitFailed", "CommitFailed",
"PackingFailed",
"FailedUnrecoverable",
"Faulty",
"FaultReported",
"FaultedFinal",
] ]
class StorageNode extends React.Component { class StorageNode extends React.Component {

View File

@ -1,9 +1,12 @@
export default { export default {
account: "fil/1/account", system: "fil/1/system",
power: "fil/1/power",
market: "fil/1/market",
miner: "fil/1/miner",
multisig: "fil/1/multisig",
init: "fil/1/init", 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]: [ [code.account]: [
"Send", "Send",
"Constructor", "Constructor",
"GetAddress", "PubkeyAddress",
], ],
[code.power]: [ [code.init]: [
"Send", "Send",
"Constructor", "Constructor",
"CreateStorageMiner", "Exec",
"SlashConsensusFault",
"UpdateStorage",
"GetTotalStorage",
"PowerLookup",
"IsMiner",
"StorageCollateralForSize"
], ],
[code.market]: [ [code.cron]: [
"Send", "Send",
"Constructor", "Constructor",
"WithdrawBalance", "EpochTick",
"AddBalance",
"CheckLockedBalance",
"PublishStorageDeals",
"HandleCronAction",
"SettleExpiredDeals",
"ProcessStorageDealsPayment",
"SlashStorageDealCollateral",
"GetLastExpirationFromDealIDs",
"ActivateStorageDeals",
], ],
[code.miner]: [ [code.reward]: [
"Send", "Send",
"Constructor", "Constructor",
"PreCommitSector", "AwardBlockReward",
"ProveCommitSector", "WithdrawReward",
"SubmitPoSt",
"SlashStorageFault",
"GetCurrentProvingSet",
"ArbitrateDeal",
"DePledge",
"GetOwner",
"GetWorkerAddr",
"GetPower",
"GetPeerID",
"GetSectorSize",
"UpdatePeerID",
"ChangeWorker",
"IsSlashed",
"IsLate",
"DeclareFaults",
"SlashConsensusFault",
], ],
[code.multisig]: [ [code.multisig]: [
"Send", "Send",
@ -63,19 +32,58 @@ export default {
"AddSigner", "AddSigner",
"RemoveSigner", "RemoveSigner",
"SwapSigner", "SwapSigner",
"ChangeRequirement", "ChangeNumApprovalsThreshold",
],
[code.init]: [
"Send",
"Constructor",
"Exec",
"GetIdForAddress"
], ],
[code.paych]: [ [code.paych]: [
"Send", "Send",
"Constructor", "Constructor",
"UpdateChannelState", "UpdateChannelState",
"Close", "Settle",
"Collect", "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",
],
} }