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

Rename claim --> gift #46

Merged
merged 13 commits into from
Jun 26, 2024
Merged

Rename claim --> gift #46

merged 13 commits into from
Jun 26, 2024

Conversation

Leonard-Pat
Copy link
Contributor

  • Claim --> gift

  • starknet_gifting -> argent_gifting

  • account --> escrow account

  • account impl --> library

  • didnt touch asserts yet!

@Leonard-Pat Leonard-Pat requested review from sgc-code and gaetbout June 26, 2024 10:59
Comment on lines 45 to 58
const { txReceipt, gift, giftPrivateKey } = await defaultDepositTestSetup({
factory,
useTxV3,
overrides: {
claimPrivateKey: 42n,
giftTokenAddress: giftTokenContract.address,
},
});

const { claim: claimExternalOj, claimPrivateKey: claimPrivateKeyExternal } = await defaultDepositTestSetup({
factory,
useTxV3,
overrides: {
claimPrivateKey: 43n,
Copy link
Contributor

@gaetbout gaetbout Jun 26, 2024

Choose a reason for hiding this comment

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

Removing this broke the profiler ^^'

Copy link
Contributor

Choose a reason for hiding this comment

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

(You gotta make 2 gifts to be able to profile claim and claim external)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops

@gaetbout
Copy link
Contributor

God this is painful to review 🤣
(Not bad code or anything just very gotta be very tedious 😅 )

/// @param factory The address of the factory
/// @param class_hash The class hash of the gift account
/// @param class_hash The class hash of the escrow account
/// @param sender The address of the sender
/// @param gift_token The ERC-20 token address of the gift
Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated but this sentence ins't clear to me

Copy link
Contributor

Choose a reason for hiding this comment

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

Ignore it but let's keep it in mind later when we review doc

self: @TContractState,
class_hash: ClassHash,
escrow_class_hash: ClassHash,
Copy link
Contributor

Choose a reason for hiding this comment

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

to stay consistent, should we use the same naming as in deposit?

Suggested change
escrow_class_hash: ClassHash,
escrow_class_hash: ClassHash,

if y, take care to update the doc plz

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i dont get it dont they have the same name?

Copy link
Contributor

Choose a reason for hiding this comment

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

Wtf was my vscode doing '-'
You can close this remark x)

@gaetbout
Copy link
Contributor

Banger branch name btw

@sgc-code sgc-code merged commit 63ec58a into develop Jun 26, 2024
5 checks passed
@sgc-code sgc-code deleted the feat/grand-rename branch July 5, 2024 14:17
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.

3 participants