@@ -7,39 +7,33 @@ import {
7
7
PsmGovernance ,
8
8
PsmMetrics ,
9
9
PsmMetricsDaily ,
10
- ReserveAllocationMetrics ,
11
- ReserveAllocationMetricsDaily ,
12
- ReserveMetrics ,
13
10
StateChangeEvent ,
14
11
Vault ,
15
- VaultManagerGovernance ,
16
- VaultManagerMetrics ,
17
- VaultManagerMetricsDaily ,
18
12
VaultStatesDaily ,
19
13
Wallet ,
20
14
} from '../types' ;
21
15
22
16
// FIXME observed in A3P:latest but not passing tests
23
17
subqlTest (
24
- 'StateChangeEvent in state_change at block 627 ' ,
25
- 627 ,
18
+ 'StateChangeEvent in state_change at block 642 ' ,
19
+ 642 ,
26
20
[ ] ,
27
21
[
28
22
new Wallet (
29
23
'published.wallet.agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk.current' ,
30
- BigInt ( 627 ) ,
31
- new Date ( '2024-12-09T23:07:18.273Z ' ) ,
24
+ BigInt ( 642 ) ,
25
+ new Date ( '2024-12-26T13:10:11.903Z ' ) ,
32
26
'agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk' ,
33
27
) ,
34
28
new StateChangeEvent (
35
- '627 :39:3' ,
36
- BigInt ( 627 ) ,
37
- new Date ( '2024-12-09T23:07:18.273Z ' ) ,
29
+ '642 :39:3' ,
30
+ BigInt ( 642 ) ,
31
+ new Date ( '2024-12-26T13:10:11.903Z ' ) ,
38
32
'published.wallet' ,
39
33
'published.wallet.agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk.current' ,
40
34
3 ,
41
35
'["board05557","board0257","board0074",null,"board05815","board00360"]' ,
42
- '{"liveOffers":[["openVault-1733785637736",{"id":"openVault-1733785637736","invitationSpec":{"callPipe":[["getCollateralManager",["$0.Alleged: ATOM brand"]],["makeVaultInvitation"]],"instancePath":["VaultFactory"],"source":"agoricContract"},"proposal":{"give":{"Collateral":{"brand":"$0","value":"+583000000","__brand":"ATOM","__value":"583000000"}},"want":{"Minted":{"brand":"$1.Alleged: IST brand","value":"+3489000000","__brand":"IST","__value":"3489000000"}}}}]],"offerToPublicSubscriberPaths":[["openVault-1733785637736",{"vault":"published.vaultFactory.managers.manager0.vaults.vault4"}]],"offerToUsedInvitation":[["openVault-1733785637736",{"brand":"$2.Alleged: Zoe Invitation brand","value":[{"description":"manager0: MakeVault","handle":"$3.Alleged: InvitationHandle","installation":"$4.Alleged: BundleIDInstallation","instance":"$5.Alleged: InstanceHandle","__handle":"InvitationHandle","__installation":"BundleIDInstallation","__instance":"InstanceHandle"}],"__brand":"Zoe Invitation"}]],"purses":[{"balance":{"brand":"$2","value":[],"__brand":"Zoe Invitation"},"brand":"$2","__brand":"Zoe Invitation"}]}' ,
36
+ '{"liveOffers":[["openVault-1735218611466",{"id":"openVault-1735218611466","invitationSpec":{"callPipe":[["getCollateralManager",["$0.Alleged: ATOM brand"]],["makeVaultInvitation"]],"instancePath":["VaultFactory"],"source":"agoricContract"},"proposal":{"give":{"Collateral":{"brand":"$0","value":"+583000000","__brand":"ATOM","__value":"583000000"}},"want":{"Minted":{"brand":"$1.Alleged: IST brand","value":"+3489000000","__brand":"IST","__value":"3489000000"}}}}]],"offerToPublicSubscriberPaths":[["openVault-1735218611466",{"vault":"published.vaultFactory.managers.manager0.vaults.vault4"}]],"offerToUsedInvitation":[["openVault-1735218611466",{"brand":"$2.Alleged: Zoe Invitation brand","value":[{"description":"manager0: MakeVault","handle":"$3.Alleged: InvitationHandle","installation":"$4.Alleged: BundleIDInstallation","instance":"$5.Alleged: InstanceHandle","__handle":"InvitationHandle","__installation":"BundleIDInstallation","__instance":"InstanceHandle"}],"__brand":"Zoe Invitation"}]],"purses":[{"balance":{"brand":"$2","value":[],"__brand":"Zoe Invitation"},"brand":"$2","__brand":"Zoe Invitation"}]}' ,
43
37
) ,
44
38
] ,
45
39
@@ -48,8 +42,8 @@ subqlTest(
48
42
49
43
const vault = new Vault (
50
44
'published.vaultFactory.managers.manager0.vaults.vault6' ,
51
- BigInt ( 742 ) ,
52
- new Date ( '2024-12-09 23:13:19.186 ' ) ,
45
+ BigInt ( 758 ) ,
46
+ new Date ( '2024-12-26T13:16:21.039 ' ) ,
53
47
'published.wallet.agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q.current' ,
54
48
) ;
55
49
@@ -61,15 +55,15 @@ vault.debt = BigInt(4745610000);
61
55
vault . state = 'active' ;
62
56
63
57
subqlTest (
64
- 'Vault and VaultStateDailies at height 742 ' ,
65
- 742 ,
58
+ 'Vault and VaultStateDailies at height 758 ' ,
59
+ 758 ,
66
60
[ ] ,
67
61
[
68
62
vault ,
69
63
new VaultStatesDaily (
70
- '20241209 ' ,
71
- BigInt ( 742 ) ,
72
- new Date ( '2024-12-09 23:13:19.186 ' ) ,
64
+ '20241226 ' ,
65
+ BigInt ( 758 ) ,
66
+ new Date ( '2024-12-26T13:16:21.039 ' ) ,
73
67
BigInt ( 1 ) ,
74
68
BigInt ( 0 ) ,
75
69
BigInt ( 0 ) ,
@@ -82,31 +76,31 @@ subqlTest(
82
76
) ;
83
77
84
78
subqlTest (
85
- 'BoardAux at block 643 ' ,
86
- 643 ,
79
+ 'BoardAux at block 658 ' ,
80
+ 658 ,
87
81
[ ] ,
88
82
[
89
83
new BoardAux (
90
84
'published.boardAux.board0074' ,
91
- BigInt ( 643 ) ,
92
- new Date ( '2024-12-09T23:07:37.423Z ' ) ,
85
+ BigInt ( 658 ) ,
86
+ new Date ( '2024-12-26T13:10:30.706Z ' ) ,
93
87
'Zoe Invitation' ,
94
88
'set' ,
95
89
0 ,
96
90
) ,
97
91
new BoardAux (
98
92
'published.boardAux.board01744' ,
99
- BigInt ( 643 ) ,
100
- new Date ( '2024-12-09T23:07:37.423Z ' ) ,
93
+ BigInt ( 658 ) ,
94
+ new Date ( '2024-12-26T13:10:30.706Z ' ) ,
101
95
'USDT_axl' ,
102
96
'nat' ,
103
97
6 ,
104
98
) ,
105
- new BoardAux ( 'published.boardAux.board0257' , BigInt ( 643 ) , new Date ( '2024-12-09T23:07:37.423Z ' ) , 'IST' , 'nat' , 6 ) ,
99
+ new BoardAux ( 'published.boardAux.board0257' , BigInt ( 658 ) , new Date ( '2024-12-26T13:10:30.706Z ' ) , 'IST' , 'nat' , 6 ) ,
106
100
new BoardAux (
107
101
'published.boardAux.board03040' ,
108
- BigInt ( 643 ) ,
109
- new Date ( '2024-12-09T23:07:37.423Z ' ) ,
102
+ BigInt ( 658 ) ,
103
+ new Date ( '2024-12-26T13:10:30.706Z ' ) ,
110
104
'USDC_axl' ,
111
105
'nat' ,
112
106
6 ,
@@ -117,10 +111,10 @@ subqlTest(
117
111
) ;
118
112
119
113
const oraclePriceDaily = new OraclePriceDaily (
120
- 'ATOM-USD:20241209 ' ,
121
- 20241209 ,
122
- BigInt ( 506 ) ,
123
- new Date ( '2024-12-09T23:03:17 .000Z' ) ,
114
+ 'ATOM-USD:20241226 ' ,
115
+ 20241226 ,
116
+ BigInt ( 512 ) ,
117
+ new Date ( '2024-12-26T13:05:53 .000Z' ) ,
124
118
) ;
125
119
126
120
oraclePriceDaily . typeInAmountLast = BigInt ( 1000000 ) ;
@@ -133,8 +127,8 @@ oraclePriceDaily.metricsCount = BigInt(1);
133
127
134
128
const oraclePrice = new OraclePrice (
135
129
'ATOM-USD' ,
136
- BigInt ( 506 ) ,
137
- new Date ( '2024-12-09T23:03:17.564Z ' ) ,
130
+ BigInt ( 512 ) ,
131
+ new Date ( '2024-12-26T13:05:53.914Z ' ) ,
138
132
'ATOM-USD' ,
139
133
BigInt ( 1000000 ) ,
140
134
BigInt ( 12010000 ) ,
@@ -143,20 +137,20 @@ const oraclePrice = new OraclePrice(
143
137
) ;
144
138
145
139
subqlTest (
146
- 'oraclePrice at block 506 ' ,
147
- 506 ,
140
+ 'oraclePrice at block 512 ' ,
141
+ 512 ,
148
142
[ ] ,
149
143
[ oraclePriceDaily , oraclePrice ] ,
150
144
151
145
'handleStateChangeEvent' ,
152
146
) ;
153
147
154
148
const psmMetricsDaily = new PsmMetricsDaily (
155
- 'published.psm.IST.USDC_axl.metrics:20241207 ' ,
149
+ 'published.psm.IST.USDC_axl.metrics:20241226 ' ,
156
150
'published.psm.IST.USDC_axl.metrics' ,
157
- 20241207 ,
151
+ 20241226 ,
158
152
BigInt ( 35 ) ,
159
- new Date ( '2024-12-07T02:03:32.000Z ' ) ,
153
+ new Date ( '2024-12-26T12:49:56.000 ' ) ,
160
154
) ;
161
155
162
156
psmMetricsDaily . denom = 'USDC_axl' ;
@@ -170,7 +164,7 @@ psmMetricsDaily.metricsCount = BigInt(1);
170
164
const psmMetrics = new PsmMetrics (
171
165
'published.psm.IST.USDC_axl.metrics' ,
172
166
BigInt ( 35 ) ,
173
- new Date ( '2024-12-07T02:03:32.920Z ' ) ,
167
+ new Date ( '2024-12-26T12:49:56.863 ' ) ,
174
168
'USDC_axl' ,
175
169
'USDC_axl' ,
176
170
BigInt ( 0 ) ,
@@ -185,7 +179,7 @@ subqlTest('psmMetrics at block 35', 35, [], [psmMetricsDaily, psmMetrics], 'hand
185
179
const psmGovernance = new PsmGovernance (
186
180
'published.psm.IST.USDT_axl.governance' ,
187
181
BigInt ( 35 ) ,
188
- new Date ( '2024-12-07T02:03:32.920Z ' ) ,
182
+ new Date ( '2024-12-26T12:49:56.863 ' ) ,
189
183
'USDT_axl' ,
190
184
'USDT_axl' ,
191
185
BigInt ( 1000000000 ) ,
0 commit comments