Skip to content

Support Rosetta Currency to be passed as argument#116

Draft
sajjad-zaidi-cb wants to merge 1 commit into
coinbase:masterfrom
sajjad-zaidi-cb:rosetta-currency
Draft

Support Rosetta Currency to be passed as argument#116
sajjad-zaidi-cb wants to merge 1 commit into
coinbase:masterfrom
sajjad-zaidi-cb:rosetta-currency

Conversation

@sajjad-zaidi-cb
Copy link
Copy Markdown

Fixes # .

Motivation

Currently currency is defaulting to Eth for fee/trace ops.

Solution

This PR is allows the ability to pass currency or it defaults to sdk currency.
client.test is covering this

Open questions

Comment thread services/mapper.go
func TraceOps(
calls []*evmClient.FlatCall,
startIndex int,
args ...interface{},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this function argument change can potentially break all upstream Rosetta (e.g. Base, Arbitrum, BSC). regression tests for different chains are needed for this change

Comment thread services/mapper.go
}

func FeeOps(tx *evmClient.LoadedTransaction) []*RosettaTypes.Operation {
func FeeOps(tx *evmClient.LoadedTransaction, args ...interface{}) []*RosettaTypes.Operation {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this function argument change can potentially break all upstream Rosetta (e.g. Base, Arbitrum, BSC). regression tests for different chains are needed for this change

@GeekArthur
Copy link
Copy Markdown
Contributor

GeekArthur commented Jan 24, 2024

@sajjad-zaidi-cb can you do some research on the solutions where achieving currency flexibility but still ensure backward compatibility?

cc @xiaying-peng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants