diff --git a/.changeset/violet-roses-own.md b/.changeset/violet-roses-own.md new file mode 100644 index 00000000..92c60414 --- /dev/null +++ b/.changeset/violet-roses-own.md @@ -0,0 +1,6 @@ +--- +"@aptos-labs/wallet-adapter-core": patch +"@aptos-labs/wallet-adapter-nextjs-example": patch +--- + +[hot fix] remove petra from aip-62 wallet registry diff --git a/apps/nextjs-example/components/AppContext.tsx b/apps/nextjs-example/components/AppContext.tsx index 1e6adcbf..d6d2355f 100644 --- a/apps/nextjs-example/components/AppContext.tsx +++ b/apps/nextjs-example/components/AppContext.tsx @@ -11,6 +11,7 @@ import { FC, ReactNode } from "react"; import { AlertProvider, useAlert } from "./AlertProvider"; import { IdentityConnectWallet } from "@identity-connect/wallet-adapter-plugin"; import { Network } from "@aptos-labs/ts-sdk"; +import { PetraWallet } from "petra-plugin-wallet-adapter"; const WalletContextProvider: FC<{ children: ReactNode }> = ({ children }) => { const { autoConnect } = useAutoConnect(); @@ -27,6 +28,7 @@ const WalletContextProvider: FC<{ children: ReactNode }> = ({ children }) => { new PontemWallet(), new TrustWallet(), new OKXWallet(), + new PetraWallet(), ]; return ( diff --git a/apps/nextjs-example/package.json b/apps/nextjs-example/package.json index 39238359..e79cdad2 100644 --- a/apps/nextjs-example/package.json +++ b/apps/nextjs-example/package.json @@ -28,6 +28,7 @@ "ethers": "^5.7.2", "fewcha-plugin-wallet-adapter": "^0.1.3", "next": "13.0.0", + "petra-plugin-wallet-adapter": "^0.4.5", "react": "18.2.0", "react-dom": "18.2.0" }, diff --git a/packages/wallet-adapter-core/src/AIP62StandardWallets/registry.ts b/packages/wallet-adapter-core/src/AIP62StandardWallets/registry.ts index c6e1d5fa..c42fe361 100644 --- a/packages/wallet-adapter-core/src/AIP62StandardWallets/registry.ts +++ b/packages/wallet-adapter-core/src/AIP62StandardWallets/registry.ts @@ -21,11 +21,11 @@ export const aptosStandardSupportedWalletList: Array, - url: "https://chromewebstore.google.com/detail/petra-aptos-wallet/ejjladinnckdgjemekebdpeokbik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BqhAE3w5InaU0MoQN08f64y9VdQgDrBkO/FC9EMBagLBB/P/yvHxlGxTYPh3tOn4gMUYN2g4FPc509DAdYFqvxZh1ArhwKsg6rSVzTHvywU4EeoqnyPTxKnAKuCVo4iD4s6ARwhTwGWoTrk8e3bIE4IH4cCVCDI1U6dL1/K73Eh4B727ctCASoQ6MBa9zJwJtA4FMA4FMA4FMA4FMA4FMA4FMA4FMA47Qtg4P/n1Uz7AgQ8zeoD7Qug5KQMq+joApgFWkNHEWhwEUYLFMA4OgRQdGCCNXQIUG28II2jZyKIWaAV9Aig7OgUK+gRAMH36ImaUNC1FoDt1swCjaJLAAQfT9mQxtC3GohugCOCxtC5HIyHLNkVNIJOATAv4Mnz9b6jd0MIhoWsB2pH944gPHmLkQGpDf1bwtAVUILa8GNPICRgd1AL/mwKRXfA0cHa8WtXMArDfp8bSdeIf9vCEfxHj8psQBF+GH/PB0A2wIzhrVsih4ciOztCVsfvAyKQAVAbYPr44EDk6Ehkd1fI8oRxQggKQ2QEXMgEe3ulELhvbQmZT3hHxFRn+1Tn/UAAZAWIUXUTHz4IKQn/jCBkB6Pn/ywDHw41DgUwDgRIhVgljSWKzoXYJM+dAFmWCrHKeewsOBViExd71AAjd10IsUYaDYdnsfty4Uz4U4g1zvClHAbm+e9CbJFlfdwKAVwWSJ0EfwixwrCIuYxPBOV5T1gLWCCtWj+4EqCoBbLsFyFhk2UPq9YPJqaCURW6W19IqPRdjCeG/dGsd+Xdbs/dToSERD8aDHrTP4zmvZsSBMXM4INo0afyTudY4vg39zIR4iNFXXfZtc9k4XJw0V9k2R1OFHkIhvVZdn1R8MHCDDDx+zqdxK0c9tz1szAjaKWc1XUTe+OV/iKWFmAcJ8NtJ8Kxe7kvkCGKEiHN45Zz3b/9yN3/uVzUGxXD+RX4F56985hsqA6SAAAAAElFTkSuQmCC", - readyState: WalletReadyState.NotDetected, - isAIP62Standard: true, - }, + // { + // name: "Petra" as WalletName<"Petra">, + // url: "https://chromewebstore.google.com/detail/petra-aptos-wallet/ejjladinnckdgjemekebdpeokbikhfci?hl=en", + // icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAWbSURBVHgB7Z09c9NYFIaPlFSpUqQNK6rQhbSkWJghLZP9BesxfwAqytg1xe7+AY+3go5ACzObBkpwSqrVQkuRCiqkva8UZW1je22wpHPveZ8ZRU6wwwznueee+6FLJCuSdzrb7nZTNjaOJc9/ctdNiaJESPPkeeq+phLH5/L162k0HJ7JikTLvtEFPnFBf+D+0l/dt9tCNJK6xnjmZOg7GdJlPvC/AhQtPo5P3MsHQvwhiobLiLBQABf82y74z4Qt3ldSybKHToLTeW+I5/1B3u2euOD/JQy+zyRowEUs5zAzA1x+oCckJHrRYNCf/uE3AjD4QfONBBMC5PfvY2j3TEi4ZNmd8eHilQDFMK/s8xMhIXPhJLjuJLjAN/8VgRsbPWHwLbAtm5tXRWGRAS5b/99C7FBmgbTMAGXrJ5aIomJir8wA3S5afyLEEkUtEBezfQy+RYpFvdilgmMhNnGxRw2wL8QqScy1fMNE0T4yQCLEKkksxDQUwDj2BNjbK69pdndn/zxwNsUCCOyNGyJ374psbYkMBiLv30++59o1kW5X5NMnkdFI5OXL8nXghCsAAn10NL/Fz2NnpxQFFyR5/bq8BypDWAIg6AcHIoeH60nn4/K8e1deECIgwhAAQULQEXxIUAf43bju3ZvMDJ7jrwDT/XpToIvABeECqBf8EuB7+/W6CKBe0C/Auvv1uvC0XtArQBP9el14VC/oEqCtfr0uPKgX2hdAW79eF0rrhfYFQPCRKi1RyY4ZyZYF4GKQcSiAcSiAcSiAcSiAcSiAcSiAcSiAcSiAcSiAcSiAcSiAcSiAcShAm3z+LG1DAdqEAhjn40dpGwrQFtgIwgxgGAWtH1CAtsC2cQVQgLZQsk2cArSBoqeHKEAbKHpiiAI0DVq+kv4fUICmQetXMPyroABNg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pm-lock.yaml b/pnpm-lock.yaml index edc21faa..f933505a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,6 +78,9 @@ importers: next: specifier: 13.0.0 version: 13.0.0(@babel/core@7.24.0)(react-dom@18.2.0)(react@18.2.0) + petra-plugin-wallet-adapter: + specifier: ^0.4.5 + version: 0.4.5(@aptos-labs/ts-sdk@1.13.2)(aptos@1.21.0) react: specifier: 18.2.0 version: 18.2.0 @@ -181,7 +184,7 @@ importers: version: 0.0.11 '@atomrigslab/aptos-wallet-adapter': specifier: ^0.1.10 - version: 0.1.10(@aptos-labs/ts-sdk@1.13.2)(esbuild@0.14.54) + version: 0.1.10(@aptos-labs/ts-sdk@1.13.2)(@wallet-standard/core@1.0.3)(esbuild@0.14.54) aptos: specifier: ^1.21.0 version: 1.21.0 @@ -469,27 +472,28 @@ packages: - debug dev: false - /@aptos-labs/wallet-standard@0.0.12: - resolution: {integrity: sha512-j6A8rHds/ueoFBJ1pjRZq9nKIfWrDV9/URH9VgUpVKY7ASi7frn7XAZgoYFRAYyk57m5er3kcXciD4BFpxwbMw==} + /@aptos-labs/wallet-standard@0.0.13(@aptos-labs/ts-sdk@1.13.2)(@wallet-standard/core@1.0.3): + resolution: {integrity: sha512-9w/eY84sQMGiNASe1DUlbIgu8yK9kDhEgLFS+XxdSJgDaOeELYjbeloyy8arwp5JAygpd2hnrZGqmliTRwpAxw==} + peerDependencies: + '@aptos-labs/ts-sdk': ^1.16.0 + '@wallet-standard/core': ^1.0.3 dependencies: '@aptos-labs/ts-sdk': 1.13.2 '@wallet-standard/core': 1.0.3 - transitivePeerDependencies: - - debug dev: false - /@atomrigslab/aptos-wallet-adapter@0.1.10(@aptos-labs/ts-sdk@1.13.2)(esbuild@0.14.54): + /@atomrigslab/aptos-wallet-adapter@0.1.10(@aptos-labs/ts-sdk@1.13.2)(@wallet-standard/core@1.0.3)(esbuild@0.14.54): resolution: {integrity: sha512-NdWVIuotp8g0hrbfSqeEUptSLJrHEGIhkk/xx0InE0k+k5BzNsmV2fTaMCuGsQeTEiNY/pyPj2tvMoJ4ux4kmg==} peerDependencies: '@aptos-labs/ts-sdk': ^1.9.0 dependencies: '@aptos-labs/ts-sdk': 1.13.2 - '@aptos-labs/wallet-standard': 0.0.12 + '@aptos-labs/wallet-standard': 0.0.13(@aptos-labs/ts-sdk@1.13.2)(@wallet-standard/core@1.0.3) '@atomrigslab/dekey-web-wallet-provider': 1.2.0(esbuild@0.14.54) transitivePeerDependencies: - '@swc/core' + - '@wallet-standard/core' - '@webpack-cli/generators' - - debug - esbuild - uglify-js - webpack-bundle-analyzer @@ -7139,6 +7143,19 @@ packages: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} + /petra-plugin-wallet-adapter@0.4.5(@aptos-labs/ts-sdk@1.13.2)(aptos@1.21.0): + resolution: {integrity: sha512-x2S2xRAIz/5ytbB2wHCTJhqLBDsgWPEVmj7X2aril1BUplIGPJHTstgo8hqOngb2rtYbBY+wviyS9Di4IDCGRA==} + peerDependencies: + '@aptos-labs/ts-sdk': ^1.3.0 + aptos: ^1.21.0 + dependencies: + '@aptos-labs/ts-sdk': 1.13.2 + '@aptos-labs/wallet-adapter-core': 3.8.0(@aptos-labs/ts-sdk@1.13.2)(aptos@1.21.0) + aptos: 1.21.0 + transitivePeerDependencies: + - debug + dev: false + /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}