File tree Expand file tree Collapse file tree
src/core/handlers/onProtocolRequest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 - name : crowdin action
2121 uses : crowdin/github-action@a3160b9e5a9e00739392c23da5e580c6cabe526d
2222 with :
23- upload_translations : true
23+ upload_translations : false
2424 download_translations : true
2525 github_user_name : metamaskbot
2626 github_user_email : metamaskbot@users.noreply.github.com
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/MetaMask/snap-solana-wallet.git"
88 },
99 "source" : {
10- "shasum" : " oJE5lrZCkjIwzvMUHqYC1QpSvIxJpZ5EnJf+bhPeSRg =" ,
10+ "shasum" : " eBi0+K2mctngR9lOseF7P8ZD0pdRIPxqVn/7uERyND8 =" ,
1111 "location" : {
1212 "npm" : {
1313 "filePath" : " dist/bundle.js" ,
Original file line number Diff line number Diff line change 66 tuple ,
77 number ,
88} from '@metamask/superstruct' ;
9-
10- import { UuidStruct } from '../../validation/structs' ;
9+ import { JsonRpcIdStruct , JsonRpcVersionStruct } from '@metamask/utils' ;
1110
1211export enum SolanaProtocolRequestMethod {
1312 GetGenesisHash = 'getGenesisHash' ,
@@ -16,21 +15,21 @@ export enum SolanaProtocolRequestMethod {
1615}
1716
1817export const SolanaGetGenesisHashRequestStruct = object ( {
19- jsonrpc : literal ( '2.0' ) ,
20- id : UuidStruct ,
18+ jsonrpc : JsonRpcVersionStruct ,
19+ id : JsonRpcIdStruct ,
2120 method : literal ( SolanaProtocolRequestMethod . GetGenesisHash ) ,
2221 params : optional ( array ( ) ) ,
2322} ) ;
2423
2524export const SolanaGetLatestBlockhashRequestStruct = object ( {
26- jsonrpc : literal ( '2.0' ) ,
27- id : UuidStruct ,
25+ jsonrpc : JsonRpcVersionStruct ,
26+ id : JsonRpcIdStruct ,
2827 method : literal ( SolanaProtocolRequestMethod . GetLatestBlockhash ) ,
2928} ) ;
3029
3130export const SolanaGetMinimumBalanceForRentExemptionRequestStruct = object ( {
32- jsonrpc : literal ( '2.0' ) ,
33- id : UuidStruct ,
31+ jsonrpc : JsonRpcVersionStruct ,
32+ id : JsonRpcIdStruct ,
3433 method : literal (
3534 SolanaProtocolRequestMethod . GetMinimumBalanceForRentExemption ,
3635 ) ,
You can’t perform that action at this time.
0 commit comments