Skip to content

core: export native serializators#4118

Merged
roman-khimov merged 1 commit intomasterfrom
meta-fixes
Dec 22, 2025
Merged

core: export native serializators#4118
roman-khimov merged 1 commit intomasterfrom
meta-fixes

Conversation

@AnnaShaleva
Copy link
Member

PutConvertibleToDAO and GetConvertibleFromDAO can be used by custom native contracts, ref.
nspcc-dev/neofs-node#3742 (comment).

@AnnaShaleva AnnaShaleva added this to the v0.115.0 milestone Dec 18, 2025
@AnnaShaleva AnnaShaleva added the enhancement Improving existing functionality label Dec 18, 2025
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 62.06897% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.45%. Comparing base (993eaae) to head (d66a9ce).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/core/native/oracle.go 25.00% 2 Missing and 4 partials ⚠️
pkg/core/dao/dao.go 71.42% 2 Missing and 2 partials ⚠️
pkg/core/native/management.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4118      +/-   ##
==========================================
- Coverage   83.47%   83.45%   -0.02%     
==========================================
  Files         353      353              
  Lines       42821    42819       -2     
==========================================
- Hits        35744    35735       -9     
- Misses       5323     5330       +7     
  Partials     1754     1754              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

putConvertibleToDAO and getConvertibleFromDAO can be used by custom
native contracts, ref.
nspcc-dev/neofs-node#3742 (comment).
Move these helpers to (*DAO) so that everyone can use them.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
func (dao *Simple) PutStorageConvertible(id int32, key []byte, conv stackitem.Convertible) error {
item, err := conv.ToStackItem()
if err != nil {
return err
Copy link
Member

Choose a reason for hiding this comment

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

i'd add context to every internal err

@roman-khimov roman-khimov merged commit ff43cb2 into master Dec 22, 2025
32 of 34 checks passed
@roman-khimov roman-khimov deleted the meta-fixes branch December 22, 2025 12:17
carpawell added a commit to nspcc-dev/neofs-node that referenced this pull request Dec 26, 2025
From neo-go side it is useful to have nspcc-dev/neo-go#4117
and nspcc-dev/neo-go#4118. Contracts are updated to keep
deploy code buildable.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell added a commit to nspcc-dev/neofs-node that referenced this pull request Feb 2, 2026
From neo-go side it is useful to have nspcc-dev/neo-go#4117
and nspcc-dev/neo-go#4118. Contracts are updated to keep
deploy code buildable.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell added a commit to nspcc-dev/neofs-node that referenced this pull request Feb 2, 2026
From neo-go side it is useful to have:
* nspcc-dev/neo-go#4117,
* nspcc-dev/neo-go#4145,
* nspcc-dev/neo-go#4118.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell added a commit to nspcc-dev/neofs-node that referenced this pull request Feb 2, 2026
From neo-go side it is useful to have:
* nspcc-dev/neo-go#4117,
* nspcc-dev/neo-go#4145,
* nspcc-dev/neo-go#4118.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improving existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants