Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actor wrapper codegen #6108

Merged
merged 10 commits into from
May 11, 2021
Merged

Actor wrapper codegen #6108

merged 10 commits into from
May 11, 2021

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Apr 26, 2021

TODO:

  • Templates for remaining actors
  • Cleanup templates after first-pass review (nicer templates > nicer output)
  • Attach to make gen
  • Codegen for other places touching versioned actors

@magik6k magik6k force-pushed the feat/actors-codegen branch 2 times, most recently from e17a6c4 to c988b7a Compare April 27, 2021 19:01
Copy link
Contributor

@arajasek arajasek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zeroeth pass review looks good. Will squint more closely at the actual templates tomorrow.

chain/actors/agen/main.go Outdated Show resolved Hide resolved
Cancel(msig address.Address, txID uint64, hash *ProposalHashData) (*types.Message, error)
}

// this type is the same between v0 and v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments such as these are a bit weird to have in the templates

@magik6k magik6k force-pushed the feat/actors-codegen branch 2 times, most recently from 5bcd062 to 1512614 Compare April 30, 2021 17:10
Copy link
Contributor

@arajasek arajasek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is basically good to go, though one final review pass would be good

@arajasek arajasek marked this pull request as ready for review May 6, 2021 04:20
- [ ] Generate adapters
- [ ] Add the new version in `chain/actors/agen/main.go`
- [ ] Update adapter code in `chain/actors/builtin` if needed
- [ ] Update `chain/actors/policy/policy.go`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to remove this now that it's generated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both bulitin and policy are gend

decodeTransaction(val *cbg.Deferred) (Transaction, error)
}

type Transaction = msig0.Transaction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use latest?

"github.com/ipfs/go-cid"

msig0 "github.com/filecoin-project/specs-actors/actors/builtin/multisig"
msig4 "github.com/filecoin-project/specs-actors/v4/actors/builtin/multisig"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be latest

@arajasek arajasek merged commit bf10b05 into master May 11, 2021
@arajasek arajasek deleted the feat/actors-codegen branch May 11, 2021 00:12
@arajasek arajasek changed the title wip actor wrapper codegen Actor wrapper codegen May 13, 2021
@BigLep BigLep added this to the Hyperdrive milestone May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants