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.
Files changed (67) hide show
  1. package/dist/app.js +2 -1
  2. package/dist/make.js +7 -27
  3. package/dist/messages.js +1 -9
  4. package/dist/types.js +3 -2
  5. package/dist/user-input.js +32 -13
  6. package/dist/utils/index.js +1 -3
  7. package/package.json +2 -1
  8. package/templates/contracts/auction/rs/Cargo.toml +57 -0
  9. package/templates/contracts/auction/rs/README.md +39 -0
  10. package/templates/contracts/auction/rs/rust-toolchain.toml +4 -0
  11. package/templates/contracts/auction/rs/src/lib.rs +118 -0
  12. package/templates/contracts/auction/rs/tests/test_basics.rs +182 -0
  13. package/templates/contracts/auction/ts/README.md +47 -0
  14. package/templates/contracts/auction/ts/package.json +22 -0
  15. package/templates/contracts/auction/ts/sandbox-test/main.ava.js +88 -0
  16. package/templates/contracts/auction/ts/src/contract.ts +72 -0
  17. package/templates/contracts/auction/ts/tsconfig.json +14 -0
  18. package/templates/contracts/{rs → auction-adv/rs}/Cargo.toml +9 -7
  19. package/templates/contracts/auction-adv/rs/README.md +35 -0
  20. package/templates/contracts/{rs → auction-adv/rs}/rust-toolchain.toml +1 -1
  21. package/templates/contracts/auction-adv/rs/src/ext.rs +17 -0
  22. package/templates/contracts/auction-adv/rs/src/lib.rs +159 -0
  23. package/templates/contracts/auction-adv/rs/tests/fungible_token.wasm +0 -0
  24. package/templates/contracts/auction-adv/rs/tests/non_fungible_token.wasm +0 -0
  25. package/templates/contracts/auction-adv/rs/tests/test_basics.rs +430 -0
  26. package/templates/contracts/auction-adv/ts/README.md +45 -0
  27. package/templates/contracts/auction-adv/ts/package.json +22 -0
  28. package/templates/contracts/auction-adv/ts/sandbox-test/fungible_token.wasm +0 -0
  29. package/templates/contracts/auction-adv/ts/sandbox-test/main.ava.js +165 -0
  30. package/templates/contracts/auction-adv/ts/sandbox-test/non_fungible_token.wasm +0 -0
  31. package/templates/contracts/auction-adv/ts/src/contract.ts +87 -0
  32. package/templates/frontend/next-app/package.json +2 -28
  33. package/templates/frontend/next-app/src/app/hello-near/page.tsx +2 -4
  34. package/templates/frontend/next-app/src/app/layout.tsx +3 -58
  35. package/templates/frontend/next-app/src/components/navigation.tsx +14 -14
  36. package/templates/frontend/next-page/package.json +3 -24
  37. package/templates/frontend/next-page/src/components/cards.tsx +0 -1
  38. package/templates/frontend/next-page/src/components/navigation.tsx +14 -14
  39. package/templates/frontend/next-page/src/pages/_app.tsx +3 -56
  40. package/templates/frontend/next-page/src/pages/hello-near/index.tsx +2 -2
  41. package/templates/frontend/vite-react/package.json +6 -28
  42. package/templates/frontend/vite-react/src/App.tsx +3 -62
  43. package/templates/frontend/vite-react/src/components/navigation.tsx +13 -19
  44. package/templates/frontend/vite-react/src/global.d.ts +13 -0
  45. package/templates/frontend/vite-react/src/pages/hello_near.tsx +3 -3
  46. package/templates/contracts/py/.python-version +0 -1
  47. package/templates/contracts/py/README.md +0 -74
  48. package/templates/contracts/py/contract.py +0 -31
  49. package/templates/contracts/py/pyproject.toml +0 -10
  50. package/templates/contracts/py/tests/test_mod.py +0 -53
  51. package/templates/contracts/py/uv.lock +0 -878
  52. package/templates/contracts/rs/.github/workflows/deploy-production.yml +0 -25
  53. package/templates/contracts/rs/.github/workflows/deploy-staging.yml +0 -52
  54. package/templates/contracts/rs/.github/workflows/test.yml +0 -34
  55. package/templates/contracts/rs/.github/workflows/undeploy-staging.yml +0 -23
  56. package/templates/contracts/rs/README.md +0 -43
  57. package/templates/contracts/rs/src/lib.rs +0 -55
  58. package/templates/contracts/rs/tests/test_basics.rs +0 -30
  59. package/templates/contracts/ts/README.md +0 -83
  60. package/templates/contracts/ts/package.json +0 -23
  61. package/templates/contracts/ts/sandbox-test/main.ava.js +0 -45
  62. package/templates/contracts/ts/src/contract.ts +0 -23
  63. package/templates/contracts/ts/yarn.lock +0 -3290
  64. package/templates/frontend/next-app/src/wallets/web3modal.ts +0 -27
  65. package/templates/frontend/next-page/src/wallets/web3modal.ts +0 -27
  66. package/templates/frontend/vite-react/src/wallets/web3modal.ts +0 -27
  67. /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
- });