-
Notifications
You must be signed in to change notification settings - Fork 0
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: implementing hts crypto transfer method (#195) #219
base: main
Are you sure you want to change the base?
Conversation
2d7b854
to
e609cb3
Compare
e609cb3
to
cfc904c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review and approve the .gitignore
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapprove examples/hardhat-hts-crypto-transfer-hbar/.gitignore
@@ -0,0 +1,75 @@ | |||
// SPDX-License-Identifier: Apache-2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to export this interface (and others like IERC20/IERC721) from contracts/
.
Opened a ticket here #227
defaultNetwork: 'testnet', | ||
networks: { | ||
hardhat: { | ||
allowUnlimitedContractSize: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this?
@@ -0,0 +1,50 @@ | |||
/*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we already have a Hardhat example, we should include this test in there.
const hre = require('hardhat'); | ||
const { expect } = require('chai'); | ||
|
||
describe('RPC', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe something like
describe('RPC', function () { | |
describe('cryptoTransfer', function () { |
testnet: { | ||
url: 'https://testnet.hashio.io/api', | ||
accounts: process.env.TESTNET_OPERATOR_PRIVATE_KEY | ||
? [process.env.TESTNET_OPERATOR_PRIVATE_KEY] | ||
: [], | ||
chainId: 296, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be setup as forking. Otherwise, it's an internal test, not an example test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was more of an internal test. This feature (hbar transfer) will not work in the fork when using hardhat, even with our plugin. It relies on the foundry cheatcodes. I'll just remove this example for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good, left some thing to iterate on.
d40cee7
to
7b915e4
Compare
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
… was not using forks (#195) Signed-off-by: Mariusz Jasuwienas <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
8bc5217
to
8270fd2
Compare
Signed-off-by: Mariusz Jasuwienas <[email protected]>
@acuarica is there anything else we want to focus on in this PR? |
Once we are done with pending PRs, I'm going to take a look. |
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Description:
Allows users to call crypto transfer method on the HTS (0x167) address. Since the method is non-payable only foundry solution / library will support hbar transfers (through the vm cheat codes).
Related issue(s):
Fixes #195
Notes for reviewer:
Checklist