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

feat: sourcechain and asset attributes in link events #1236

Merged
merged 2 commits into from
Jan 19, 2022

Conversation

jcs47
Copy link
Contributor

@jcs47 jcs47 commented Jan 19, 2022

Description

Todos

  • Unit tests
  • Manual tests
  • Documentation
  • Connect epics/issues
  • Tag type of change

Steps to Test

Expected Behaviour

Other Notes

@@ -68,9 +68,11 @@ func (s msgServer) Link(c context.Context, req *types.LinkRequest) (*types.LinkR
sdk.NewEvent(
types.EventTypeLink,
sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName),
sdk.NewAttribute(types.AttributeKeySourceChain, exported.Axelarnet.Name),
Copy link
Member

Choose a reason for hiding this comment

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

Source chain could be another Cosmos chain though? We don't know at this point in time. But I guess we can add this for consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

as of right now, in this module the source chain is always axelarnet:

	if err := s.nexus.LinkAddresses(ctx,
		nexus.CrossChainAddress{Chain: exported.Axelarnet, Address: depositAddress.String()},
		recipient,
	); err != nil {
		return nil, fmt.Errorf("could not link addresses: %s", err.Error())
	}

@jcs47 jcs47 merged commit 24b0f8e into main Jan 19, 2022
@jcs47 jcs47 deleted the link_event_attributes branch January 19, 2022 18:43
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.

None yet

3 participants