feat(oklink): add OKLink provider for multi-chain token transfers#192
Open
fatsheep2 wants to merge 6 commits intodeb-sig:masterfrom
Open
feat(oklink): add OKLink provider for multi-chain token transfers#192fatsheep2 wants to merge 6 commits intodeb-sig:masterfrom
fatsheep2 wants to merge 6 commits intodeb-sig:masterfrom
Conversation
- Add OKLink provider supporting ERC20 and TRC20 token transfers - Support multi-address configuration with flexible rule-based matching - Add automatic direction detection (send/receive) - Handle unverified tokens with address format in token symbol field - Add comprehensive documentation and examples - Add crypto order type support in beancount compiler - Update README with OKLink provider link
- Change build command to use the correct source directory for wasm files. - Enhance error handling for locating wasm_exec.js, checking both lib and misc directories in GOROOT.
Contributor
Author
Member
|
Need to resolve the conflicts. |
…w bank providers - Resolved merge conflicts in: - pkg/analyser/interface.go - pkg/cmd/translate.go - pkg/config/config.go - pkg/consts/consts.go - pkg/provider/interface.go - Added OKLink to test configuration in Makefile - Integrated new bank providers: abc_debit, boc, spdb_debit, bocom_credit, bocom_debit
Contributor
Author
|
@Triple-Z 冲突已经解决了,审阅没问题的话可以先把这个合并进主线,oklink可以查很多链,但是表头都不太一样,有的还不支持。目前应该只有erc和trc是支持的,其他的等我后面空闲了再看看怎么搞 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for OKLink blockchain explorer provider, enabling users to convert token transfer records from OKLink (Ethereum ERC20 and TRON TRC20) to Beancount format.
Key Features:
Improvements:
Motivation and Context
OKLink is a popular blockchain explorer that supports multiple chains and doesn't require account registration. Many users need to track their cryptocurrency token transfers from OKLink exports. This provider enables seamless conversion of OKLink CSV exports to Beancount format with flexible configuration options.
Key Design Decisions:
Dependencies
No new dependencies required. Uses existing Go standard library and project dependencies.
Type of change
How has this been tested?
Test A: Ethereum (ERC20) Token Transfer
deg translate -p oklink -c config.yaml -o output.bean input.csvTest B: TRON (TRC20) Token Transfer
Test C: Multi-address Configuration
Test D: Unverified Token Handling
Test E: Rule Matching
Test Configuration:
Is this change properly documented?
docs/providers/crypto/oklink.mdexample/oklink/config.yamlexample/oklink/example-oklink-token-transfer.csvexample/oklink/example-oklink-output.beancountDocumentation includes: