jolly-roger

所属分类:以太坊
开发工具:Svelte
文件大小:393KB
下载次数:0
上传日期:2023-05-17 19:43:38
上 传 者sh-1993
说明:  为永恒而构建和部署。Jolly Roger是一个为去中心化应用程序提供生产准备的模板。
(Build and Deploy for Eternity. Jolly Roger is a production-ready template for decentralised applications.)

文件列表:
.env (12, 2023-07-03)
.name (0, 2023-07-03)
.prettierignore (287, 2023-07-03)
.prettierrc (89, 2023-07-03)
common (0, 2023-07-03)
common\.env (125, 2023-07-03)
common\.prettierignore (209, 2023-07-03)
common\.prettierrc (89, 2023-07-03)
common\package.json (590, 2023-07-03)
common\src (0, 2023-07-03)
common\src\bn.ts (442, 2023-07-03)
common\src\index.ts (97, 2023-07-03)
common\tsconfig.json (168, 2023-07-03)
common\tsup.config.ts (104, 2023-07-03)
contracts (0, 2023-07-03)
contracts\.env (438, 2023-07-03)
contracts\.prettierignore (346, 2023-07-03)
contracts\.prettierrc (89, 2023-07-03)
contracts\deploy (0, 2023-07-03)
contracts\deploy\00_deploy_GreetingsRegistry.ts (438, 2023-07-03)
contracts\deploy\_context.ts (174, 2023-07-03)
contracts\deployments (0, 2023-07-03)
contracts\deployments\sepolia (0, 2023-07-03)
contracts\deployments\sepolia\.chainId (8, 2023-07-03)
contracts\deployments\sepolia\Registry.json (754442, 2023-07-03)
contracts\deployments\sepolia\Registry_Implementation.json (43359, 2023-07-03)
contracts\deployments\sepolia\Registry_Proxy.json (28090, 2023-07-03)
contracts\hardhat.config.cjs (744, 2023-07-03)
contracts\package.json (1413, 2023-07-03)
contracts\scripts (0, 2023-07-03)
contracts\scripts\setMessage.ts (862, 2023-07-03)
contracts\scripts\viem.ts (626, 2023-07-03)
... ...

# Jolly-Roger A template to develop decentralised applications ## How to use? We are assuming here that you already setup your env as specified in the [initial setup section](https://github.com/wighawag/jolly-roger/blob/master/#initial-setup) ### install dependencies Note here that while you can use `pnpm i`, we recommend you follow the instruction here so you can have everything setup with your own project's name. ```bash pnpm boot ``` This will set the app name to the folder nane or the name you provide (and change the files to reflect that) and then call `pnpm i` You can also manually set the name yourself : ```bash pnpm set-name [] && pnpm i ``` ### start! Then Assuming you have [zellij](https://github.com/wighawag/jolly-roger/blob/master/https://zellij.dev/) installed ```bash pnpm start ``` **And you are ready to go!** Note that if you do not have [zellij](https://github.com/wighawag/jolly-roger/blob/master/https://zellij.dev/) (on windows for example) you can use [wezterm](https://github.com/wighawag/jolly-roger/blob/master/https://wezfurlong.org/wezterm/index.html) ```bash pnpm start:wezterm ``` Or you can also launch each component in their own process ```bash pnpm local_node ``` ```bash pnpm contracts:compile:watch ``` ```bash pnpm contracts:deploy:watch ``` ```bash pnpm indexer:dev ``` ```bash pnpm web:dev ``` ## Deploying to a network Just execute the following ```bash pnpm contracts:deploy:prepare ``` and it will ask you few questions and get your .env.local setup with the var needed to deploy on the network of your choice. You just need to have a endpoint url and mnemonic ready for it. You can of course configure it manually with more option if you need Then you can deploy your contract ```bash pnpm contracts:deploy ``` ## Initial Setup You need to have these installed - [nodejs](https://github.com/wighawag/jolly-roger/blob/master/https://nodejs.org/en) - [pnpm](https://github.com/wighawag/jolly-roger/blob/master/https://pnpm.io/) ```bash npm i -g pnpm ``` Then you need to install the local dependencies with the following command: ```bash pnpm i ``` We also recommend to install [zellij](https://github.com/wighawag/jolly-roger/blob/master/https://zellij.dev/) to have your dev env setup in one go via `pnpm start`

近期下载者

相关文件


收藏者