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

Support ABI encoder version 1.1 #61

Closed
2 tasks done
maoueh opened this issue Sep 14, 2018 · 2 comments
Closed
2 tasks done

Support ABI encoder version 1.1 #61

maoueh opened this issue Sep 14, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@maoueh
Copy link
Contributor

maoueh commented Sep 14, 2018

This is a meta issue to track progress of ABI Encoder/Decoder to support ABI version 1.1.

@maoueh maoueh added the enhancement New feature or request label Sep 14, 2018
@abourget
Copy link
Contributor

Missing will be encoding/decoding to/from bin <-> Go structs for variants.

Proposed addition:

type MaStruct struct {
	Memo string
	Key  VariantNameUint32
}

type VariantNameUint32 struct {
	EOS_Variant int

	Uint32Val uint32
	Name      Name
}

func (v *VariantNameUint32) SetUint32(bob uint32) {
	v.EOS_Variant = 0
	v.Uint32Val = bob
}

func (v *VariantNameUint32) SetName(bob eos.Name) {
	v.EOS_Variant = 1
	v.Name = bob
}

or something similar. Feedback welcome.

@maoueh
Copy link
Contributor Author

maoueh commented Jan 22, 2020

Started initial approach in the library the supports binary + JSON format, see https://github.com/eoscanada/eos-go/blob/master/types.go#L1087.

Usage example: BlockSigningAuthority

@maoueh maoueh closed this as completed Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants