Skip to content

Latest commit

 

History

History
94 lines (89 loc) · 2.65 KB

File metadata and controls

94 lines (89 loc) · 2.65 KB

Snapshot report for test/psm/psm.test.js

The actual snapshot is saved in psm.test.js.snap.

Generated by AVA.

metrics, with snapshot

Under "published", the "psm" node is delegated to a tree of PSM contract instances. The example below illustrates the schema of the data published there.

See also board marshalling conventions (to appear).

[
  [
    'published.psm.IST.AUSD.governance',
    {
      current: {
        Electorate: {
          type: 'invitation',
          value: {
            brand: Object @Alleged: Zoe Invitation brand {},
            value: [
              {
                description: 'questionPoser',
                handle: Object @Alleged: InvitationHandle {},
                installation: Object @Alleged: BundleInstallation {},
                instance: Object @Alleged: InstanceHandle {},
              },
            ],
          },
        },
        GiveMintedFee: {
          type: 'ratio',
          value: {
            denominator: {
              brand: Object @Alleged: IST brand {},
              value: 10000n,
            },
            numerator: {
              brand: Object @Alleged: IST brand {},
              value: 3n,
            },
          },
        },
        MintLimit: {
          type: 'amount',
          value: {
            brand: Object @Alleged: IST brand {},
            value: 20000000000000n,
          },
        },
        WantMintedFee: {
          type: 'ratio',
          value: {
            denominator: {
              brand: Object @Alleged: IST brand {},
              value: 10000n,
            },
            numerator: {
              brand: Object @Alleged: IST brand {},
              value: 1n,
            },
          },
        },
      },
    },
  ],
  [
    'published.psm.IST.AUSD.metrics',
    {
      anchorPoolBalance: {
        brand: Object @Alleged: aUSD brand {},
        value: 100030000n,
      },
      feePoolBalance: {
        brand: Object @Alleged: IST brand {},
        value: 50000n,
      },
      mintedPoolBalance: {
        brand: Object @Alleged: IST brand {},
        value: 100030000n,
      },
      totalAnchorProvided: {
        brand: Object @Alleged: aUSD brand {},
        value: 99970000n,
      },
      totalMintedProvided: {
        brand: Object @Alleged: IST brand {},
        value: 200000000n,
      },
    },
  ],
]