Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Jan 9, 2025
1 parent 7238d81 commit 6f15511
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 26 deletions.
15 changes: 10 additions & 5 deletions scripts/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,17 @@ export const getQuery = (entity, filters) => {
}
}`,
reserveMetrics: `query {
reserveMetrics ${filterString} {
stateChangeEvents {
nodes {
id
shortfallBalance
totalFeeBurned
totalFeeMinted
id
blockHeight
blockTime
module
path
idx
slots
body
}
}
}`,
Expand Down
16 changes: 8 additions & 8 deletions src/test/installBundleHandler.test.ts

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions src/test/mappingHandlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ import {

// FIXME observed in A3P:latest but not passing tests
subqlTest(
'StateChangeEvent in state_change at block 642',
642,
'StateChangeEvent in state_change at block 85',
85,
[],
[
new Wallet(
'published.wallet.agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk.current',
BigInt(642),
new Date('2024-12-26T13:10:11.903Z'),
'published.wallet.agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk',
BigInt(85),
new Date('2024-12-26T12:53:10.730'),
'agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk',
),
new StateChangeEvent(
'642:39:3',
BigInt(642),
new Date('2024-12-26T13:10:11.903Z'),
'85:97:4',
BigInt(85),
new Date('2024-12-26T12:53:10.730'),
'published.wallet',
'published.wallet.agoric1rwwley550k9mmk6uq6mm6z4udrg8kyuyvfszjk.current',
3,
'["board05557","board0257","board0074",null,"board05815","board00360"]',
'{"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"}]}',
4,
'["board0223"]',
'{"currentAmount":{"brand":{"@qclass":"slot","iface":"Alleged: USDC_axl brand","index":0},"value":{"@qclass":"bigint","digits":"0"},"__brand":"USDC_axl","__value":"0"},"updated":"balance"}',
),
],

Expand All @@ -43,7 +43,7 @@ subqlTest(
const vault = new Vault(
'published.vaultFactory.managers.manager0.vaults.vault6',
BigInt(1149),
new Date('2024-12-26T13:16:21.039'),
new Date('2024-12-26T13:28:09.172'),
'published.wallet.agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q.current',
);

Expand All @@ -63,7 +63,7 @@ subqlTest(
new VaultStatesDaily(
'20241226',
BigInt(1149),
new Date('2024-12-26T13:16:21.039'),
new Date('2024-12-26T13:28:09.172'),
BigInt(1),
BigInt(0),
BigInt(0),
Expand Down

0 comments on commit 6f15511

Please sign in to comment.