├── .env.example ├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── .prettierignore ├── .prettierrc.json ├── README.md ├── jest.config.ts ├── package.json ├── scripts ├── create-task-ad-board.ts ├── create-task-event-listener.ts ├── create-task-oracle.ts ├── create-task-with-secrets.ts └── forkAnvil.ts ├── test ├── advertising-board.test.ts ├── hello-world.test.ts └── utils │ ├── anvil-server.ts │ └── index.ts ├── tsconfig.json ├── web3-functions ├── advertising-board │ ├── index.ts │ ├── schema.json │ ├── storage.json │ └── userArgs.json ├── event-listener │ ├── index.ts │ ├── schema.json │ ├── storage.json │ └── userArgs.json ├── hello-world │ ├── index.ts │ ├── schema.json │ ├── storage.json │ └── userArgs.json ├── oracle │ ├── index.ts │ ├── schema.json │ ├── storage.json │ └── userArgs.json ├── private │ ├── .env.example │ ├── README.md │ ├── index.ts │ ├── onRun.js │ ├── schema.json │ └── userArgs.json ├── secrets │ ├── .env.example │ ├── index.ts │ ├── schema.json │ ├── storage.json │ └── userArgs.json └── storage │ ├── index.ts │ ├── schema.json │ ├── storage.json │ └── userArgs.json └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | cache/ 2 | dist/ 3 | node_modules 4 | .tmp -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | artifacts 2 | cache 3 | dist 4 | node_modules 5 | .tmp -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/jest.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/package.json -------------------------------------------------------------------------------- /scripts/create-task-ad-board.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/scripts/create-task-ad-board.ts -------------------------------------------------------------------------------- /scripts/create-task-event-listener.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/scripts/create-task-event-listener.ts -------------------------------------------------------------------------------- /scripts/create-task-oracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/scripts/create-task-oracle.ts -------------------------------------------------------------------------------- /scripts/create-task-with-secrets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/scripts/create-task-with-secrets.ts -------------------------------------------------------------------------------- /scripts/forkAnvil.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/scripts/forkAnvil.ts -------------------------------------------------------------------------------- /test/advertising-board.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/test/advertising-board.test.ts -------------------------------------------------------------------------------- /test/hello-world.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/test/hello-world.test.ts -------------------------------------------------------------------------------- /test/utils/anvil-server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/test/utils/anvil-server.ts -------------------------------------------------------------------------------- /test/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/test/utils/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/tsconfig.json -------------------------------------------------------------------------------- /web3-functions/advertising-board/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/advertising-board/index.ts -------------------------------------------------------------------------------- /web3-functions/advertising-board/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/advertising-board/schema.json -------------------------------------------------------------------------------- /web3-functions/advertising-board/storage.json: -------------------------------------------------------------------------------- 1 | { 2 | "lastPost": "1680505773" 3 | } 4 | -------------------------------------------------------------------------------- /web3-functions/advertising-board/userArgs.json: -------------------------------------------------------------------------------- 1 | { 2 | "adBoard": "0x28a0A1C63E7E8F0DAe5ad633fe232c12b489d5f0" 3 | } 4 | -------------------------------------------------------------------------------- /web3-functions/event-listener/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/event-listener/index.ts -------------------------------------------------------------------------------- /web3-functions/event-listener/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/event-listener/schema.json -------------------------------------------------------------------------------- /web3-functions/event-listener/storage.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/event-listener/storage.json -------------------------------------------------------------------------------- /web3-functions/event-listener/userArgs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/event-listener/userArgs.json -------------------------------------------------------------------------------- /web3-functions/hello-world/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/hello-world/index.ts -------------------------------------------------------------------------------- /web3-functions/hello-world/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/hello-world/schema.json -------------------------------------------------------------------------------- /web3-functions/hello-world/storage.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /web3-functions/hello-world/userArgs.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /web3-functions/oracle/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/oracle/index.ts -------------------------------------------------------------------------------- /web3-functions/oracle/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/oracle/schema.json -------------------------------------------------------------------------------- /web3-functions/oracle/storage.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /web3-functions/oracle/userArgs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/oracle/userArgs.json -------------------------------------------------------------------------------- /web3-functions/private/.env.example: -------------------------------------------------------------------------------- 1 | GIST_ID=0c58ee8ce55bc7af5f42a2d75c27433c -------------------------------------------------------------------------------- /web3-functions/private/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/private/README.md -------------------------------------------------------------------------------- /web3-functions/private/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/private/index.ts -------------------------------------------------------------------------------- /web3-functions/private/onRun.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/private/onRun.js -------------------------------------------------------------------------------- /web3-functions/private/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/private/schema.json -------------------------------------------------------------------------------- /web3-functions/private/userArgs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/private/userArgs.json -------------------------------------------------------------------------------- /web3-functions/secrets/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/secrets/.env.example -------------------------------------------------------------------------------- /web3-functions/secrets/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/secrets/index.ts -------------------------------------------------------------------------------- /web3-functions/secrets/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/secrets/schema.json -------------------------------------------------------------------------------- /web3-functions/secrets/storage.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /web3-functions/secrets/userArgs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/secrets/userArgs.json -------------------------------------------------------------------------------- /web3-functions/storage/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/storage/index.ts -------------------------------------------------------------------------------- /web3-functions/storage/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/web3-functions/storage/schema.json -------------------------------------------------------------------------------- /web3-functions/storage/storage.json: -------------------------------------------------------------------------------- 1 | { 2 | "lastBlockNumber": "1000" 3 | } 4 | -------------------------------------------------------------------------------- /web3-functions/storage/userArgs.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gelatodigital/web3-functions-template/HEAD/yarn.lock --------------------------------------------------------------------------------