UNPKG

o1js

Version:

TypeScript framework for zk-SNARKs and zkApps

95 lines 3.72 kB
import { mocks } from '../../../bindings/crypto/constants.js'; export { accountUpdateExample }; // an example account update, to be used for tests let accountUpdateExample = { body: { publicKey: 'B62qmfmZrxjfRHfnx1QJLHUyStQxSkqao9civMXPaymkknX5PCiZT7J', tokenId: 'yEWUTZqtT8PmCFU32EXwCwudK4gtxCWkjcAC7eTwj2riWhCV8M', update: { appState: ['9', null, null, null, null, null, null, null], delegate: 'B62qrja1a2wu3ciKygrqNiNoDZUsHCcE1VfF4LZQtQkzszWhogpWN9i', verificationKey: null, permissions: { editState: 'Proof', access: 'None', send: 'Signature', receive: 'Proof', setDelegate: 'Signature', setPermissions: 'None', setVerificationKey: { auth: 'None', txnVersion: '3', }, setZkappUri: 'Signature', editActionState: 'Proof', setTokenSymbol: 'Signature', incrementNonce: 'Signature', setVotingFor: 'Signature', setTiming: 'Signature', }, zkappUri: null, tokenSymbol: 'BLABLA', timing: { initialMinimumBalance: '1', cliffTime: '0', cliffAmount: '0', vestingPeriod: '1', vestingIncrement: '2', }, votingFor: null, }, balanceChange: { magnitude: '14197832', sgn: 'Negative' }, incrementNonce: true, events: [['0'], ['1']], actions: [['0'], ['1']], callData: '6743900749438632952963252074409706338210982229126682817949490928992849119219', callDepth: 0, preconditions: { network: { snarkedLedgerHash: null, blockchainLength: null, minWindowDensity: null, totalCurrency: null, globalSlotSinceGenesis: null, stakingEpochData: { ledger: { hash: '4295928848099762379149452702606274128891023958431976727769309015818325653869', totalCurrency: null, }, seed: null, startCheckpoint: null, lockCheckpoint: null, epochLength: null, }, nextEpochData: { ledger: { hash: null, totalCurrency: null }, seed: null, startCheckpoint: null, lockCheckpoint: '16957731668585847663441468154039306422576952181094510426739468515732343321592', epochLength: null, }, }, account: { balance: { lower: '1000000000', upper: '1000000000' }, nonce: null, receiptChainHash: null, delegate: 'B62qrja1a2wu3ciKygrqNiNoDZUsHCcE1VfF4LZQtQkzszWhogpWN9i', state: ['9', null, null, null, null, null, null, null], actionState: null, provedState: null, isNew: true, }, validWhile: null, }, useFullCommitment: false, implicitAccountCreationFee: false, mayUseToken: { parentsOwnToken: false, inheritFromParent: false }, authorizationKind: { isSigned: false, isProved: false, verificationKeyHash: mocks.dummyVerificationKeyHash, }, }, authorization: { proof: null, signature: null }, }; //# sourceMappingURL=accountUpdate.js.map