Use shorter code cids
This commit is contained in:
parent
e148f33008
commit
9bd086bf7b
@ -39,11 +39,11 @@ func init() {
|
|||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
AccountCodeCid = mustSum("filecoin/1.0/AccountActor")
|
AccountCodeCid = mustSum("fil/1/account") // TODO: spec
|
||||||
StoragePowerCodeCid = mustSum("filecoin/1.0/StoragePowerActor")
|
StoragePowerCodeCid = mustSum("fil/1/power")
|
||||||
StorageMarketCodeCid = mustSum("filecoin/1.0/StorageMarketActor")
|
StorageMarketCodeCid = mustSum("fil/1/market")
|
||||||
StorageMinerCodeCid = mustSum("filecoin/1.0/StorageMinerActor")
|
StorageMinerCodeCid = mustSum("fil/1/miner")
|
||||||
MultisigCodeCid = mustSum("filecoin/1.0/MultisigActor")
|
MultisigCodeCid = mustSum("fil/1/multisig")
|
||||||
InitCodeCid = mustSum("filecoin/1.0/InitActor")
|
InitCodeCid = mustSum("fil/1/init")
|
||||||
PaymentChannelCodeCid = mustSum("filecoin/1.0/PaymentChannelActor")
|
PaymentChannelCodeCid = mustSum("fil/1/paych")
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
export default {
|
export default {
|
||||||
init: 'filecoin/1.0/InitActor',
|
account: "fil/1/account",
|
||||||
power: 'filecoin/1.0/StoragePowerActor',
|
power: "fil/1/power",
|
||||||
market: 'filecoin/1.0/StorageMarketActor'
|
market: "fil/1/market",
|
||||||
|
miner: "fil/1/miner",
|
||||||
|
multisig: "fil/1/multisig",
|
||||||
|
init: "fil/1/init",
|
||||||
|
paych: "fil/1/paych",
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
|
import code from "./code";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
"filecoin/1.0/AccountActor": [
|
[code.account]: [
|
||||||
"Send",
|
"Send",
|
||||||
"Constructor",
|
"Constructor",
|
||||||
"GetAddress",
|
"GetAddress",
|
||||||
],
|
],
|
||||||
"filecoin/1.0/StoragePowerActor": [
|
[code.power]: [
|
||||||
"Send",
|
"Send",
|
||||||
"Constructor",
|
"Constructor",
|
||||||
"CreateStorageMiner",
|
"CreateStorageMiner",
|
||||||
@ -15,7 +17,7 @@ export default {
|
|||||||
"IsMiner",
|
"IsMiner",
|
||||||
"StorageCollateralForSize"
|
"StorageCollateralForSize"
|
||||||
],
|
],
|
||||||
"filecoin/1.0/StorageMarketActor": [
|
[code.market]: [
|
||||||
"Send",
|
"Send",
|
||||||
"Constructor",
|
"Constructor",
|
||||||
"WithdrawBalance",
|
"WithdrawBalance",
|
||||||
@ -29,7 +31,7 @@ export default {
|
|||||||
"GetLastExpirationFromDealIDs",
|
"GetLastExpirationFromDealIDs",
|
||||||
"ActivateStorageDeals",
|
"ActivateStorageDeals",
|
||||||
],
|
],
|
||||||
"filecoin/1.0/StorageMinerActor": [
|
[code.miner]: [
|
||||||
"Send",
|
"Send",
|
||||||
"Constructor",
|
"Constructor",
|
||||||
"CommitSector",
|
"CommitSector",
|
||||||
@ -50,7 +52,7 @@ export default {
|
|||||||
"PaymentVerifyInclusion",
|
"PaymentVerifyInclusion",
|
||||||
"PaymentVerifySector",
|
"PaymentVerifySector",
|
||||||
],
|
],
|
||||||
"filecoin/1.0/MultisigActor": [
|
[code.multisig]: [
|
||||||
"Send",
|
"Send",
|
||||||
"Constructor",
|
"Constructor",
|
||||||
"Propose",
|
"Propose",
|
||||||
@ -62,13 +64,13 @@ export default {
|
|||||||
"SwapSigner",
|
"SwapSigner",
|
||||||
"ChangeRequirement",
|
"ChangeRequirement",
|
||||||
],
|
],
|
||||||
"filecoin/1.0/InitActor": [
|
[code.init]: [
|
||||||
"Send",
|
"Send",
|
||||||
"Constructor",
|
"Constructor",
|
||||||
"Exec",
|
"Exec",
|
||||||
"GetIdForAddress"
|
"GetIdForAddress"
|
||||||
],
|
],
|
||||||
"filecoin/1.0/PaymentChannelActor": [
|
[code.paych]: [
|
||||||
"Send",
|
"Send",
|
||||||
"Constructor",
|
"Constructor",
|
||||||
"UpdateChannelState",
|
"UpdateChannelState",
|
||||||
|
Loading…
Reference in New Issue
Block a user