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

Include /transactions endpoint in bridge API #21

Open
0xSasaPrsic opened this issue Jun 13, 2024 · 3 comments
Open

Include /transactions endpoint in bridge API #21

0xSasaPrsic opened this issue Jun 13, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@0xSasaPrsic
Copy link
Member

0xSasaPrsic commented Jun 13, 2024

endpoint: /transactions
queryParams: {
	ethAddress?: ""
	availAddress?: ""
	page?: 3
	pageSize?: 25
}
response: {
	result: [
		{
		  sourceChain: "AVAIL", // "ETHEREUM"
		  destinationChain: "ETHEREUM", // "AVAIL"
		  messageId: 24,
		  status:"IN PROGRESS" // "READY_TO_CLAIM" // "CLAIMED" // "FAILED"
		  sourceTransactionHash: "0xabc", 
		  sourceTransactionBlockNumber: 123,
		  sourceTransactionIndex: 2,
		  sourceTransactionTimestamp: date,
		  sourceTokenAddress: "0xabc",
		  destinationTransactionHash: "0xabc",
		  destinationTransactionBlockNumber: 123,
		  destinationTransactionTimestamp: date,
		  destinationTransactionIndex: 123,
		  destinationTokenAddress: "0xabc",
		  depositorAddress: "0xabc",
		  receiverAddress: "0xabc",
		  amount: 1234,
		  message: "0x",
		  dataType: "ERC20",
		  blockHash: "0xabc"
		}, 
		{}
	],
	paginationData: {
		hasNextPage: true
		page: 0
		pageSize: 25
		totalCount: 100
	}
}
@0xSasaPrsic 0xSasaPrsic self-assigned this Jun 13, 2024
@0xSasaPrsic 0xSasaPrsic added the enhancement New feature or request label Jun 13, 2024
@0xSasaPrsic
Copy link
Member Author

@abheektripathy we need additional info about the payload.
query params:

  • what should be default values for query params?
  • pageSize must have upper bound.
  • what are mandatory fields in the response
  • how should be handled if the response is optional? null or to remove prop from the response?

@0xSasaPrsic
Copy link
Member Author

PR that supports current indexer implementation: #22

@0xSasaPrsic
Copy link
Member Author

Bridge api merge blocked by availproject/bridge-ui-indexer#7

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

1 participant