Skip to content
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

Limited access key support for mintbase wallet #1085

Merged
merged 14 commits into from
Mar 21, 2024
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: 2 additions & 0 deletions packages/mintbase-wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/mintbase-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
},
"homepage": "https://github.com/near/wallet-selector/tree/main/packages/mintbase-wallet",
"peerDependencies": {
"near-api-js": "^1.0.0 || ^2.0.0"
"near-api-js": "3.0.3"
kujtimprenkuSQA marked this conversation as resolved.
Show resolved Hide resolved
}
}
6,498 changes: 2,726 additions & 3,772 deletions yarn.lock

Large diffs are not rendered by default.

Loading