Skip to content

Commit d672dc6

Browse files
uniuni
uni
authored and
uni
committed
Package updates
1 parent 39dab55 commit d672dc6

File tree

5 files changed

+116
-8
lines changed

5 files changed

+116
-8
lines changed

.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
MNEMONIC = '...'
2+
FROM_ADDRESS = '...'

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Uni
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

package-lock.json

+75-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
{
2-
"name": "serverless-ethers",
2+
"name": "serverless",
33
"version": "1.0.0",
44
"description": "Smart contract automation service built with the Serverless framework.",
5-
"author": "Yos Riady <[email protected]>",
5+
"author": "Uni <[email protected]>",
6+
"license": "MIT",
67
"dependencies": {
78
"axios": "^0.19.2",
89
"ethers": "^5.0.3"
910
},
1011
"devDependencies": {
12+
"dotenv": "^8.2.0",
13+
"serverless-dotenv-plugin": "^3.1.0",
1114
"serverless-offline": "^5.7.3",
1215
"serverless-offline-scheduler": "^0.3.8"
1316
},
1417
"bugs": {
15-
"url": "https://github.com/yosriady/serverless-ethers/issues"
18+
"url": "https://github.com/cryptounico/serverless/issues"
1619
},
17-
"homepage": "https://github.com/yosriady/serverless-ethers"
20+
"homepage": "https://github.com/cryptounico/serverless"
1821
}

serverless.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
org: unico
2+
app: demo
13
service: serverless-ethers
24
provider:
35
name: aws
@@ -7,8 +9,8 @@ provider:
79
environment:
810
CHAIN_ID: 3 # 3 for Ropsten, 1 for Mainnet
911
DEFAULT_GAS_PRICE: 60000000000
10-
MNEMONIC: '...'
11-
FROM_ADDRESS: '...'
12+
MNEMONIC: process.env.MNEMONIC,
13+
FROM_ADDRESS: process.env.FROM_ADDRESS,
1214
SLACK_HOOK_URL: 'https://hooks.slack.com/services/...'
1315

1416
functions:
@@ -20,4 +22,10 @@ functions:
2022

2123
plugins:
2224
- serverless-offline
23-
- serverless-offline-scheduler
25+
- serverless-offline-scheduler
26+
- serverless-dotenv-plugin
27+
28+
custom:
29+
dotenv:
30+
required:
31+
file: true

0 commit comments

Comments
 (0)