-
Notifications
You must be signed in to change notification settings - Fork 57
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
W5 support added #16
Conversation
Still WIP, don't merge |
Support External signer for wallet contracts 3,4,5
# Conflicts: # src/wallets/WalletContractV5.spec.ts # src/wallets/WalletContractV5.ts # src/wallets/signing/createWalletTransfer.ts # yarn.lock
src/wallets/WalletContractV5.ts
Outdated
this.walletId = walletId; | ||
|
||
// Build initial code and data | ||
let code = Cell.fromBoc(Buffer.from('te6cckEBAQEAIwAIQgLkzzsvTG1qYeoPK1RH0mZ4WyavNjfbLe7mvNGqgm80Eg3NjhE=', 'base64'))[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.
Would be very nice if we specify a link for a commit from this code was built
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.
fixed
src/wallets/WalletContractV5.ts
Outdated
/** | ||
* Sign and send request | ||
*/ | ||
async sendRequest(provider: ContractProvider, args: Wallet5SendArgs & { actions: (OutActionSendMsg | OutActionExtended)[], }) { |
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.
what does Request
actually mean? Maybe sendActionsBatch
?
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.
fixed
src/wallets/WalletContractV5.ts
Outdated
/** | ||
* Create signed request or extension auth request | ||
*/ | ||
createRequest(args: Wallet5SendArgs & { actions: (OutActionSendMsg | OutActionExtended)[] }) { |
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 not create specific type for OutActions
allowed for WalletV5? To avoid using union
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.
fixed
yarn.lock
Outdated
chalk: ^2.4.2 | ||
checksum: d90981fdf56a2824a9b14d19a4c0e8db93633fd488c772624b4e83e0ceac6039a27cd298a247c3214faa952bf803ba23696172ae7e7235f3b97f43ba278c569a | ||
checksum: 22e342c8077c8b77eeb11f554ecca2ba14153f707b85294fcf6070b6f6150aae88a7b7436dd88d8c9289970585f3fe5b9b941c5aa3aa26a6d5a8ef3f292da058 |
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 yarn.lock
is updated? There is no changes in package.json
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.
Rolled it back
(cherry picked from commit 3438c47)
…ignature_auth_allowed`
Get last master
@dvlkv Please check the updates, Wallet V5R1 is just supported |
src/wallets/WalletV5R1Utils.ts
Outdated
} | ||
|
||
/** | ||
* при экстернале обязателен флаг +2 в sendmode, при интернале - любой sendmode |
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.
Please, refrain from using languages other than English
No description provided.