Skip to content

Commit

Permalink
Add limited access key support for mintbase wallet copy of #1085
Browse files Browse the repository at this point in the history
  • Loading branch information
kujtimprenkuSQA committed Mar 21, 2024
1 parent 40b08a5 commit 04ce8e7
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class WalletSelectorExportComponent implements OnInit {
}),
setupRamperWallet(),
setupNearMobileWallet(),
setupMintbaseWallet(),
setupMintbaseWallet({ contractId: "guest-book.testnet" }),
],
});
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class WalletSelectorComponent implements OnInit {
}),
setupRamperWallet(),
setupNearMobileWallet(),
setupMintbaseWallet(),
setupMintbaseWallet({ contractId: "guest-book.testnet" }),
],
});

Expand Down
2 changes: 1 addition & 1 deletion examples/react/contexts/WalletSelectorContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const WalletSelectorContextProvider: React.FC<{
},
}),
setupNearMobileWallet(),
setupMintbaseWallet(),
setupMintbaseWallet({ contractId: "guest-book.testnet" }),
],
});
const _modal = setupModal(_selector, {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/contexts/WalletSelectorExportContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const ExportAccountSelectorContextProvider: React.FC<{
setupCoin98Wallet(),
setupNearFi(),
setupRamperWallet(),
setupMintbaseWallet(),
setupMintbaseWallet({ contractId: "guest-book.testnet" }),
setupWalletConnect({
projectId: "c4f79cc...",
metadata: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"@ledgerhq/hw-transport-webhid": "6.28.3",
"@metamask/detect-provider": "^2.0.0",
"@meteorwallet/sdk": "^1.0.9",
"@mintbase-js/wallet": "0.5.0-beta.6",
"@mintbase-js/wallet": "^0.6.0-beta.3",
"@near-snap/sdk": "^0.6.0",
"@peersyst/near-mobile-signer": "^1.0.10",
"@ramper/near": "^0.0.30",
Expand Down
2 changes: 1 addition & 1 deletion packages/mintbase-wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const selector = await setupWalletSelector({
- `deprecated`: (`boolean?`): Deprecated is optional. Default is `false`.
- `callbackUrl`: (`string?`): Valid url to send your user after txn.
- `walletUrl`: (`string?`): wallet url: https://wallet.mintbase.xyz for mainnet and https://testnet.wallet.mintbase.xyz for testnet.

- `contractId`: (`string?`): the contract for which the generated limited access key will allow transactions, if you do not need a limited access key do not add this, and it won't be created providing quicker onboarding

## License

Expand Down
39 changes: 24 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3465,14 +3465,15 @@
nanoid "3.3.6"
query-string "^7.1.3"

"@mintbase-js/wallet@0.5.0-beta.6":
version "0.5.0-beta.6"
resolved "https://registry.yarnpkg.com/@mintbase-js/wallet/-/wallet-0.5.0-beta.6.tgz#2787f6992ed829e67d07828be84d16dd6f590a5d"
integrity sha512-22MDqUDMZm3puGEI8dv927Wtc5olRgGb5E7h67b1a5+N2DTKcLPmoHhzj0TFT3BmI9snrhq4MdAEvS785cjq1Q==
"@mintbase-js/wallet@^0.6.0-beta.3":
version "0.6.0-beta.3"
resolved "https://registry.yarnpkg.com/@mintbase-js/wallet/-/wallet-0.6.0-beta.3.tgz#31ee107f2cf888fa120e8ca07f47e5dcd278ca26"
integrity sha512-fzkqS3LDnSHB4YG0ync8JRuv+xQlMOzcu0btpAN8SC1hZNGUak0BTXBiNxKZQTeuH/DL+6ghh+t9VzJknOorhA==
dependencies:
"@near-wallet-selector/core" "^8.5.4"
"@near-wallet-selector/core" "8.9.5"
"@near-wallet-selector/wallet-utils" "^8.9.5"
bn.js "^5.2.1"
near-api-js "^2.1.4"
near-api-js "^2.1.3"

"@mischnic/json-sourcemap@^0.1.0":
version "0.1.1"
Expand Down Expand Up @@ -3844,6 +3845,16 @@
dependencies:
"@near-wallet-selector/core" "^8.2.0"

"@near-wallet-selector/[email protected]":
version "8.9.5"
resolved "https://registry.yarnpkg.com/@near-wallet-selector/core/-/core-8.9.5.tgz#15e49f17252ee4e54a1c9719b8c2b98fd71aae74"
integrity sha512-wJiCL8M7z6tkNMY5H4n63/SZCmlW0Z15H6R1biWgpRuMDlVjhQOzxrmQggb1jbK4nYkzXyARNKyPh2gcRUuS+w==
dependencies:
borsh "0.7.0"
events "3.3.0"
js-sha256 "0.9.0"
rxjs "7.8.1"

"@near-wallet-selector/core@^8.2.0":
version "8.2.0"
resolved "https://registry.yarnpkg.com/@near-wallet-selector/core/-/core-8.2.0.tgz#5be2f5e371d84bba99edfcef2b056c03fc99d0c7"
Expand All @@ -3852,15 +3863,13 @@
events "3.3.0"
rxjs "7.8.1"

"@near-wallet-selector/core@^8.5.4":
version "8.7.0"
resolved "https://registry.yarnpkg.com/@near-wallet-selector/core/-/core-8.7.0.tgz#65a681c332b46f47bf4ca51b53ee92726b2d9cda"
integrity sha512-H1Mc0xyWsy5Vjscn8gjK8y0X1wG5EBH9VuVQ+mFOtdyt8y+7Pttf/0dD91oAIwCo7Pu/ryPukcr6IGAz1R05cA==
"@near-wallet-selector/wallet-utils@^8.9.5":
version "8.9.5"
resolved "https://registry.yarnpkg.com/@near-wallet-selector/wallet-utils/-/wallet-utils-8.9.5.tgz#33d0a471f75b1192bfadf5a2d312c59c54d69630"
integrity sha512-TBeQheoizs4EQIGQPJxz44ZsxL4VbjLQJLlpDsNpwQfkxjcyThsZ19hOvcj5XZjwdJxwM10VBcf/qh1mKzv1uQ==
dependencies:
borsh "0.7.0"
events "3.3.0"
js-sha256 "0.9.0"
rxjs "7.8.1"
"@near-wallet-selector/core" "8.9.5"
bn.js "5.2.1"

"@next/[email protected]":
version "13.3.0"
Expand Down Expand Up @@ -16124,7 +16133,7 @@ [email protected]:
dependencies:
"@types/json-schema" "^7.0.11"

near-api-js@^2.1.1, near-api-js@^2.1.4:
near-api-js@^2.1.1:
version "2.1.4"
resolved "https://registry.yarnpkg.com/near-api-js/-/near-api-js-2.1.4.tgz#562bb7047bf3699fbdf78f9a6620366069ad7cd9"
integrity sha512-e1XicyvJvQMtu7qrG8oWyAdjHJJCoy+cvbW6h2Dky4yj7vC85omQz/x7IgKl71VhzDj2/TGUwjTVESp6NSe75A==
Expand Down

0 comments on commit 04ce8e7

Please sign in to comment.