-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
32 lines (28 loc) · 1.21 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
org: copyndpaste
app: uniswap-v3-with-ethers
service: uniswap-v3-with-ethers
frameworkVersion: '2'
custom:
stage: ${self:provider.stage} # sls deploy 시 설정된 stage 지정
config: ${file(./config/config.js):config}
provider:
name: aws
runtime: nodejs12.x
lambdaHashingVersion: 20201221
stage: ${opt:stage, 'dev'}
environment:
NODE_ENV: ${self:custom.config.${self:custom.stage}.NODE_ENV}
infuraProjectId: ${self:custom.config.${self:custom.stage}.infuraProjectId}
infuraProjectSecret: ${self:custom.config.${self:custom.stage}.infuraProjectSecret}
network: ${self:custom.config.${self:custom.stage}.network}
uniswapV3RouterAddress: ${self:custom.config.${self:custom.stage}.uniswapV3RouterAddress}
chainId: ${self:custom.config.${self:custom.stage}.chainId}
daiContractAddress: ${self:custom.config.${self:custom.stage}.daiContractAddress}
uniContractAddress: ${self:custom.config.${self:custom.stage}.uniContractAddress}
etherContractAddress: ${self:custom.config.${self:custom.stage}.etherContractAddress}
privateKey: ${self:custom.config.${self:custom.stage}.privateKey}
functions:
rateHandler:
handler: handler.run
events:
- schedule: rate(10 minute)