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

W5 support added #16

Merged
merged 68 commits into from
Jul 16, 2024
Merged

W5 support added #16

merged 68 commits into from
Jul 16, 2024

Conversation

siandreev
Copy link

No description provided.

@siandreev
Copy link
Author

Still WIP, don't merge ⚠️

# Conflicts:
#	src/wallets/WalletContractV5.spec.ts
#	src/wallets/WalletContractV5.ts
#	src/wallets/signing/createWalletTransfer.ts
#	yarn.lock
this.walletId = walletId;

// Build initial code and data
let code = Cell.fromBoc(Buffer.from('te6cckEBAQEAIwAIQgLkzzsvTG1qYeoPK1RH0mZ4WyavNjfbLe7mvNGqgm80Eg3NjhE=', 'base64'))[0];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be very nice if we specify a link for a commit from this code was built

Copy link
Author

Choose a reason for hiding this comment

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

fixed

/**
* Sign and send request
*/
async sendRequest(provider: ContractProvider, args: Wallet5SendArgs & { actions: (OutActionSendMsg | OutActionExtended)[], }) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

what does Request actually mean? Maybe sendActionsBatch?

Copy link
Author

Choose a reason for hiding this comment

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

fixed

/**
* Create signed request or extension auth request
*/
createRequest(args: Wallet5SendArgs & { actions: (OutActionSendMsg | OutActionExtended)[] }) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do not create specific type for OutActions allowed for WalletV5? To avoid using union

Copy link
Author

Choose a reason for hiding this comment

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

fixed

yarn.lock Outdated
chalk: ^2.4.2
checksum: d90981fdf56a2824a9b14d19a4c0e8db93633fd488c772624b4e83e0ceac6039a27cd298a247c3214faa952bf803ba23696172ae7e7235f3b97f43ba278c569a
checksum: 22e342c8077c8b77eeb11f554ecca2ba14153f707b85294fcf6070b6f6150aae88a7b7436dd88d8c9289970585f3fe5b9b941c5aa3aa26a6d5a8ef3f292da058
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why yarn.lock is updated? There is no changes in package.json

Copy link
Author

Choose a reason for hiding this comment

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

Rolled it back

@siandreev siandreev requested a review from dvlkv June 6, 2024 16:48
@siandreev
Copy link
Author

@dvlkv Please check the updates, Wallet V5R1 is just supported

}

/**
* при экстернале обязателен флаг +2 в sendmode, при интернале - любой sendmode
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please, refrain from using languages other than English

@dvlkv dvlkv merged commit 25441c2 into ton-org:master Jul 16, 2024
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