@@ -7,39 +7,43 @@ 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 85 ' ,
19
+ 85 ,
26
20
[ ] ,
27
21
[
28
- new Wallet (
29
- 'published.wallet.agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk.current' ,
30
- BigInt ( 627 ) ,
31
- new Date ( '2024-12-09T23:07:18.273Z' ) ,
32
- 'agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk' ,
33
- ) ,
34
22
new StateChangeEvent (
35
- '627:39:3 ' ,
36
- BigInt ( 627 ) ,
37
- new Date ( '2024-12-09T23:07:18.273Z ' ) ,
23
+ '85:97:4 ' ,
24
+ BigInt ( 85 ) ,
25
+ new Date ( '2024-12-26T12:53:10.730 ' ) ,
38
26
'published.wallet' ,
39
- 'published.wallet.agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk.current' ,
40
- 3 ,
41
- '["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"}]}' ,
27
+ 'published.wallet.agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk' ,
28
+ 4 ,
29
+ '["board0223"]' ,
30
+ '{"currentAmount":{"brand":{"@qclass":"slot","iface":"Alleged: USDC_axl brand","index":0},"value":{"@qclass":"bigint","digits":"0"},"__brand":"USDC_axl","__value":"0"},"updated":"balance"}' ,
31
+ ) ,
32
+ ] ,
33
+
34
+ 'handleStateChangeEvent' ,
35
+ ) ;
36
+
37
+ subqlTest (
38
+ 'Wallet existence on height 1133' ,
39
+ 1133 ,
40
+ [ ] ,
41
+ [
42
+ new Wallet (
43
+ 'published.wallet.agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk' ,
44
+ BigInt ( 1133 ) ,
45
+ new Date ( '2024-12-26T13:26:39.5' ) ,
46
+ 'agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk' ,
43
47
) ,
44
48
] ,
45
49
@@ -48,8 +52,8 @@ subqlTest(
48
52
49
53
const vault = new Vault (
50
54
'published.vaultFactory.managers.manager0.vaults.vault6' ,
51
- BigInt ( 742 ) ,
52
- new Date ( '2024-12-09 23:13:19.186 ' ) ,
55
+ BigInt ( 1149 ) ,
56
+ new Date ( '2024-12-26T13:28:09.172 ' ) ,
53
57
'published.wallet.agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q.current' ,
54
58
) ;
55
59
@@ -61,15 +65,15 @@ vault.debt = BigInt(4745610000);
61
65
vault . state = 'active' ;
62
66
63
67
subqlTest (
64
- 'Vault and VaultStateDailies at height 742 ' ,
65
- 742 ,
68
+ 'Vault and VaultStateDailies at height 1149 ' ,
69
+ 1149 ,
66
70
[ ] ,
67
71
[
68
72
vault ,
69
73
new VaultStatesDaily (
70
- '20241209 ' ,
71
- BigInt ( 742 ) ,
72
- new Date ( '2024-12-09 23:13:19.186 ' ) ,
74
+ '20241226 ' ,
75
+ BigInt ( 1149 ) ,
76
+ new Date ( '2024-12-26T13:28:09.172 ' ) ,
73
77
BigInt ( 1 ) ,
74
78
BigInt ( 0 ) ,
75
79
BigInt ( 0 ) ,
@@ -82,31 +86,31 @@ subqlTest(
82
86
) ;
83
87
84
88
subqlTest (
85
- 'BoardAux at block 643 ' ,
86
- 643 ,
89
+ 'BoardAux at block 652 ' ,
90
+ 652 ,
87
91
[ ] ,
88
92
[
89
93
new BoardAux (
90
94
'published.boardAux.board0074' ,
91
- BigInt ( 643 ) ,
92
- new Date ( '2024-12-09T23:07:37.423Z ' ) ,
95
+ BigInt ( 652 ) ,
96
+ new Date ( '2024-12-26T13:10:08.048 ' ) ,
93
97
'Zoe Invitation' ,
94
98
'set' ,
95
99
0 ,
96
100
) ,
97
101
new BoardAux (
98
102
'published.boardAux.board01744' ,
99
- BigInt ( 643 ) ,
100
- new Date ( '2024-12-09T23:07:37.423Z ' ) ,
103
+ BigInt ( 652 ) ,
104
+ new Date ( '2024-12-26T13:10:08.048 ' ) ,
101
105
'USDT_axl' ,
102
106
'nat' ,
103
107
6 ,
104
108
) ,
105
- new BoardAux ( 'published.boardAux.board0257' , BigInt ( 643 ) , new Date ( '2024-12-09T23:07:37.423Z ' ) , 'IST' , 'nat' , 6 ) ,
109
+ new BoardAux ( 'published.boardAux.board0257' , BigInt ( 652 ) , new Date ( '2024-12-26T13:10:08.048 ' ) , 'IST' , 'nat' , 6 ) ,
106
110
new BoardAux (
107
111
'published.boardAux.board03040' ,
108
- BigInt ( 643 ) ,
109
- new Date ( '2024-12-09T23:07:37.423Z ' ) ,
112
+ BigInt ( 652 ) ,
113
+ new Date ( '2024-12-26T13:10:08.048 ' ) ,
110
114
'USDC_axl' ,
111
115
'nat' ,
112
116
6 ,
@@ -117,10 +121,10 @@ subqlTest(
117
121
) ;
118
122
119
123
const oraclePriceDaily = new OraclePriceDaily (
120
- 'ATOM-USD:20241209 ' ,
121
- 20241209 ,
122
- BigInt ( 506 ) ,
123
- new Date ( '2024-12-09T23:03:17.000Z ' ) ,
124
+ 'ATOM-USD:20241226 ' ,
125
+ 20241226 ,
126
+ BigInt ( 509 ) ,
127
+ new Date ( '2024-12-26T13:05:39.000 ' ) ,
124
128
) ;
125
129
126
130
oraclePriceDaily . typeInAmountLast = BigInt ( 1000000 ) ;
@@ -133,8 +137,8 @@ oraclePriceDaily.metricsCount = BigInt(1);
133
137
134
138
const oraclePrice = new OraclePrice (
135
139
'ATOM-USD' ,
136
- BigInt ( 506 ) ,
137
- new Date ( '2024-12-09T23:03:17.564Z ' ) ,
140
+ BigInt ( 509 ) ,
141
+ new Date ( '2024-12-26T13:05:39.056 ' ) ,
138
142
'ATOM-USD' ,
139
143
BigInt ( 1000000 ) ,
140
144
BigInt ( 12010000 ) ,
@@ -143,20 +147,20 @@ const oraclePrice = new OraclePrice(
143
147
) ;
144
148
145
149
subqlTest (
146
- 'oraclePrice at block 506 ' ,
147
- 506 ,
150
+ 'oraclePrice at block 509 ' ,
151
+ 509 ,
148
152
[ ] ,
149
153
[ oraclePriceDaily , oraclePrice ] ,
150
154
151
155
'handleStateChangeEvent' ,
152
156
) ;
153
157
154
158
const psmMetricsDaily = new PsmMetricsDaily (
155
- 'published.psm.IST.USDC_axl.metrics:20241207 ' ,
159
+ 'published.psm.IST.USDC_axl.metrics:20241226 ' ,
156
160
'published.psm.IST.USDC_axl.metrics' ,
157
- 20241207 ,
161
+ 20241226 ,
158
162
BigInt ( 35 ) ,
159
- new Date ( '2024-12-07T02:03:32.000Z ' ) ,
163
+ new Date ( '2024-12-26T12:49:56.000 ' ) ,
160
164
) ;
161
165
162
166
psmMetricsDaily . denom = 'USDC_axl' ;
@@ -170,7 +174,7 @@ psmMetricsDaily.metricsCount = BigInt(1);
170
174
const psmMetrics = new PsmMetrics (
171
175
'published.psm.IST.USDC_axl.metrics' ,
172
176
BigInt ( 35 ) ,
173
- new Date ( '2024-12-07T02:03:32.920Z ' ) ,
177
+ new Date ( '2024-12-26T12:49:56.863 ' ) ,
174
178
'USDC_axl' ,
175
179
'USDC_axl' ,
176
180
BigInt ( 0 ) ,
@@ -185,7 +189,7 @@ subqlTest('psmMetrics at block 35', 35, [], [psmMetricsDaily, psmMetrics], 'hand
185
189
const psmGovernance = new PsmGovernance (
186
190
'published.psm.IST.USDT_axl.governance' ,
187
191
BigInt ( 35 ) ,
188
- new Date ( '2024-12-07T02:03:32.920Z ' ) ,
192
+ new Date ( '2024-12-26T12:49:56.863 ' ) ,
189
193
'USDT_axl' ,
190
194
'USDT_axl' ,
191
195
BigInt ( 1000000000 ) ,
0 commit comments