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