Skip to content

Provide an activity and action builders for fields validation #44

@kallydev

Description

@kallydev

What feature is it?

actionBuilder := activity.NewActionBuilder(type.TransactionTransfer, from, to)
actionBuilder.SetPlatform(decentralized.Platform1Inch)

action, err := actionBuilder.Build() // Build and check all fields.

What problem does this feature solve?

Using Activity and Action structures directly can easily lead to invalid or missing values in some fields, which can be avoided using builder pattern.

Additional description

No response

This is not a duplicated feature request or new worker proposal

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions