create-near-app 8.5.0 → 9.0.0
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.
- package/dist/app.js +2 -1
- package/dist/make.js +7 -27
- package/dist/messages.js +1 -9
- package/dist/types.js +3 -2
- package/dist/user-input.js +32 -13
- package/dist/utils/index.js +1 -3
- package/package.json +2 -1
- package/templates/contracts/auction/rs/Cargo.toml +57 -0
- package/templates/contracts/auction/rs/README.md +39 -0
- package/templates/contracts/auction/rs/rust-toolchain.toml +4 -0
- package/templates/contracts/auction/rs/src/lib.rs +118 -0
- package/templates/contracts/auction/rs/tests/test_basics.rs +182 -0
- package/templates/contracts/auction/ts/README.md +47 -0
- package/templates/contracts/auction/ts/package.json +22 -0
- package/templates/contracts/auction/ts/sandbox-test/main.ava.js +88 -0
- package/templates/contracts/auction/ts/src/contract.ts +72 -0
- package/templates/contracts/auction/ts/tsconfig.json +14 -0
- package/templates/contracts/{rs → auction-adv/rs}/Cargo.toml +9 -7
- package/templates/contracts/auction-adv/rs/README.md +35 -0
- package/templates/contracts/{rs → auction-adv/rs}/rust-toolchain.toml +1 -1
- package/templates/contracts/auction-adv/rs/src/ext.rs +17 -0
- package/templates/contracts/auction-adv/rs/src/lib.rs +159 -0
- package/templates/contracts/auction-adv/rs/tests/fungible_token.wasm +0 -0
- package/templates/contracts/auction-adv/rs/tests/non_fungible_token.wasm +0 -0
- package/templates/contracts/auction-adv/rs/tests/test_basics.rs +430 -0
- package/templates/contracts/auction-adv/ts/README.md +45 -0
- package/templates/contracts/auction-adv/ts/package.json +22 -0
- package/templates/contracts/auction-adv/ts/sandbox-test/fungible_token.wasm +0 -0
- package/templates/contracts/auction-adv/ts/sandbox-test/main.ava.js +165 -0
- package/templates/contracts/auction-adv/ts/sandbox-test/non_fungible_token.wasm +0 -0
- package/templates/contracts/auction-adv/ts/src/contract.ts +87 -0
- package/templates/frontend/next-app/package.json +2 -28
- package/templates/frontend/next-app/src/app/hello-near/page.tsx +2 -4
- package/templates/frontend/next-app/src/app/layout.tsx +3 -58
- package/templates/frontend/next-app/src/components/navigation.tsx +14 -14
- package/templates/frontend/next-page/package.json +3 -24
- package/templates/frontend/next-page/src/components/cards.tsx +0 -1
- package/templates/frontend/next-page/src/components/navigation.tsx +14 -14
- package/templates/frontend/next-page/src/pages/_app.tsx +3 -56
- package/templates/frontend/next-page/src/pages/hello-near/index.tsx +2 -2
- package/templates/frontend/vite-react/package.json +6 -28
- package/templates/frontend/vite-react/src/App.tsx +3 -62
- package/templates/frontend/vite-react/src/components/navigation.tsx +13 -19
- package/templates/frontend/vite-react/src/global.d.ts +13 -0
- package/templates/frontend/vite-react/src/pages/hello_near.tsx +3 -3
- package/templates/contracts/py/.python-version +0 -1
- package/templates/contracts/py/README.md +0 -74
- package/templates/contracts/py/contract.py +0 -31
- package/templates/contracts/py/pyproject.toml +0 -10
- package/templates/contracts/py/tests/test_mod.py +0 -53
- package/templates/contracts/py/uv.lock +0 -878
- package/templates/contracts/rs/.github/workflows/deploy-production.yml +0 -25
- package/templates/contracts/rs/.github/workflows/deploy-staging.yml +0 -52
- package/templates/contracts/rs/.github/workflows/test.yml +0 -34
- package/templates/contracts/rs/.github/workflows/undeploy-staging.yml +0 -23
- package/templates/contracts/rs/README.md +0 -43
- package/templates/contracts/rs/src/lib.rs +0 -55
- package/templates/contracts/rs/tests/test_basics.rs +0 -30
- package/templates/contracts/ts/README.md +0 -83
- package/templates/contracts/ts/package.json +0 -23
- package/templates/contracts/ts/sandbox-test/main.ava.js +0 -45
- package/templates/contracts/ts/src/contract.ts +0 -23
- package/templates/contracts/ts/yarn.lock +0 -3290
- package/templates/frontend/next-app/src/wallets/web3modal.ts +0 -27
- package/templates/frontend/next-page/src/wallets/web3modal.ts +0 -27
- package/templates/frontend/vite-react/src/wallets/web3modal.ts +0 -27
- /package/templates/contracts/{ts → auction-adv/ts}/tsconfig.json +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { WagmiAdapter } from "@reown/appkit-adapter-wagmi";
|
|
2
|
-
import { createAppKit } from "@reown/appkit/react";
|
|
3
|
-
import { nearTestnet } from "@reown/appkit/networks";
|
|
4
|
-
|
|
5
|
-
// Get a project ID at https://cloud.reown.com
|
|
6
|
-
const projectId = "30147604c5f01d0bc4482ab0665b5697";
|
|
7
|
-
|
|
8
|
-
export const wagmiAdapter = new WagmiAdapter({
|
|
9
|
-
projectId,
|
|
10
|
-
networks: [nearTestnet],
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export const web3Modal = createAppKit({
|
|
14
|
-
adapters: [wagmiAdapter],
|
|
15
|
-
projectId,
|
|
16
|
-
networks: [nearTestnet],
|
|
17
|
-
enableWalletConnect: true,
|
|
18
|
-
features: {
|
|
19
|
-
analytics: true,
|
|
20
|
-
swaps: false,
|
|
21
|
-
onramp: false,
|
|
22
|
-
email: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
|
|
23
|
-
socials: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
|
|
24
|
-
},
|
|
25
|
-
coinbasePreference: "eoaOnly", // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
|
|
26
|
-
allWallets: "SHOW",
|
|
27
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { WagmiAdapter } from "@reown/appkit-adapter-wagmi";
|
|
2
|
-
import { createAppKit } from "@reown/appkit/react";
|
|
3
|
-
import { nearTestnet } from "@reown/appkit/networks";
|
|
4
|
-
|
|
5
|
-
// Get a project ID at https://cloud.reown.com
|
|
6
|
-
const projectId = "30147604c5f01d0bc4482ab0665b5697";
|
|
7
|
-
|
|
8
|
-
export const wagmiAdapter = new WagmiAdapter({
|
|
9
|
-
projectId,
|
|
10
|
-
networks: [nearTestnet],
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export const web3Modal = createAppKit({
|
|
14
|
-
adapters: [wagmiAdapter],
|
|
15
|
-
projectId,
|
|
16
|
-
networks: [nearTestnet],
|
|
17
|
-
enableWalletConnect: true,
|
|
18
|
-
features: {
|
|
19
|
-
analytics: true,
|
|
20
|
-
swaps: false,
|
|
21
|
-
onramp: false,
|
|
22
|
-
email: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
|
|
23
|
-
socials: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
|
|
24
|
-
},
|
|
25
|
-
coinbasePreference: "eoaOnly", // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
|
|
26
|
-
allWallets: "SHOW",
|
|
27
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { WagmiAdapter } from "@reown/appkit-adapter-wagmi";
|
|
2
|
-
import { createAppKit } from "@reown/appkit/react";
|
|
3
|
-
import { nearTestnet } from "@reown/appkit/networks";
|
|
4
|
-
|
|
5
|
-
// Get a project ID at https://cloud.reown.com
|
|
6
|
-
const projectId = "30147604c5f01d0bc4482ab0665b5697";
|
|
7
|
-
|
|
8
|
-
export const wagmiAdapter = new WagmiAdapter({
|
|
9
|
-
projectId,
|
|
10
|
-
networks: [nearTestnet],
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export const web3Modal = createAppKit({
|
|
14
|
-
adapters: [wagmiAdapter],
|
|
15
|
-
projectId,
|
|
16
|
-
networks: [nearTestnet],
|
|
17
|
-
enableWalletConnect: true,
|
|
18
|
-
features: {
|
|
19
|
-
analytics: true,
|
|
20
|
-
swaps: false,
|
|
21
|
-
onramp: false,
|
|
22
|
-
email: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
|
|
23
|
-
socials: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
|
|
24
|
-
},
|
|
25
|
-
coinbasePreference: "eoaOnly", // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
|
|
26
|
-
allWallets: "SHOW",
|
|
27
|
-
});
|
|
File without changes
|