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

[ioctl][ws][#3] project sub command to support interaction with ws contracts #4281

Merged
merged 4 commits into from
May 30, 2024

Conversation

saitofun
Copy link
Contributor

Description

updated reference:
wsutil: impls a universal contract calling with result retrieve and contract reading
supported commands:

  1. w3bsteram project register ioctl ws project register
  2. w3bstream project attribute ioctl ws project attributes set/geg
  3. update w3bstream project ioctl ws project update
  4. query w3bstream project ioctl ws project query
  5. w3bstream project state control ioctl ws project pause/resume

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • make test
  • [] fullsync
  • [] Other test (please specify)

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

if err != nil {
return nil, errors.Wrap(err, "failed to create contract caller")
}
caller.SetAmount(big.NewInt(int64(transferAmount.Value().(uint64))))
Copy link
Member

Choose a reason for hiding this comment

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

uint64 is not enough for token amount in rau unit, which can only represent around 18 IOTX at most

Copy link
Member

Choose a reason for hiding this comment

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

has this been fixed?

Copy link
Member

Choose a reason for hiding this comment

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

Is it redundent with generated Go like contracts/fleetmanagement.go?

Copy link

Quality Gate Passed Quality Gate passed

Issues
3 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@saitofun saitofun merged commit 66bf477 into master May 30, 2024
3 checks passed
@saitofun saitofun deleted the feat/ws_project_sub_command branch May 30, 2024 02:47
dustinxie pushed a commit that referenced this pull request May 30, 2024
…ntracts (#4281)


* feat(ioctl/ws): ioctl support ws project contracts interactions
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.

4 participants