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

feat(stdlibs/std): restrict Banker methods based on caller of GetBanker #1921

Merged
merged 14 commits into from
Jul 2, 2024

Conversation

r3v4s
Copy link
Contributor

@r3v4s r3v4s commented Apr 12, 2024

related pr #1787

There was bit of extra conversion in previous pr after merged.

  1. revert test cases
  2. allow Send from realm that created banker rather the one calling
Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

@github-actions github-actions bot added 🧾 package/realm Tag used for new Realms or Packages. 📦 🤖 gnovm Issues or PRs gnovm related labels Apr 12, 2024
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.71%. Comparing base (79a71a4) to head (ecb8487).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1921   +/-   ##
=======================================
  Coverage   54.70%   54.71%           
=======================================
  Files         583      583           
  Lines       78504    78492   -12     
=======================================
  Hits        42946    42946           
+ Misses      32349    32337   -12     
  Partials     3209     3209           
Flag Coverage Δ
contribs/gnodev 23.81% <ø> (ø)
contribs/gnofaucet 14.46% <ø> (ø)
contribs/gnokeykc 0.00% <ø> (ø)
contribs/gnomd 0.00% <ø> (ø)
gno.land 62.54% <ø> (ø)
gnovm 60.00% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@r3v4s r3v4s requested a review from piux2 April 12, 2024 02:59
@r3v4s r3v4s marked this pull request as ready for review April 12, 2024 03:05
@r3v4s r3v4s requested review from jaekwon, thehowl and a team as code owners April 12, 2024 03:05
@thehowl thehowl added this to the 🏗4️⃣ test4.gno.land milestone May 7, 2024
gnovm/stdlibs/std/banker.gno Outdated Show resolved Hide resolved
@zivkovicmilos
Copy link
Member

@r3v4s Can you please rebase with the latest master? 🙏

@r3v4s r3v4s requested a review from moul as a code owner June 24, 2024 09:55
gnovm/stdlibs/std/banker.gno Outdated Show resolved Hide resolved
docs/concepts/stdlibs/coin.md Outdated Show resolved Hide resolved
gnovm/stdlibs/std/banker.gno Outdated Show resolved Hide resolved
examples/gno.land/r/demo/banktest/z_3_filetest.gno Outdated Show resolved Hide resolved
examples/gno.land/r/demo/banktest/z_3_filetest.gno Outdated Show resolved Hide resolved
@Kouteki Kouteki removed request for jaekwon, moul and piux2 July 2, 2024 09:53
@thehowl thehowl changed the title feat(stdlibs/std): Banker struct includes realm of address that created it. feat(stdlibs/std): restrict Banker methods based on caller of GetBanker Jul 2, 2024
@thehowl thehowl merged commit 876eaf9 into gnolang:master Jul 2, 2024
149 checks passed
gfanton pushed a commit to gfanton/gno that referenced this pull request Jul 23, 2024
…er (gnolang#1921)

related pr gnolang#1787

There was bit of extra conversion in previous pr after merged. 
1) revert test cases
2) allow `Send` from realm that created banker rather the one calling

<!-- please provide a detailed description of the changes made in this
pull request. -->

<details><summary>Contributors' checklist...</summary>

- [x] Added new tests, or not needed, or not feasible
- [x] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [x] Updated the official documentation or not needed
- [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [x] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>

---------

Co-authored-by: Morgan <git@howl.moe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🤖 gnovm Issues or PRs gnovm related 🧾 package/realm Tag used for new Realms or Packages.
Projects
Status: Done
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants