@b3dotfun/sdk 0.0.41-test.0 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,6 @@ const constants_1 = require("../../../../shared/constants");
|
|
|
9
9
|
const supported_1 = require("../../../../shared/constants/chains/supported");
|
|
10
10
|
const debug_1 = require("../../../../shared/utils/debug");
|
|
11
11
|
const thirdweb_1 = require("../../../../shared/utils/thirdweb");
|
|
12
|
-
const miniapp_wagmi_connector_1 = require("@farcaster/miniapp-wagmi-connector");
|
|
13
12
|
require("@reservoir0x/relay-kit-ui/styles.css");
|
|
14
13
|
const react_query_1 = require("@tanstack/react-query");
|
|
15
14
|
const wagmi_adapter_1 = require("@thirdweb-dev/wagmi-adapter");
|
|
@@ -65,7 +64,6 @@ function B3Provider({ theme = "light", children, accountOverride, environment, a
|
|
|
65
64
|
...(ecocystemConfig || {}),
|
|
66
65
|
client: thirdweb_1.client,
|
|
67
66
|
}),
|
|
68
|
-
(0, miniapp_wagmi_connector_1.farcasterMiniApp)(),
|
|
69
67
|
// injected(),
|
|
70
68
|
// coinbaseWallet({ appName: "HypeDuel" }),
|
|
71
69
|
],
|
|
@@ -5,7 +5,6 @@ import { ecosystemWalletId } from "../../../../shared/constants/index.js";
|
|
|
5
5
|
import { supportedChains } from "../../../../shared/constants/chains/supported.js";
|
|
6
6
|
import { debugB3React } from "../../../../shared/utils/debug.js";
|
|
7
7
|
import { client } from "../../../../shared/utils/thirdweb.js";
|
|
8
|
-
import { farcasterMiniApp as miniAppConnector } from "@farcaster/miniapp-wagmi-connector";
|
|
9
8
|
import "@reservoir0x/relay-kit-ui/styles.css";
|
|
10
9
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
11
10
|
import { inAppWalletConnector } from "@thirdweb-dev/wagmi-adapter";
|
|
@@ -61,7 +60,6 @@ export function B3Provider({ theme = "light", children, accountOverride, environ
|
|
|
61
60
|
...(ecocystemConfig || {}),
|
|
62
61
|
client,
|
|
63
62
|
}),
|
|
64
|
-
miniAppConnector(),
|
|
65
63
|
// injected(),
|
|
66
64
|
// coinbaseWallet({ appName: "HypeDuel" }),
|
|
67
65
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b3dotfun/sdk",
|
|
3
|
-
"version": "0.0.41
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"react-native": "./dist/cjs/index.native.js",
|
|
@@ -236,10 +236,30 @@
|
|
|
236
236
|
"utils",
|
|
237
237
|
"constants"
|
|
238
238
|
],
|
|
239
|
+
"scripts": {
|
|
240
|
+
"clean": "rm -rf dist",
|
|
241
|
+
"prebuild": "pnpm clean",
|
|
242
|
+
"fix-dist": "[ -d ./dist/react/src ] && cp -r ./dist/react/src/* ./dist/ && rm -rf ./dist/react || echo \"No react directory found\"",
|
|
243
|
+
"build": "pnpm clean && pnpm lint && pnpm build:types && pnpm build:cjs && pnpm build:esm && pnpm build:css",
|
|
244
|
+
"build:types": "tsc -p tsconfig.cjs.json --emitDeclarationOnly --declarationDir dist/types",
|
|
245
|
+
"build:cjs": "tsc -p tsconfig.cjs.json --outDir dist/cjs --module commonjs && tsc-alias -p tsconfig.cjs.json --outDir dist/cjs && mkdir -p dist/cjs/shared/generated && cp src/shared/generated/chain-networks.json src/shared/generated/coingecko-chains.json dist/cjs/shared/generated/ && ([ -d src/bondkit/json_abis ] && mkdir -p dist/cjs/bondkit/json_abis && cp -r src/bondkit/json_abis/* dist/cjs/bondkit/json_abis/ || echo \"No bondkit json_abis\")",
|
|
246
|
+
"build:esm": "tsc -p tsconfig.esm.json --outDir dist/esm --module esnext && tsc-alias -p tsconfig.esm.json --outDir dist/esm && mkdir -p dist/esm/shared/generated && cp src/shared/generated/chain-networks.json src/shared/generated/coingecko-chains.json dist/esm/shared/generated/ && ([ -d src/bondkit/json_abis ] && mkdir -p dist/esm/bondkit/json_abis && cp -r src/bondkit/json_abis/* dist/esm/bondkit/json_abis/ || echo \"No bondkit json_abis\") && node scripts/fix-esm-imports.js",
|
|
247
|
+
"build:css": "postcss src/styles/index.css -o dist/styles/index.css",
|
|
248
|
+
"dev:cjs": "tsc-watch -p tsconfig.cjs.json --onSuccess \"tsc-alias -p tsconfig.cjs.json --outDir dist/cjs\"",
|
|
249
|
+
"dev:esm": "tsc-watch -p tsconfig.esm.json --onSuccess \"tsc-alias -p tsconfig.esm.json --outDir dist/esm\"",
|
|
250
|
+
"dev": "concurrently \"pnpm dev:cjs\" \"pnpm dev:esm\" \"pnpm dev:css\"",
|
|
251
|
+
"dev:css": "postcss src/styles/index.css -o dist/styles/index.css --watch",
|
|
252
|
+
"prepublishOnly": "pnpm build",
|
|
253
|
+
"release:test": "pnpm version prerelease --preid test && git push --follow-tags && pnpm publish --tag test --no-git-checks",
|
|
254
|
+
"release:alpha": "pnpm version prerelease --preid alpha && git push --follow-tags && pnpm publish --tag alpha --no-git-checks",
|
|
255
|
+
"typecheck": "tsc --noEmit",
|
|
256
|
+
"generate:thirdweb": "npx @hey-api/openapi-ts --file src/thirdweb/openapi-ts.config.ts --input src/thirdweb/insight-service.json",
|
|
257
|
+
"lint": "eslint 'src/**/*.{ts,tsx}'",
|
|
258
|
+
"lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix"
|
|
259
|
+
},
|
|
239
260
|
"dependencies": {
|
|
240
261
|
"@b3dotfun/b3-api": "0.0.50",
|
|
241
262
|
"@b3dotfun/basement-api": "0.0.11",
|
|
242
|
-
"@farcaster/miniapp-wagmi-connector": "^1.0.0",
|
|
243
263
|
"@feathersjs/authentication-client": "5.0.33",
|
|
244
264
|
"@feathersjs/feathers": "5.0.33",
|
|
245
265
|
"@feathersjs/rest-client": "5.0.33",
|
|
@@ -349,25 +369,5 @@
|
|
|
349
369
|
"three": {
|
|
350
370
|
"optional": true
|
|
351
371
|
}
|
|
352
|
-
},
|
|
353
|
-
"scripts": {
|
|
354
|
-
"clean": "rm -rf dist",
|
|
355
|
-
"prebuild": "pnpm clean",
|
|
356
|
-
"fix-dist": "[ -d ./dist/react/src ] && cp -r ./dist/react/src/* ./dist/ && rm -rf ./dist/react || echo \"No react directory found\"",
|
|
357
|
-
"build": "pnpm clean && pnpm lint && pnpm build:types && pnpm build:cjs && pnpm build:esm && pnpm build:css",
|
|
358
|
-
"build:types": "tsc -p tsconfig.cjs.json --emitDeclarationOnly --declarationDir dist/types",
|
|
359
|
-
"build:cjs": "tsc -p tsconfig.cjs.json --outDir dist/cjs --module commonjs && tsc-alias -p tsconfig.cjs.json --outDir dist/cjs && mkdir -p dist/cjs/shared/generated && cp src/shared/generated/chain-networks.json src/shared/generated/coingecko-chains.json dist/cjs/shared/generated/ && ([ -d src/bondkit/json_abis ] && mkdir -p dist/cjs/bondkit/json_abis && cp -r src/bondkit/json_abis/* dist/cjs/bondkit/json_abis/ || echo \"No bondkit json_abis\")",
|
|
360
|
-
"build:esm": "tsc -p tsconfig.esm.json --outDir dist/esm --module esnext && tsc-alias -p tsconfig.esm.json --outDir dist/esm && mkdir -p dist/esm/shared/generated && cp src/shared/generated/chain-networks.json src/shared/generated/coingecko-chains.json dist/esm/shared/generated/ && ([ -d src/bondkit/json_abis ] && mkdir -p dist/esm/bondkit/json_abis && cp -r src/bondkit/json_abis/* dist/esm/bondkit/json_abis/ || echo \"No bondkit json_abis\") && node scripts/fix-esm-imports.js",
|
|
361
|
-
"build:css": "postcss src/styles/index.css -o dist/styles/index.css",
|
|
362
|
-
"dev:cjs": "tsc-watch -p tsconfig.cjs.json --onSuccess \"tsc-alias -p tsconfig.cjs.json --outDir dist/cjs\"",
|
|
363
|
-
"dev:esm": "tsc-watch -p tsconfig.esm.json --onSuccess \"tsc-alias -p tsconfig.esm.json --outDir dist/esm\"",
|
|
364
|
-
"dev": "concurrently \"pnpm dev:cjs\" \"pnpm dev:esm\" \"pnpm dev:css\"",
|
|
365
|
-
"dev:css": "postcss src/styles/index.css -o dist/styles/index.css --watch",
|
|
366
|
-
"release:test": "pnpm version prerelease --preid test && git push --follow-tags && pnpm publish --tag test --no-git-checks",
|
|
367
|
-
"release:alpha": "pnpm version prerelease --preid alpha && git push --follow-tags && pnpm publish --tag alpha --no-git-checks",
|
|
368
|
-
"typecheck": "tsc --noEmit",
|
|
369
|
-
"generate:thirdweb": "npx @hey-api/openapi-ts --file src/thirdweb/openapi-ts.config.ts --input src/thirdweb/insight-service.json",
|
|
370
|
-
"lint": "eslint 'src/**/*.{ts,tsx}'",
|
|
371
|
-
"lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix"
|
|
372
372
|
}
|
|
373
|
-
}
|
|
373
|
+
}
|
|
@@ -6,11 +6,9 @@ import { ecosystemWalletId } from "@b3dotfun/sdk/shared/constants";
|
|
|
6
6
|
import { supportedChains } from "@b3dotfun/sdk/shared/constants/chains/supported";
|
|
7
7
|
import { debugB3React } from "@b3dotfun/sdk/shared/utils/debug";
|
|
8
8
|
import { client } from "@b3dotfun/sdk/shared/utils/thirdweb";
|
|
9
|
-
import { farcasterMiniApp as miniAppConnector } from "@farcaster/miniapp-wagmi-connector";
|
|
10
9
|
import "@reservoir0x/relay-kit-ui/styles.css";
|
|
11
10
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
12
11
|
import { inAppWalletConnector } from "@thirdweb-dev/wagmi-adapter";
|
|
13
|
-
|
|
14
12
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
15
13
|
import { Toaster } from "sonner";
|
|
16
14
|
import {
|
|
@@ -104,7 +102,6 @@ export function B3Provider({
|
|
|
104
102
|
...(ecocystemConfig || {}),
|
|
105
103
|
client,
|
|
106
104
|
}),
|
|
107
|
-
miniAppConnector(),
|
|
108
105
|
// injected(),
|
|
109
106
|
// coinbaseWallet({ appName: "HypeDuel" }),
|
|
110
107
|
],
|