Skip to content

Commit

Permalink
test: a3p
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Dec 11, 2024
1 parent ebe26e6 commit 5c1033d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,19 @@ The fastest way to get support is by [searching our documentation](https://acade
- storage
- submit_proposal
- transfer

## Developing

### Locally

1. Start up an A3P instance:

```sh
docker run -p 26657:26657 -p 1317:1317 -p 9090:9090 ghcr.io/agoric/agoric-3-proposals:latest
```

2. Browse it with [vstorage viewer](https://vstorage.agoric.net/?endpoint=http%3A%2F%2Flocalhost%3A26657)

3. Update tests to verify some observations you've made in the vstorage viewer

4. Run `yarn test`
8 changes: 5 additions & 3 deletions src/test/mappingHandlers.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @file test against agoric-3-proposals:latest */
import { subqlTest } from '@subql/testing';
import {
StateChangeEvent,
Expand Down Expand Up @@ -99,14 +100,15 @@ subqlTest(
'handleStateChangeEvent',
);

const VaultManagerGovernance_Height = 1153;
subqlTest(
'VaultManagerGovernance in state_change at block 982',
982, // block height to process
'VaultManagerGovernance in state_change',
VaultManagerGovernance_Height, // block height to process
[],
[
new VaultManagerGovernance(
'published.vaultFactory.managers.manager1.governance',
BigInt(982),
BigInt(VaultManagerGovernance_Height),
new Date('2024-01-17T20:29:32.963Z'),
BigInt(1000000000),
BigInt(100),
Expand Down

0 comments on commit 5c1033d

Please sign in to comment.