Skip to content

Commit

Permalink
feat: add mintbase wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoCSolari committed Jan 1, 2024
1 parent 9fa4b8b commit 49de50e
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@near-wallet-selector/core": "^8.5.4",
"@near-wallet-selector/here-wallet": "^8.5.4",
"@near-wallet-selector/meteor-wallet": "^8.5.4",
"@near-wallet-selector/mintbase-wallet": "^8.5.4",
"@near-wallet-selector/modal-ui": "^8.5.4",
"@near-wallet-selector/my-near-wallet": "^8.5.4",
"@near-wallet-selector/nightly": "^8.5.4",
Expand Down
4 changes: 3 additions & 1 deletion src/contexts/WalletSelectorContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import nearIcon from "../assets/near-icon.png";
import senderIcon from "../assets/sender-icon.png";
import "@near-wallet-selector/modal-ui/styles.css"; // suggested styling (https://www.npmjs.com/package/@near-wallet-selector/modal-ui)
import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet";
import { setupMintbaseWallet } from "@near-wallet-selector/mintbase-wallet";

declare global {
interface Window {
Expand Down Expand Up @@ -69,7 +70,8 @@ export const WalletSelectorContextProvider = ({ children }: Props) => {
setupMyNearWallet(),
setupHereWallet(),
setupMeteorWallet(),
setupNightly()
setupNightly(),
setupMintbaseWallet()
],
});
const _modal = setupModal(_selector, {
Expand Down
194 changes: 189 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2977,6 +2977,33 @@
nanoid "3.3.6"
query-string "^7.1.3"

"@mintbase-js/[email protected]":
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==
dependencies:
"@near-wallet-selector/core" "^8.5.4"
bn.js "^5.2.1"
near-api-js "^2.1.4"

"@near-js/[email protected]":
version "0.1.4"
resolved "https://registry.yarnpkg.com/@near-js/accounts/-/accounts-0.1.4.tgz#ff557dc65c5064ee4ac2dbfdd39aa3e35ae4d222"
integrity sha512-zHFmL4OUZ4qHXOE+dDBkYgTNHLWC5RmYUVp9LiuGciO5zFPp7WlxmowJL0QjgXqV1w+dNXq3mgmkfAgYVS8Xjw==
dependencies:
"@near-js/crypto" "0.0.5"
"@near-js/providers" "0.0.7"
"@near-js/signers" "0.0.5"
"@near-js/transactions" "0.2.1"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.0.4"
ajv "^8.11.2"
ajv-formats "^2.1.1"
bn.js "5.2.1"
borsh "^0.7.0"
depd "^2.0.0"
near-abi "0.1.1"

"@near-js/[email protected]":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@near-js/accounts/-/accounts-1.0.1.tgz#9507bcef9d52df95a3a60f03a8b17a715f641b27"
Expand All @@ -2996,6 +3023,16 @@
lru_map "0.4.1"
near-abi "0.1.1"

"@near-js/[email protected]":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@near-js/crypto/-/crypto-0.0.5.tgz#3191cdc8dcdba572bdead482b5d38f364bdcc2a0"
integrity sha512-nbQ971iYES5Spiolt+p568gNuZ//HeMHm3qqT3xT+i8ZzgbC//l6oRf48SUVTPAboQ1TJ5dW/NqcxOY0pe7b4g==
dependencies:
"@near-js/types" "0.0.4"
bn.js "5.2.1"
borsh "^0.7.0"
tweetnacl "^1.0.1"

"@near-js/[email protected]":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@near-js/crypto/-/crypto-1.1.0.tgz#ebfd15f7d92c0397e7d9ce2dada52b3fb8ffc948"
Expand All @@ -3008,6 +3045,14 @@
borsh "1.0.0"
crypto-browserify "3.12.0"

"@near-js/[email protected]":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@near-js/keystores-browser/-/keystores-browser-0.0.5.tgz#7e94181ca5c4fbad8b8e67cda16888b4ccafae61"
integrity sha512-mHF3Vcvsr7xnkaM/reOyxtykbE3OWKV6vQzqyTH2tZYT2OTEnj0KhRT9BCFC0Ra67K1zQLbg49Yc/kDCc5qupA==
dependencies:
"@near-js/crypto" "0.0.5"
"@near-js/keystores" "0.0.5"

"@near-js/[email protected]":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@near-js/keystores-browser/-/keystores-browser-0.0.7.tgz#e881d15d0e41160578312547c78d7d726d9c28a0"
Expand All @@ -3016,6 +3061,14 @@
"@near-js/crypto" "1.1.0"
"@near-js/keystores" "0.0.7"

"@near-js/[email protected]":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@near-js/keystores-node/-/keystores-node-0.0.5.tgz#f474dabbb84590896dd8861bb33a7304580e0d99"
integrity sha512-BYmWyGNydfAqi7eYA1Jo8zULL13cxejD2VBr0BBIXx5bJ+BO4TLecsY1xdTBEq06jyWXHa7kV4h8BJzAjvpTLg==
dependencies:
"@near-js/crypto" "0.0.5"
"@near-js/keystores" "0.0.5"

"@near-js/[email protected]":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@near-js/keystores-node/-/keystores-node-0.0.7.tgz#7b76181fbf189662bf4096e7a3e85c3cd094d04c"
Expand All @@ -3024,6 +3077,14 @@
"@near-js/crypto" "1.1.0"
"@near-js/keystores" "0.0.7"

"@near-js/[email protected]":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@near-js/keystores/-/keystores-0.0.5.tgz#44ec009b23c552809b6f9bc9a83632f79de4112b"
integrity sha512-kxqV+gw/3L8/axe9prhlU+M0hfybkxX54xfI0EEpWP2QiUV+qw+jkKolYIbdk5tdEZrGf9jHawh1yFtwP7APPQ==
dependencies:
"@near-js/crypto" "0.0.5"
"@near-js/types" "0.0.4"

"@near-js/[email protected]":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@near-js/keystores/-/keystores-0.0.7.tgz#0044d509c5963789679704070aec853f96b8f73f"
Expand All @@ -3032,6 +3093,20 @@
"@near-js/crypto" "1.1.0"
"@near-js/types" "0.0.4"

"@near-js/[email protected]":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@near-js/providers/-/providers-0.0.7.tgz#b2189e5d14d1afb1798c91c59e6dfb9bb476f46b"
integrity sha512-qj16Ey+vSw7lHE85xW+ykYJoLPr4A6Q/TsfpwhJLS6zBInSC6sKVqPO1L8bK4VA/yB7V7JJPor9UVCWgRXdNEA==
dependencies:
"@near-js/transactions" "0.2.1"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.0.4"
bn.js "5.2.1"
borsh "^0.7.0"
http-errors "^1.7.2"
optionalDependencies:
node-fetch "^2.6.1"

"@near-js/[email protected]":
version "0.0.9"
resolved "https://registry.yarnpkg.com/@near-js/providers/-/providers-0.0.9.tgz#bb33e9a9dc33a666217f6d73a8baedfe1fa82b10"
Expand All @@ -3046,6 +3121,15 @@
optionalDependencies:
node-fetch "2.6.7"

"@near-js/[email protected]":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@near-js/signers/-/signers-0.0.5.tgz#f3f946440314bf039dd32154928163ceaec8bedb"
integrity sha512-XJjYYatehxHakHa7WAoiQ8uIBSWBR2EnO4GzlIe8qpWL+LoH4t68MSezC1HwT546y9YHIvePjwDrBeYk8mg20w==
dependencies:
"@near-js/crypto" "0.0.5"
"@near-js/keystores" "0.0.5"
js-sha256 "^0.9.0"

"@near-js/[email protected]":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@near-js/signers/-/signers-0.0.7.tgz#dbe61f1505de83db3f5aab085da9e4c36356130f"
Expand All @@ -3055,6 +3139,19 @@
"@near-js/keystores" "0.0.7"
js-sha256 "0.9.0"

"@near-js/[email protected]":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@near-js/transactions/-/transactions-0.2.1.tgz#ab6d246e94e6f64b4e5a651fe6e9de03dd573521"
integrity sha512-V9tXzkICDPruSxihKXkBhUgsI4uvW7TwXlnZS2GZpPsFFiIUeGrso0wo4uiQwB6miFA5q6fKaAtQa4F2v1s+zg==
dependencies:
"@near-js/crypto" "0.0.5"
"@near-js/signers" "0.0.5"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.0.4"
bn.js "5.2.1"
borsh "^0.7.0"
js-sha256 "^0.9.0"

"@near-js/[email protected]":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@near-js/transactions/-/transactions-1.0.1.tgz#e36781fb5433ac2fd0fb44a064cf70819d73c7ce"
Expand All @@ -3075,6 +3172,16 @@
dependencies:
bn.js "5.2.1"

"@near-js/[email protected]":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@near-js/utils/-/utils-0.0.4.tgz#1a387f81974ebbfa4521c92590232be97e3335dd"
integrity sha512-mPUEPJbTCMicGitjEGvQqOe8AS7O4KkRCxqd0xuE/X6gXF1jz1pYMZn4lNUeUz2C84YnVSGLAM0o9zcN6Y4hiA==
dependencies:
"@near-js/types" "0.0.4"
bn.js "5.2.1"
depd "^2.0.0"
mustache "^4.0.0"

"@near-js/[email protected]":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@near-js/utils/-/utils-0.0.5.tgz#7c7f80140c039535b04ec48ed84b9681407ea57a"
Expand All @@ -3086,6 +3193,21 @@
depd "2.0.0"
mustache "4.0.0"

"@near-js/[email protected]":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@near-js/wallet-account/-/wallet-account-0.0.7.tgz#efa6738114171b2a6e40e8b35a8194b7cf86c11e"
integrity sha512-tmRyieG/wHmuNkg/WGFyKD6iH6atHPbY0rZ5OjOIiteuhZEPgp+z8OBpiQ4qumTa63q46aj/QVSQL0J3+JmBfw==
dependencies:
"@near-js/accounts" "0.1.4"
"@near-js/crypto" "0.0.5"
"@near-js/keystores" "0.0.5"
"@near-js/signers" "0.0.5"
"@near-js/transactions" "0.2.1"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.0.4"
bn.js "5.2.1"
borsh "^0.7.0"

"@near-js/[email protected]":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@near-js/wallet-account/-/wallet-account-1.0.1.tgz#09934477c29ae377ffc0884876d82feff3185075"
Expand Down Expand Up @@ -3128,6 +3250,13 @@
"@meteorwallet/sdk" "1.0.5"
"@near-wallet-selector/core" "8.9.1"

"@near-wallet-selector/mintbase-wallet@^8.5.4":
version "8.9.1"
resolved "https://registry.yarnpkg.com/@near-wallet-selector/mintbase-wallet/-/mintbase-wallet-8.9.1.tgz#741d8d3ad026697ea19c3034654201708e3b9db9"
integrity sha512-aobFEA9CLUMxeZzLSo+YWFRyxn9BkXdYmZeis+jPYTwOCMHbIWNr+lxD3QYT4K9xDFXXpK2wE4j/q2HpBWEaLA==
dependencies:
"@mintbase-js/wallet" "0.5.0-beta.6"

"@near-wallet-selector/modal-ui@^8.5.4":
version "8.9.1"
resolved "https://registry.yarnpkg.com/@near-wallet-selector/modal-ui/-/modal-ui-8.9.1.tgz#0e2b82dcdf8e9fd5b04037b0824dc02ec8c6dca7"
Expand Down Expand Up @@ -4129,7 +4258,7 @@ ajv-errors@^1.0.0:
resolved "https://registry.yarnpkg.com/ajv-errors/-/ajv-errors-1.0.1.tgz#f35986aceb91afadec4102fbd85014950cefa64d"
integrity sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==

[email protected]:
[email protected], ajv-formats@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520"
integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==
Expand Down Expand Up @@ -4161,7 +4290,7 @@ ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.4, ajv@^6.12.5:
json-schema-traverse "^0.4.1"
uri-js "^4.2.2"

ajv@^8.0.0, ajv@^8.0.1:
ajv@^8.0.0, ajv@^8.0.1, ajv@^8.11.2:
version "8.12.0"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1"
integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==
Expand Down Expand Up @@ -6250,7 +6379,7 @@ delayed-stream@~1.0.0:
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==

[email protected]:
[email protected], depd@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"
integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==
Expand Down Expand Up @@ -6602,7 +6731,7 @@ error-ex@^1.3.1:
dependencies:
is-arrayish "^0.2.1"

[email protected]:
[email protected], error-polyfill@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/error-polyfill/-/error-polyfill-0.1.3.tgz#df848b61ad8834f7a5db69a70b9913df86721d15"
integrity sha512-XHJk60ufE+TG/ydwp4lilOog549iiQF2OAPhkk9DdiYWMrltz5yhDz/xnKuenNwP7gy3dsibssO5QpVhkrSzzg==
Expand Down Expand Up @@ -8148,6 +8277,17 @@ [email protected]:
statuses "2.0.1"
toidentifier "1.0.1"

http-errors@^1.7.2:
version "1.8.1"
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.8.1.tgz#7c3f28577cbc8a207388455dbd62295ed07bd68c"
integrity sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==
dependencies:
depd "~1.1.2"
inherits "2.0.4"
setprototypeof "1.2.0"
statuses ">= 1.5.0 < 2"
toidentifier "1.0.1"

http-errors@~1.6.2:
version "1.6.3"
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d"
Expand Down Expand Up @@ -9426,7 +9566,7 @@ [email protected]:
import-local "^3.0.2"
jest-cli "^26.6.0"

[email protected]:
[email protected], js-sha256@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/js-sha256/-/js-sha256-0.9.0.tgz#0b89ac166583e91ef9123644bd3c5334ce9d0966"
integrity sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==
Expand Down Expand Up @@ -10135,6 +10275,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/mustache/-/mustache-4.0.0.tgz#7f02465dbb5b435859d154831c032acdfbbefb31"
integrity sha512-FJgjyX/IVkbXBXYUwH+OYwQKqWpFPLaLVESd70yHjSDunwzV2hZOoTBvPf4KLoxesUzzyfTH6F784Uqd7Wm5yA==

mustache@^4.0.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/mustache/-/mustache-4.2.0.tgz#e5892324d60a12ec9c2a73359edca52972bf6f64"
integrity sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==

nan@^2.12.1:
version "2.18.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.18.0.tgz#26a6faae7ffbeb293a39660e88a76b82e30b7554"
Expand Down Expand Up @@ -10193,6 +10338,33 @@ [email protected]:
dependencies:
"@types/json-schema" "^7.0.11"

near-api-js@^2.1.4:
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==
dependencies:
"@near-js/accounts" "0.1.4"
"@near-js/crypto" "0.0.5"
"@near-js/keystores" "0.0.5"
"@near-js/keystores-browser" "0.0.5"
"@near-js/keystores-node" "0.0.5"
"@near-js/providers" "0.0.7"
"@near-js/signers" "0.0.5"
"@near-js/transactions" "0.2.1"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.0.4"
"@near-js/wallet-account" "0.0.7"
ajv "^8.11.2"
ajv-formats "^2.1.1"
bn.js "5.2.1"
borsh "^0.7.0"
depd "^2.0.0"
error-polyfill "^0.1.3"
http-errors "^1.7.2"
near-abi "0.1.1"
node-fetch "^2.6.1"
tweetnacl "^1.0.1"

near-api-js@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/near-api-js/-/near-api-js-3.0.1.tgz#7371e88feb498dcc08efc2d4f4cabac6d20bfa9d"
Expand Down Expand Up @@ -10255,6 +10427,13 @@ [email protected]:
dependencies:
whatwg-url "^5.0.0"

node-fetch@^2.6.1:
version "2.7.0"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==
dependencies:
whatwg-url "^5.0.0"

node-forge@^0.10.0:
version "0.10.0"
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz#32dea2afb3e9926f02ee5ce8794902691a676bf3"
Expand Down Expand Up @@ -13814,6 +13993,11 @@ tween-functions@^1.2.0:
resolved "https://registry.yarnpkg.com/tween-functions/-/tween-functions-1.2.0.tgz#1ae3a50e7c60bb3def774eac707acbca73bbc3ff"
integrity sha512-PZBtLYcCLtEcjL14Fzb1gSxPBeL7nWvGhO5ZFPGqziCcr8uvHp0NDmdjBchp6KHL+tExcg0m3NISmKxhU394dA==

tweetnacl@^1.0.1:
version "1.0.3"
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596"
integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==

type-check@^0.4.0, type-check@~0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"
Expand Down

0 comments on commit 49de50e

Please sign in to comment.