-
Notifications
You must be signed in to change notification settings - Fork 55
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: adds example HRC904 contracts + new methods to HTS contract #1125
Conversation
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
…tion successfully Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
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.
Nice work, some tweaks and then let's get this in
contracts/system-contracts/hedera-token-service/examples/hrc-904/Airdrop.sol
Show resolved
Hide resolved
contracts/system-contracts/hedera-token-service/examples/hrc-904/HRC904Contract.sol
Show resolved
Hide resolved
contracts/system-contracts/hedera-token-service/examples/hrc-904/TokenReject.sol
Show resolved
Hide resolved
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.
LG
contracts/system-contracts/hedera-token-service/examples/hrc-904/HRC904Contract.sol
Outdated
Show resolved
Hide resolved
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.
Nice process. Non blocking but I have an idea for the PR tho.
Given the urgent priority of pushing the example contracts for Frictionless Airdrop, I suggest repurposing this PR to focus solely on feat: adds example HRC904 contracts.
The test coverage for the AirdropContract can be moved to a separate PR, as I believe it would need additional work on it. This approach is preferable since other contracts, such as CancelAirdrop, ClaimAirdrop, etc., also need test coverage.
Additionally, we would also have these tests running in CI for better visibility as well. And in order to run these tests in CI it would require extra work, including adding a new workflow and updating local-node to use the correct network version.
For now, limiting this PR to the example contracts seems like the best appraoch I believe.
contracts/system-contracts/hedera-token-service/examples/hrc-904/Airdrop.sol
Show resolved
Hide resolved
contracts/system-contracts/hedera-token-service/examples/hrc-904/Airdrop.sol
Outdated
Show resolved
Hide resolved
contracts/system-contracts/hedera-token-service/examples/hrc-904/CancelAirdrop.sol
Outdated
Show resolved
Hide resolved
contracts/system-contracts/hedera-token-service/examples/hrc-904/ClaimAirdrop.sol
Outdated
Show resolved
Hide resolved
contracts/system-contracts/hedera-token-service/examples/hrc-904/HRC904Contract.sol
Outdated
Show resolved
Hide resolved
contracts/system-contracts/hedera-token-service/examples/hrc-904/Airdrop.sol
Outdated
Show resolved
Hide resolved
test/system-contracts/hedera-token-service/hrc-904/AirdropContract.js
Outdated
Show resolved
Hide resolved
test/system-contracts/hedera-token-service/hrc-904/AirdropContract.js
Outdated
Show resolved
Hide resolved
test/system-contracts/hedera-token-service/hrc-904/AirdropContract.js
Outdated
Show resolved
Hide resolved
test/system-contracts/hedera-token-service/hrc-904/AirdropContract.js
Outdated
Show resolved
Hide resolved
…rop contract test coverage for a later PR Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
…rop contract test coverage for a later PR Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
cc959b7
to
087749c
Compare
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
contracts/system-contracts/hedera-token-service/examples/hrc-904/CancelAirdrop.sol
Show resolved
Hide resolved
…ent PR Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
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.
LGTM! Great work!
contracts/system-contracts/hedera-token-service/examples/hrc-904/Airdrop.sol
Outdated
Show resolved
Hide resolved
...cts/hedera-token-service/examples/token-query/TokenQueryContract.sol/TokenQueryContract.json
Show resolved
Hide resolved
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.
Left some comments
Signed-off-by: Simeon Nakov <simeon.nakov@limechain.tech>
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.
LGTM! Great work!
Description:
This PR adds example contracts for HRC904 #1012 functionality such as cancelAirdrops, claimAirdrops, airdropTokens, rejectTokens as well as adding the new methods to the
HederaTokenService.sol
contractRelated issue(s):
Closes #1160
Fixes #1135
Notes for reviewer:
Checklist