File tree 8 files changed +13
-24
lines changed
8 files changed +13
-24
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,5 @@ export CHAIN_ID=tequila-0004
16
16
export LCD_URI=https://tequila-lcd.terra.dev
17
17
export FCD_URI=https://tequila-fcd.terra.dev
18
18
export RPC_URI=
19
- export MIRROR_GRAPH_URI=https://tequila-graph.mirror.finance/graphql
20
- export STATION_STATUS_JSON=https://terra.money/station/version-web.json
21
19
export SENTRY_DSN=
22
20
#export USE_LOG_FILE=true
Original file line number Diff line number Diff line change 15
15
16
16
## Prerequisites
17
17
18
- 1 . ` Node.js ` version 14 or later
19
- 1 . ` PostgreSQL ` version 12 or later
20
-
21
- ### Terra Core
22
-
23
- 1 . Setup a LCD
24
- 1 . Configure firewall ([ Reference] ( https://docs.terra.money/How-to/Run-a-full-Terra-node/Set-up-production-environment.html#configure-the-firewall ) )
18
+ 1 . ` Node.js ` v16.x or later
19
+ 1 . ` PostgreSQL ` v12.x or later
25
20
26
21
## Project setup
27
22
@@ -79,7 +74,6 @@ module.exports = {
79
74
| SENTRY_DSN | Sentry DSN for error management (optional) | | API, Collector |
80
75
| SERVER_PORT | Listening port for API server | 3060 | API |
81
76
| FCD_URI | FCD URI for Terra network | https://bombay-fcd.terra.dev | API |
82
- | STATION_STATUS_JSON | URL for Station version control | https://terra.money/station/version-web.json | API |
83
77
| DISABLE_API | Disable REST APIs | false | API |
84
78
| EXCLUDED_ROUTES | List of regular expression string for excluding routes | [ ] | API |
85
79
| MIN_GAS_PRICES | Minimum gas price by denom object | {"uluna": "5.0"} | API |
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " fcd" ,
3
- "version" : " 2.0.0-beta.1 " ,
3
+ "version" : " 2.0.0-beta.2 " ,
4
4
"description" : " Terra FCD Suite" ,
5
5
"main" : " index.js" ,
6
6
"author" : " Terra Engineering <engineering@terra.money>" ,
10
10
"url" : " https://github.com/terra-money/fcd.git"
11
11
},
12
12
"engines" : {
13
- "node" : " >=14 "
13
+ "node" : " >=16 "
14
14
},
15
15
"scripts" : {
16
16
"prettier" : " prettier --write './src/**/*.ts'" ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ function extractAddressFromMsg(msg: Transaction.Message): string[] {
24
24
}
25
25
}
26
26
27
- extractAddressesFromValue ( msg . value )
27
+ extractAddressesFromValue ( msg )
28
28
return addrs
29
29
}
30
30
@@ -45,6 +45,7 @@ function extractAddressFromLog(log: Transaction.Log) {
45
45
export function generateAccountTxs ( tx : TxEntity ) : AccountTxEntity [ ] {
46
46
const msgs = tx . data . tx . body . messages
47
47
const logs = tx . data . logs
48
+
48
49
const addrs = msgs . map ( extractAddressFromMsg ) . flat ( )
49
50
50
51
if ( logs ) {
Original file line number Diff line number Diff line change 3
3
LCD_URI ,
4
4
FCD_URI ,
5
5
RPC_URI ,
6
- STATION_STATUS_JSON ,
7
6
SENTRY_DSN ,
8
7
USE_LOG_FILE ,
9
8
DISABLE_API ,
@@ -35,7 +34,6 @@ const config = {
35
34
LCD_URI : LCD_URI || 'https://bombay-lcd.terra.dev' ,
36
35
FCD_URI : FCD_URI || 'https://bombay-fcd.terra.dev' ,
37
36
RPC_URI : RPC_URI || 'http://localhost:26657' ,
38
- STATION_STATUS_JSON_URL : STATION_STATUS_JSON || 'https://terra.money/station/version-web.json' ,
39
37
BANK_WALLETS : BANK_WALLETS ? ( JSON . parse ( BANK_WALLETS ) as string [ ] ) : [ ] ,
40
38
TOKEN_NETWORK : TOKEN_NETWORK ,
41
39
SENTRY_DSN ,
Original file line number Diff line number Diff line change @@ -26,14 +26,15 @@ interface DelayedVestingAccount {
26
26
}
27
27
28
28
interface VestingPeriod {
29
- length : string
29
+ length : string // unit: seconds
30
30
amount : Coins
31
31
}
32
32
33
33
interface PeriodicVestingAccount {
34
34
'@type' : '/cosmos.vesting.v1beta1.PeriodicVestingAccount'
35
35
base_vesting_account : BaseVestingAccount
36
36
start_time : string
37
+ // linear vesting from start_time to period.length (seconds)
37
38
vesting_periods : VestingPeriod [ ]
38
39
}
39
40
Original file line number Diff line number Diff line change @@ -17,13 +17,10 @@ declare namespace Transaction {
17
17
} [ ]
18
18
}
19
19
20
- interface Message {
21
- type : string
22
- value : { [ key : string ] : any }
23
- }
20
+ type Message = { [ key : string ] : any }
24
21
25
22
interface Body {
26
- messages : { [ key : string ] : any } [ ]
23
+ messages : Message [ ]
27
24
memo : string
28
25
timeout_height ?: string
29
26
}
You can’t perform that action at this time.
0 commit comments