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

State-changing methods in RPC wrappers #2778

Merged
merged 6 commits into from
Nov 8, 2022
Merged

Conversation

roman-khimov
Copy link
Member

No description provided.

Same rationale as for BaseWriter or nep17.TokenWriter, otherwise it's hard to
build on top of plain Divisible structure.
@roman-khimov roman-khimov added the rpc RPC server and client label Nov 7, 2022
@roman-khimov roman-khimov added this to the v0.99.5 milestone Nov 7, 2022
@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #2778 (69d8905) into master (b590d4c) will decrease coverage by 0.08%.
The diff coverage is 88.46%.

@@            Coverage Diff             @@
##           master    #2778      +/-   ##
==========================================
- Coverage   84.93%   84.85%   -0.09%     
==========================================
  Files         327      327              
  Lines       40781    40814      +33     
==========================================
- Hits        34637    34632       -5     
- Misses       4747     4787      +40     
+ Partials     1397     1395       -2     
Impacted Files Coverage Δ
pkg/smartcontract/rpcbinding/binding.go 83.66% <87.83%> (+2.82%) ⬆️
pkg/rpcclient/nep11/divisible.go 100.00% <100.00%> (ø)
pkg/services/oracle/oracle.go 72.99% <0.00%> (-14.60%) ⬇️
pkg/network/compress.go 64.00% <0.00%> (-12.00%) ⬇️
pkg/services/oracle/request.go 58.18% <0.00%> (-5.00%) ⬇️
pkg/consensus/consensus.go 73.31% <0.00%> (-0.44%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

 * strip NEP-XX methods before going into generator to avoid unused imports
 * nepXX.Invoker types already include Call
 * always import util, it's used for Hash
"verify" contract doesn't have any safe methods.
}

// Actor is used by Contract to call state-changing methods.
type Actor interface {
Invoker
nep11.Actor

Copy link
Contributor

Choose a reason for hiding this comment

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

empty line >_<

@roman-khimov roman-khimov merged commit 695f00c into master Nov 8, 2022
@roman-khimov roman-khimov deleted the rpc-wrapper-writer branch November 8, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rpc RPC server and client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants