diff --git a/examples/angular/src/app/pages/wallet-selector-export/wallet-selector-export.component.ts b/examples/angular/src/app/pages/wallet-selector-export/wallet-selector-export.component.ts index 0f6fbc59b..4eeaf47c3 100644 --- a/examples/angular/src/app/pages/wallet-selector-export/wallet-selector-export.component.ts +++ b/examples/angular/src/app/pages/wallet-selector-export/wallet-selector-export.component.ts @@ -80,7 +80,7 @@ export class WalletSelectorExportComponent implements OnInit { }), setupRamperWallet(), setupNearMobileWallet(), - setupMintbaseWallet(), + setupMintbaseWallet({ contractId: "guest-book.testnet" }), ], }); /** diff --git a/examples/angular/src/app/pages/wallet-selector/wallet-selector.component.ts b/examples/angular/src/app/pages/wallet-selector/wallet-selector.component.ts index 9a846656f..e224fe5ee 100644 --- a/examples/angular/src/app/pages/wallet-selector/wallet-selector.component.ts +++ b/examples/angular/src/app/pages/wallet-selector/wallet-selector.component.ts @@ -92,7 +92,7 @@ export class WalletSelectorComponent implements OnInit { }), setupRamperWallet(), setupNearMobileWallet(), - setupMintbaseWallet(), + setupMintbaseWallet({ contractId: "guest-book.testnet" }), ], }); diff --git a/examples/react/contexts/WalletSelectorContext.tsx b/examples/react/contexts/WalletSelectorContext.tsx index 158ea3817..b9afdb78e 100644 --- a/examples/react/contexts/WalletSelectorContext.tsx +++ b/examples/react/contexts/WalletSelectorContext.tsx @@ -94,7 +94,7 @@ export const WalletSelectorContextProvider: React.FC<{ }, }), setupNearMobileWallet(), - setupMintbaseWallet(), + setupMintbaseWallet({ contractId: "guest-book.testnet" }), ], }); const _modal = setupModal(_selector, { diff --git a/examples/react/contexts/WalletSelectorExportContext.tsx b/examples/react/contexts/WalletSelectorExportContext.tsx index d58abe0ef..9c4b2e39e 100644 --- a/examples/react/contexts/WalletSelectorExportContext.tsx +++ b/examples/react/contexts/WalletSelectorExportContext.tsx @@ -70,7 +70,7 @@ export const ExportAccountSelectorContextProvider: React.FC<{ setupCoin98Wallet(), setupNearFi(), setupRamperWallet(), - setupMintbaseWallet(), + setupMintbaseWallet({ contractId: "guest-book.testnet" }), setupWalletConnect({ projectId: "c4f79cc...", metadata: { diff --git a/package.json b/package.json index 5b6de433d..1a2542a51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "near-wallet-selector", - "version": "8.9.5", + "version": "8.9.6", "description": "NEAR Wallet Selector makes it easy for users to interact with your dApp by providing an abstraction over various wallets within the NEAR ecosystem", "keywords": [ "near", @@ -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", diff --git a/packages/account-export/package.json b/packages/account-export/package.json index 522e57599..0db32f9e0 100644 --- a/packages/account-export/package.json +++ b/packages/account-export/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/account-export", - "version": "8.9.5", + "version": "8.9.6", "description": "This is the Export Selector UI package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/bitget-wallet/package.json b/packages/bitget-wallet/package.json index 487542fbf..204bb45c7 100644 --- a/packages/bitget-wallet/package.json +++ b/packages/bitget-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/bitget-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "Bitget wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/coin98-wallet/package.json b/packages/coin98-wallet/package.json index 998e454da..ef9dafcd7 100644 --- a/packages/coin98-wallet/package.json +++ b/packages/coin98-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/coin98-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "Coin 98 wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/core/package.json b/packages/core/package.json index 5a32e0852..f8951fef9 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/core", - "version": "8.9.5", + "version": "8.9.6", "description": "This is the core package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/here-wallet/package.json b/packages/here-wallet/package.json index 49c43c00f..1a277c091 100644 --- a/packages/here-wallet/package.json +++ b/packages/here-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/here-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "Here wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/ledger/package.json b/packages/ledger/package.json index c2fa179e0..358c39342 100644 --- a/packages/ledger/package.json +++ b/packages/ledger/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/ledger", - "version": "8.9.5", + "version": "8.9.6", "description": "Ledger package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/math-wallet/package.json b/packages/math-wallet/package.json index a6cebd450..47ff7f86e 100644 --- a/packages/math-wallet/package.json +++ b/packages/math-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/math-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "Math wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/meteor-wallet/package.json b/packages/meteor-wallet/package.json index 33405e003..4463dd36b 100644 --- a/packages/meteor-wallet/package.json +++ b/packages/meteor-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/meteor-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "Meteor wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/mintbase-wallet/README.md b/packages/mintbase-wallet/README.md index a990bd14e..d3199b2a5 100644 --- a/packages/mintbase-wallet/README.md +++ b/packages/mintbase-wallet/README.md @@ -31,6 +31,7 @@ const mintbaseWallet = setupMintbaseWallet({ networkId: 'mainnet', walletUrl: 'https://wallet.mintbase.xyz', callbackUrl: 'https://www.mywebsite.com', + contractId: "yourcontract.near", //remove if you don't want limited access keys to be generated deprecated: false, }); @@ -46,6 +47,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 wont be created providing quicker onboarding ## License diff --git a/packages/mintbase-wallet/package.json b/packages/mintbase-wallet/package.json index d9c3eeb78..636f23d60 100644 --- a/packages/mintbase-wallet/package.json +++ b/packages/mintbase-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/mintbase-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "Mintbase wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/modal-ui-js/package.json b/packages/modal-ui-js/package.json index 4bcb70e1f..61539d262 100644 --- a/packages/modal-ui-js/package.json +++ b/packages/modal-ui-js/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/modal-ui-js", - "version": "8.9.5", + "version": "8.9.6", "description": "Modal UI package for NEAR wallet Selector", "keywords": [ "near", diff --git a/packages/modal-ui/package.json b/packages/modal-ui/package.json index ef94a8d59..de30ff6c4 100644 --- a/packages/modal-ui/package.json +++ b/packages/modal-ui/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/modal-ui", - "version": "8.9.5", + "version": "8.9.6", "description": "Modal UI package for NEAR wallet Selector", "keywords": [ "near", diff --git a/packages/my-near-wallet/package.json b/packages/my-near-wallet/package.json index d16d73fa4..cd748f67a 100644 --- a/packages/my-near-wallet/package.json +++ b/packages/my-near-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/my-near-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "My Near Wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/narwallets/package.json b/packages/narwallets/package.json index ef83741cb..72260e4ed 100644 --- a/packages/narwallets/package.json +++ b/packages/narwallets/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/narwallets", - "version": "8.9.5", + "version": "8.9.6", "description": "This is the Narwallets package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/near-mobile-wallet/package.json b/packages/near-mobile-wallet/package.json index a39da64aa..b3888e533 100644 --- a/packages/near-mobile-wallet/package.json +++ b/packages/near-mobile-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/near-mobile-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "NEAR Mobile wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/near-snap/package.json b/packages/near-snap/package.json index 9d7a0283c..9f7ddcfff 100644 --- a/packages/near-snap/package.json +++ b/packages/near-snap/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/near-snap", - "version": "8.9.5", + "version": "8.9.6", "description": "Metamask snap to interact with Near dapps.", "keywords": [ "near", diff --git a/packages/nearfi/package.json b/packages/nearfi/package.json index c92d48ae5..0e2d58a93 100644 --- a/packages/nearfi/package.json +++ b/packages/nearfi/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/nearfi", - "version": "8.9.5", + "version": "8.9.6", "description": "Nearfi package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/neth/package.json b/packages/neth/package.json index 6dd961318..939cef0f5 100644 --- a/packages/neth/package.json +++ b/packages/neth/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/neth", - "version": "8.9.5", + "version": "8.9.6", "description": "Control NEAR accounts with ETH accounts", "author": "mattlockyer", "keywords": [ diff --git a/packages/nightly/package.json b/packages/nightly/package.json index c4da75383..0aa945fc3 100644 --- a/packages/nightly/package.json +++ b/packages/nightly/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/nightly", - "version": "8.9.5", + "version": "8.9.6", "description": "Nightly wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/ramper-wallet/package.json b/packages/ramper-wallet/package.json index c2b57b41a..6172e2c1d 100644 --- a/packages/ramper-wallet/package.json +++ b/packages/ramper-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/ramper-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "Ramper wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/sender/package.json b/packages/sender/package.json index 8d29a293b..a5a4d617b 100644 --- a/packages/sender/package.json +++ b/packages/sender/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/sender", - "version": "8.9.5", + "version": "8.9.6", "description": "Sender wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/wallet-connect/package.json b/packages/wallet-connect/package.json index d524e594f..9f18257eb 100644 --- a/packages/wallet-connect/package.json +++ b/packages/wallet-connect/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/wallet-connect", - "version": "8.9.5", + "version": "8.9.6", "description": "Wallet Connect package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/wallet-utils/package.json b/packages/wallet-utils/package.json index 863dab73e..d0832dd97 100644 --- a/packages/wallet-utils/package.json +++ b/packages/wallet-utils/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/wallet-utils", - "version": "8.9.5", + "version": "8.9.6", "description": "Wallet utils package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/welldone-wallet/package.json b/packages/welldone-wallet/package.json index 1cdfa14ac..5cba32e79 100644 --- a/packages/welldone-wallet/package.json +++ b/packages/welldone-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/welldone-wallet", - "version": "8.9.5", + "version": "8.9.6", "description": "Welldone wallet package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/packages/xdefi/package.json b/packages/xdefi/package.json index 5e614657d..45bb6a25f 100644 --- a/packages/xdefi/package.json +++ b/packages/xdefi/package.json @@ -1,6 +1,6 @@ { "name": "@near-wallet-selector/xdefi", - "version": "8.9.5", + "version": "8.9.6", "description": "This is the XDEFI package for NEAR Wallet Selector.", "keywords": [ "near", diff --git a/yarn.lock b/yarn.lock index 4778d45a3..c18db3da2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -3844,6 +3845,16 @@ dependencies: "@near-wallet-selector/core" "^8.2.0" +"@near-wallet-selector/core@8.9.5": + 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" @@ -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/env@13.3.0": version "13.3.0" @@ -16124,7 +16133,7 @@ near-abi@0.1.1: 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== @@ -21822,4 +21831,4 @@ zone.js@0.12.0: resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.12.0.tgz#a4a6e5fab6d34bd37d89c77e89ac2e6f4a3d2c30" integrity sha512-XtC+I5dXU14HrzidAKBNMqneIVUykLEAA1x+v4KVrd6AUPWlwYORF8KgsVqvgdHiKZ4BkxxjvYi/ksEixTPR0Q== dependencies: - tslib "^2.3.0" + tslib "^2.3.0" \ No newline at end of file