Skip to content

Merge changes made for add provider/token constants and refactor core - #601

Open
gklps wants to merge 6 commits into
release-v1from
gklps/v2/update-wallet-foundation
Open

Merge changes made for add provider/token constants and refactor core#601
gklps wants to merge 6 commits into
release-v1from
gklps/v2/update-wallet-foundation

Conversation

@gklps

@gklps gklps commented Mar 12, 2026

Copy link
Copy Markdown
Member

Introduce new centralized constants for token statuses, IPFS provider function IDs, provider roles, token modes, and token sync statuses. Replace scattered wallet-based enums/usages with the new constants across core packages (core, fullnode, quorum_*, recover, token handling, pin/check, validation and chain sync logic). Add a new wallet/ipfs_service.go (provider-aware Pin implementation) and remove the old core/service/service.go; also remove/adjust service usage in Core struct (srv commented) and related imports. These changes consolidate role/function identifiers and prepare codepaths for provider-based IPFS pin/unpin and sync handling. Rename AsyncPinJob fields (Sender, Receiver) to Initator and Owner and update SubmitPinJob signature accordingly. Replace wallet role/func constants with constants.ProviderRole_QuorumPin and constants.ProviderFunc_Pin. Reduce status monitor frequency to 60s, tidy up worker/init code and minor whitespace/formatting cleanups. No functional change to provider map persistence; concurrency/ batching logic and retry behavior remain intact.

Allen-Cherian and others added 6 commits March 10, 2026 10:21
…, updated with new struct, fix a typo : GetQuerry to GetQuery, include the APIReqPledgeToken in initiateTransfer [WIP:Breaking]
add wallet.Token type with model conversions, fix schema/model alignment for latest_position and latest_role, add BeginTx, use explicit column lists in token queries
Introduce BuildTransactionInfoFromRequest (transaction_builder.go) to collect and lock tokens for transfers; add token locking helpers (core/wallet/token_lock.go) and provider details batch upsert (core/wallet/provider_details.go). Rename sender/receiver to initiator/owner in DB schema and models (core/storage/schema.go, types/models/models.go). Remove the AsyncProviderDetailsManager and its usage, and add Wallet.BeginTx wrapper plus minor wallet struct/import adjustments.
Introduce new centralized constants for token statuses, IPFS provider function IDs, provider roles, token modes, and token sync statuses. Replace scattered wallet-based enums/usages with the new constants across core packages (core, fullnode, quorum_*, recover, token handling, pin/check, validation and chain sync logic). Add a new wallet/ipfs_service.go (provider-aware Pin implementation) and remove the old core/service/service.go; also remove/adjust service usage in Core struct (srv commented) and related imports. These changes consolidate role/function identifiers and prepare codepaths for provider-based IPFS pin/unpin and sync handling.
Rename AsyncPinJob fields (Sender, Receiver) to Initator and Owner and update SubmitPinJob signature accordingly. Replace wallet role/func constants with constants.ProviderRole_QuorumPin and constants.ProviderFunc_Pin. Reduce status monitor frequency to 60s, tidy up worker/init code and minor whitespace/formatting cleanups. No functional change to provider map persistence; concurrency/ batching logic and retry behavior remain intact.
@gklps gklps closed this Mar 12, 2026
@gklps gklps reopened this Mar 12, 2026
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.

2 participants