Peter Rabbitson
ed387b43cc
Bump go-multihash, adjust test for supported version
2021-07-26 17:50:19 +02:00
Raúl Kripalani
d1104fec4c
rename blockstores for consistency.
2021-01-29 23:17:25 +00:00
Raúl Kripalani
b0cbc932bd
consolidate all blockstores in blockstore package.
2021-01-29 20:01:00 +00:00
Dirk McCormick
f79652c28c
feat: cache deal states for most recent old/new tipset
2020-10-28 16:55:48 +01:00
Steven Allen
4e730b5ec8
port to v2 imports
2020-10-21 12:16:23 -07:00
Steven Allen
46f5b62a76
Remove a misleading miner actor abstraction
...
We shouldn't implement CBOR functions on the "abstract" miner info. Otherwise,
we could end up trying to actually _use_ this "abstract" info when decoding
state (which won't work across version).
Also remove the use of these CBOR functions, and instead explicitly use miner0
types. We'll have to abstract over versions eventually, but we'll probably need
some form of abstract miner builder (or maybe even adding some "add sector",
etc. functions to the current miner abstraction?
2020-09-23 14:49:53 -07:00
Steven Allen
1bf3b4989d
rename imports to match actors code
...
`sed -i 's/\bv0\(\w\)\(\w*\)/\L\1\E\20/g' **/*.go`
2020-09-18 14:59:27 -07:00
Aayush Rajasekaran
694463ffbe
More lint fixes
2020-09-18 03:06:28 -04:00
Aayush Rajasekaran
37de154a7c
Fixup tests
2020-09-18 01:56:21 -04:00
Steven Allen
b2ee59024f
improve diff logic
...
* Make diffing work across versions.
* Start porting more chainwatch logic.
2020-09-17 21:39:34 -07:00
hannahhoward
691bd9f442
feat(markets): complete markets conversion
...
complete markets conversion to using chain/actors types, also replacing DealProposal/DealState
interfaces with structs
2020-09-17 00:43:14 -07:00
Aayush Rajasekaran
b5ba7a0fad
Miner migration
2020-09-17 02:21:16 -04:00
hannahhoward
80b6994fe2
feat(market): update state diffing for market actor
...
Update to abstract actor for markets state diffing. Also move the diff adt functions inside the
abstract actors
2020-09-16 19:14:07 -07:00
hannahhoward
05c11531b1
feat(paych): convert paych actor
...
build abstraction for paych actor and switch to using it in payment channel manager and state
predicates
2020-09-15 21:06:04 -07:00
Aayush Rajasekaran
39755a294a
Update to specs v0.9.6
2020-09-07 15:48:41 -04:00
Steven Allen
5733c71c50
Lint everything
...
We were ignoring quite a few error cases, and had one case where we weren't
actually updating state where we wanted to. Unfortunately, if the linter doesn't
pass, nobody has any reason to actually check lint failures in CI.
There are three remaining XXXs marked in the code for lint.
2020-08-20 20:46:36 -07:00
Steven Allen
9248e5a572
Update specs-actors, cbor-gen, and go-address
2020-08-12 10:32:39 -07:00
Steven Allen
9135a5d048
Pass bitfields by-value
...
This ensures we can't end up decoding nil bitfields from clients when not
expecting them.
Part of https://github.com/filecoin-project/specs-actors/issues/895 . Please see
this issue for details and leave any comments there.
2020-08-12 10:32:39 -07:00
hannahhoward
f4720ddb2c
feat(state): add predicate for deal id watching
2020-08-04 17:28:05 -07:00
Aayush Rajasekaran
c881f287ad
Update specs-actors and chain-val...again
2020-07-31 00:29:44 -04:00
Łukasz Magiera
4d328cad54
Get things to mostly work
2020-07-30 14:31:50 +02:00
Łukasz Magiera
ed04c80bb1
Fix precommit deposit
2020-07-28 20:55:31 +02:00
Steven Allen
b7a4dbb07f
Support inline CIDs
...
And use the new CidBuilder from the spec actors.
This patch does not switch over to inline CIDs by default, but paves the way.
2020-07-23 23:12:32 -07:00
Steven Allen
5fc83f4d05
Refactor to use actor adt types instead of directly using HAMTs and AMTs
...
This way there's a single source of truth. Preparation for fixing
https://github.com/filecoin-project/specs-actors/issues/517 (requires changing
HAMT parameters).
2020-07-23 09:34:57 -07:00
Łukasz Magiera
5301aa4db2
Update specs-actor with unsafa param fixes
2020-07-20 14:31:18 +02:00
Łukasz Magiera
bbfa66636d
More test fixing
2020-07-14 22:30:25 +02:00
Łukasz Magiera
89a6b6842c
Merge remote-tracking branch 'origin/master' into next
2020-07-10 22:24:41 +02:00
frrist
bf6b76a4fb
feat: add market deal state & proposal predicates
...
- detects changes in the market deal proposal and market deal state
amts.
2020-07-09 14:43:21 -07:00
Łukasz Magiera
d16de56280
gofmt
2020-07-08 14:35:53 +02:00
Łukasz Magiera
b049c5a7d1
Merge remote-tracking branch 'origin/master' into next
2020-07-08 14:35:40 +02:00
frrist
3c6e46cd70
feat: add miner sector predicate and test
...
-polish: OnActorStateChanged operate over TipSetKey
- it was calling key() interally and tipsetkeys are cheaper to get than
the full tipset
-polish: improve predicate method names
2020-07-06 14:27:39 -07:00
hannahhoward
92bb5bd915
fix(lint): fix lint errors
2020-07-01 12:06:29 +02:00
Dirk McCormick
a3abff768c
fix: dont register state change if deal is not present in from and to states
2020-07-01 12:06:29 +02:00
Dirk McCormick
1fd1c2edbd
feat: allow nil deal state change (deal removed)
2020-07-01 12:06:29 +02:00
Dirk McCormick
c72def55fe
test: add more predicate tests
2020-06-29 11:21:29 -04:00
Dirk McCormick
bbb9a9cd1a
refactor: lint fixes
2020-06-26 15:36:48 -04:00
Dirk McCormick
393a9ca4f2
test: predicates test
2020-06-26 14:41:19 -04:00