diff --git a/bun.lockb b/bun.lockb index ce6c98c4..4159f1ec 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 038dd73f..04ed151c 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "type": "module", "dependencies": { "@accuser/svelte-plausible-analytics": "^1.0.0", + "@coinbase/cbpay-js": "^2.4.0", "@fontsource/jetbrains-mono": "^5.1.0", "@tailwindcss/container-queries": "^0.1.1", "@wharfkit/account": "^1.2.0", diff --git a/src/routes/[network]/(account)/fund/+page.svelte b/src/routes/[network]/(account)/fund/+page.svelte new file mode 100644 index 00000000..34036176 --- /dev/null +++ b/src/routes/[network]/(account)/fund/+page.svelte @@ -0,0 +1,87 @@ + + +{#if !context.account} +

You must be logged in with an account to use this feature.

+{:else if !coinbaseInstance} +

No supported funding methods for this blockchain.

+{:else} + +{/if} + +{#if context.settings.data.debugMode} +

{m.common_debugging()}

+ + + {JSON.stringify(options, null, 2)} + + + + {JSON.stringify(coinbaseInstance, null, 2)} + +{/if} diff --git a/src/routes/[network]/(account)/fund/+page.ts b/src/routes/[network]/(account)/fund/+page.ts new file mode 100644 index 00000000..1b17aa8c --- /dev/null +++ b/src/routes/[network]/(account)/fund/+page.ts @@ -0,0 +1,12 @@ +import type { PageLoad } from './$types'; + +export const load: PageLoad = async () => { + return { + title: 'Fund Account', + subtitle: 'Purchase EOS tokens to fund your account', + pageMetaTags: { + title: 'Fund Account', + description: 'Purchase EOS tokens to fund your account' + } + }; +}; diff --git a/yarn.lock b/yarn.lock index 730d1150..dcc29a12 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1,6 +1,6 @@ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. # yarn lockfile v1 -# bun ./bun.lockb --hash: 9BBDEEEB6CB69D4A-550e21dc354bd49a-08ED7B8E89A3A5DC-082e3d5751a68393 +# bun ./bun.lockb --hash: 02680FA43BE52E3F-9e1c2b0460f4d634-DFFAE5B7F63C2D78-c85325782d6f62bd "@accuser/svelte-plausible-analytics@^1.0.0": @@ -58,6 +58,11 @@ resolved "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20240725.0.tgz" integrity sha512-L6T/Bg50zm9IIACQVQ0CdVcQL+2nLkRXdPz6BsXF3SlzgjyWR5ndVctAbfr/HLV7aKYxWnnEZsIORsTWb+FssA== +"@coinbase/cbpay-js@^2.4.0": + version "2.4.0" + resolved "https://registry.npmjs.org/@coinbase/cbpay-js/-/cbpay-js-2.4.0.tgz" + integrity sha512-7Zy1P6v5CTaBuFYowFmvKJ4KyBngVjsPpLkjSi4DWJhVHMgLIkDUINSloRU0Idgt2rFA/PLIm2gXneR3OoQbrA== + "@cspotcode/source-map-support@0.8.1": version "0.8.1" resolved "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz"