-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
2,543 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// FETCHED FROM LOTUS: builtin/account/state.go.template | ||
|
||
package account | ||
|
||
import ( | ||
"github.com/filecoin-project/go-address" | ||
"github.com/ipfs/go-cid" | ||
|
||
"github.com/filecoin-project/venus/venus-shared/actors/adt" | ||
|
||
account7 "github.com/filecoin-project/specs-actors/v7/actors/builtin/account" | ||
) | ||
|
||
var _ State = (*state7)(nil) | ||
|
||
func load7(store adt.Store, root cid.Cid) (State, error) { | ||
out := state7{store: store} | ||
err := store.Get(store.Context(), root, &out) | ||
if err != nil { | ||
return nil, err | ||
} | ||
return &out, nil | ||
} | ||
|
||
func make7(store adt.Store, addr address.Address) (State, error) { | ||
out := state7{store: store} | ||
out.State = account7.State{Address: addr} | ||
return &out, nil | ||
} | ||
|
||
type state7 struct { | ||
account7.State | ||
store adt.Store | ||
} | ||
|
||
func (s *state7) PubkeyAddress() (address.Address, error) { | ||
return s.Address, nil | ||
} | ||
|
||
func (s *state7) GetState() interface{} { | ||
return &s.State | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// FETCHED FROM LOTUS: builtin/cron/state.go.template | ||
|
||
package cron | ||
|
||
import ( | ||
"github.com/ipfs/go-cid" | ||
|
||
"github.com/filecoin-project/venus/venus-shared/actors/adt" | ||
|
||
cron7 "github.com/filecoin-project/specs-actors/v7/actors/builtin/cron" | ||
) | ||
|
||
var _ State = (*state7)(nil) | ||
|
||
func load7(store adt.Store, root cid.Cid) (State, error) { | ||
out := state7{store: store} | ||
err := store.Get(store.Context(), root, &out) | ||
if err != nil { | ||
return nil, err | ||
} | ||
return &out, nil | ||
} | ||
|
||
func make7(store adt.Store) (State, error) { | ||
out := state7{store: store} | ||
out.State = *cron7.ConstructState(cron7.BuiltInEntries()) | ||
return &out, nil | ||
} | ||
|
||
type state7 struct { | ||
cron7.State | ||
store adt.Store | ||
} | ||
|
||
func (s *state7) GetState() interface{} { | ||
return &s.State | ||
} |
Oops, something went wrong.