{"id":22416344,"url":"https://github.com/bunsdev/serverless","last_synced_at":"2025-10-15T21:30:42.665Z","repository":{"id":43424700,"uuid":"492688072","full_name":"BunsDev/serverless","owner":"BunsDev","description":"You cannot automate smart contracts… until now.","archived":false,"fork":false,"pushed_at":"2022-05-16T04:54:24.000Z","size":52,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-05T15:15:45.132Z","etag":null,"topics":["serverless","solidity-contracts"],"latest_commit_sha":null,"homepage":"https://learn-solidity.com/smart-contract-automation-ca109805b23a","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BunsDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-16T04:54:14.000Z","updated_at":"2024-10-03T06:35:22.000Z","dependencies_parsed_at":"2022-09-05T03:00:38.981Z","dependency_job_id":null,"html_url":"https://github.com/BunsDev/serverless","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BunsDev%2Fserverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BunsDev%2Fserverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BunsDev%2Fserverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BunsDev%2Fserverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BunsDev","download_url":"https://codeload.github.com/BunsDev/serverless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236643282,"owners_count":19182200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["serverless","solidity-contracts"],"created_at":"2024-12-05T15:15:47.701Z","updated_at":"2025-10-15T21:30:37.394Z","avatar_url":"https://github.com/BunsDev.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless\n\nLearn more by reading the blog post: [Serverless Smart Contract Automation](https://soliditywiz.medium.com/smart-contract-automation-ca109805b23a).\n\n## Table of Contents\n\n|                                     | Description                                 | Stack                 |\n| ----------------------------------- | ------------------------------------------- | --------------------- |\n| [`contracts`](contracts)     | 🖼 Smart contract ABIs | `json`, `ethereum` |\n| [`functions`](functions)                  | 🚀 Lambda functions                              | `node`, `js`          |\n\n## Prerequisites\n\nInstall the [Serverless Framework CLI](https://www.serverless.com/framework/docs/getting-started/).\n\n## Getting Started\n\n```bash\ngit clone git@github.com:CryptoUnico/serverless.git\ncd serverless\nnvm use\nnpm install\n```\n\n### Set your environment variables\n\nYou can find and update the function's configuration in [`serverless.yml`](https://github.com/CryptoUnico/serverless/blob/master/serverless.yml):\n\n```yml\nservice: serverless\nprovider:\n  name: aws\n  runtime: nodejs12.x\n  region: ap-southeast-1\n  timeout: 30\n  environment:\n    DEFAULT_GAS_PRICE: 60000000000\n    MNEMONIC: ...\n```\n\nThis example uses the following environment variables:\n\n- `DEFAULT_GAS_PRICE`: Default gas price used when making write transactions.\n- `MNEMONIC`: 12-word mnemonic used to derive an Ethereum address, make sure it's funded with Ether if you intend to write data to Ethereum!\n- `SLACK_HOOK_URL`: The example sends messages to Slack using [Incoming Webhooks](https://api.slack.com/messaging/webhooks). You can get this URL from your Slack dashboard. (Optional)\n\n\u003e You can change your deployed function's environment variables on the fly from the AWS Lambda console.\n\n### Triggering the function locally\n\n```bash\nserverless invoke local --function exec\n```\n\nThis will execute the smart contract function from your local machine.\nGreat for debugging and testing.\n\n### Deploying to AWS\n\n```bash\nnpm i -D serverless-dotenv-plugin\nserverless deploy\n```\n\n## Thanks\n\n**serverless** 2021+, Uni. Released under the [MIT] License.\u003cbr\u003e\n\n\u003e GitHub [@CryptoUnico](https://github.com/CryptoUnico)\n\n[MIT]: http://mit-license.org/\n[contributors]: http://github.com/CryptoUnico/serverless/contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunsdev%2Fserverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbunsdev%2Fserverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunsdev%2Fserverless/lists"}