diff --git a/docs/consensus_key.md b/docs/consensus_key.md index bda600b95d..af9989bef8 100644 --- a/docs/consensus_key.md +++ b/docs/consensus_key.md @@ -3,7 +3,7 @@ title: Consensus Keys author: Davis Sawali & Hui-An Yang --- -The "consensus key" feature allows bakers to use a different key, called the consensus key. It will allow for baking and signing consensus operations (i.e. preattestation/preendorsements and attestation/endorsements). For more detailed information on consensus keys, refer to [this documentation](https://tezos.gitlab.io/protocols/015_lima.html?highlight=update%20consensus%20key#consensus-key) +The "consensus key" feature allows bakers to use a different key, called the consensus key. It will allow for baking and signing consensus operations (i.e. preattestation and attestation). For more detailed information on consensus keys, refer to [this documentation](https://tezos.gitlab.io/protocols/015_lima.html?highlight=update%20consensus%20key#consensus-key) Starting from Lima protocol, these 2 new operations will be available: diff --git a/example/example-streamer-custom-retry-logic.ts b/example/example-streamer-custom-retry-logic.ts index 4a5194bb0b..0c1c40c1b2 100644 --- a/example/example-streamer-custom-retry-logic.ts +++ b/example/example-streamer-custom-retry-logic.ts @@ -24,16 +24,12 @@ async function example() { and: [{ source: 'tz2TSvNTh2epDMhZHrw73nV9piBX7kLZ9K9m' }, { kind: 'attestation' }] } - const bakerEndorsementFilter = { - and: [{ source: 'tz2TSvNTh2epDMhZHrw73nV9piBX7kLZ9K9m' }, { kind: 'endorsement' }] - } - const bakerDelegation = { and: [{ destination: 'tz2TSvNTh2epDMhZHrw73nV9piBX7kLZ9K9m' }, { kind: 'delegation' }] } tezos.stream.subscribeOperation({ - or: [bakerAttestationFilter, bakerEndorsementFilter, bakerDelegation] + or: [bakerAttestationFilter, bakerDelegation] }) } diff --git a/example/example-streamer.ts b/example/example-streamer.ts index 91d61bee55..823efdd694 100644 --- a/example/example-streamer.ts +++ b/example/example-streamer.ts @@ -10,16 +10,12 @@ async function example() { and: [{ source: 'tz1bQMn5xYFbX6geRxqvuAiTywsCtNywawxH' }, { kind: 'attestation' }] } - const bakerEndorsementFilter = { - and: [{ source: 'tz1bQMn5xYFbX6geRxqvuAiTywsCtNywawxH' }, { kind: 'endorsement' }] - } - const bakerDelegation = { and: [{ destination: 'tz1bQMn5xYFbX6geRxqvuAiTywsCtNywawxH' }, { kind: 'delegation' }] } const sub = tezos.stream.subscribeOperation({ - or: [bakerAttestationFilter, bakerEndorsementFilter, bakerDelegation] + or: [bakerAttestationFilter, bakerDelegation] }) sub.on('data', console.log) diff --git a/packages/taquito-rpc/src/rpc-client-interface.ts b/packages/taquito-rpc/src/rpc-client-interface.ts index e0d58341c6..850b66081b 100644 --- a/packages/taquito-rpc/src/rpc-client-interface.ts +++ b/packages/taquito-rpc/src/rpc-client-interface.ts @@ -55,7 +55,7 @@ import { export interface RPCOptions { block: string; - version?: 0 | 1 | '0' | '1'; + version?: 1 | '1'; } export const defaultChain = 'main'; diff --git a/packages/taquito-rpc/src/rpc-client-modules/rpc-cache.ts b/packages/taquito-rpc/src/rpc-client-modules/rpc-cache.ts index 16877277b0..1cda10c31d 100644 --- a/packages/taquito-rpc/src/rpc-client-modules/rpc-cache.ts +++ b/packages/taquito-rpc/src/rpc-client-modules/rpc-cache.ts @@ -641,8 +641,8 @@ export class RpcClientCache implements RpcClientInterface { * @param options contains generic configuration for rpc calls to specified block (default to head) and version. * @description All the information about a block * @see https://tezos.gitlab.io/active/rpc.html#get-block-id - * @example getBlock() will default to `/main/chains/block/head?version=0` which shows { kind: endorsement } - * @example getBlock({ block: 'head~2', version: 1 }) will return an offset of 2 from head blocks and shows { kind: attestation } + * @example getBlock() will default to `/main/chains/block/head?version=1` + * @example getBlock({ block: 'head~2') will return an offset of 2 from head blocks * @example getBlock({ block: 'BL8fTiWcSxWCjiMVnDkbh6EuhqVPZzgWheJ2dqwrxYRm9AephXh~2' }) will return an offset of 2 blocks from given block hash.. */ async getBlock({ block }: RPCOptions = defaultRPCOptions): Promise { @@ -1272,7 +1272,7 @@ export class RpcClientCache implements RpcClientInterface { /** * @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint) - * @param args has 5 optional properties. We support version 2 + * @param args has 5 optional properties * @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined } */ async getPendingOperations( diff --git a/packages/taquito-rpc/src/taquito-rpc.ts b/packages/taquito-rpc/src/taquito-rpc.ts index 3c9de0e535..f9ec7a08eb 100644 --- a/packages/taquito-rpc/src/taquito-rpc.ts +++ b/packages/taquito-rpc/src/taquito-rpc.ts @@ -619,8 +619,8 @@ export class RpcClient implements RpcClientInterface { * @param options contains generic configuration for rpc calls to specified block (default to head) and version. * @description All the information about a block * @see https://tezos.gitlab.io/active/rpc.html#get-block-id - * @example getBlock() will default to `/main/chains/block/head?version=1` which shows { kind: attestation } - * @example getBlock({ block: 'head~2', version: 0 }) will return an offset of 2 from head blocks and shows { kind: endorsement } + * @example getBlock() will default to `/main/chains/block/head?version=1` + * @example getBlock({ block: 'head~2' }) will return an offset of 2 from head blocks * @example getBlock({ block: 'BL8fTiWcSxWCjiMVnDkbh6EuhqVPZzgWheJ2dqwrxYRm9AephXh~2' }) will return an offset of 2 blocks from given block hash.. */ async getBlock({ block, version }: RPCOptions = defaultRPCOptions): Promise { @@ -1215,7 +1215,7 @@ export class RpcClient implements RpcClientInterface { /** * @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint) - * @param args has 5 optional properties. We support version 2 + * @param args has 5 optional properties * @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined } * @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/paris-mempool-openapi-rc.json */ diff --git a/packages/taquito-rpc/test/data/rpc-responses.ts b/packages/taquito-rpc/test/data/rpc-responses.ts index d8af80159e..223d3f6964 100644 --- a/packages/taquito-rpc/test/data/rpc-responses.ts +++ b/packages/taquito-rpc/test/data/rpc-responses.ts @@ -2,3427 +2,771 @@ import BigNumber from 'bignumber.js'; export const rpcUrl = 'rpcTest'; export const blockResponse = { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'BMUMMDZRvvTfLrpmtYMUtYgk498WssaSfNnpkWwEiL7GNTwUYus', + protocol: 'PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi', + chain_id: 'NetXXWAHLEvre9b', + hash: 'BLauzww5KwkaBTuPjxANENMHHR4BapJ2G9B86z2bsZHHi5oKanb', header: { - level: 536085, - proto: 2, - predecessor: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - timestamp: '2021-10-04T18:11:32Z', + level: 989795, + proto: 1, + predecessor: 'BL2Ba8XNJYRTHUjapPQYNxuymQNA2u2PWhsuEXRrTT9pvEm9E65', + timestamp: '2024-09-06T20:47:46Z', validation_pass: 4, - operations_hash: 'LLoZRH5DQMZiuE5eZ588fFC9JkL7qN8QjMdTUWQAHcAut2BmoUGZM', - fitness: ['01', '0000000000082e14'], - context: 'CoWCv7EjSWa6naU4fonnAcSSDDRjq9ddgdC13nuBdfR5x9xnR1sR', - priority: 0, - proof_of_work_nonce: 'bc2cc86f726c0000', - liquidity_baking_escape_vote: false, + operations_hash: 'LLoaKUBDXGeocTaJiuyb3w4d7JzHs419R7B6HFpMqQTwMpkdfcRq8', + fitness: ['02', '000f1a63', '', 'ffffffff', '00000000'], + context: 'CoWHYezPfU43VGjBjEyxN4f2hdGq73ghasPgWHzhJN9aGYU2W8H6', + payload_hash: 'vh2ifehMZB2C7GFb2M4YycExTMWAY5PnDC4PoPtDmWh7yNNVbfLj', + payload_round: 0, + proof_of_work_nonce: '1a991a0300000000', + liquidity_baking_toggle_vote: 'on', + adaptive_issuance_vote: 'pass', signature: - 'sigPoYZryqKDksRqXpfby9eDfx6SbaLAq2vwLVnWJNrv73JrfAwAgiM1mCZrR7UaqEwvuR48QRJfj2FW6dCFAPynmJbgjysg', + 'sigWZtc4cGRxY7Fm1uPWFqHLyZYTgouUvAyTFfPLtE669VGezRNpfLXuxjUrU4DjviZjJcQe59RvNE4wLj1zEXpYsmwF6AXs', }, metadata: { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - next_protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', + protocol: 'PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi', + next_protocol: 'PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi', test_chain_status: { status: 'not_running' }, max_operations_ttl: 120, max_operation_data_length: 32768, - max_block_header_length: 239, + max_block_header_length: 289, max_operation_list_length: [ { max_size: 4194304, max_op: 2048 }, { max_size: 32768 }, { max_size: 135168, max_op: 132 }, { max_size: 524288 }, ], - baker: 'tz1RomaiWJV3NFDZWTMVR2aEeHknsn3iF5Gi', + proposer: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX', + baker: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX', level_info: { - level: 536085, - level_position: 536084, - cycle: 131, - cycle_position: 3604, + level: 989795, + level_position: 989794, + cycle: 7732, + cycle_position: 98, expected_commitment: false, }, voting_period_info: { - voting_period: { index: 26, kind: 'proposal', start_position: 532481 }, - position: 3603, - remaining: 16876, + voting_period: { index: 7732, kind: 'proposal', start_position: 989696 }, + position: 98, + remaining: 29, }, nonce_hash: null, - consumed_gas: '108015000', deactivated: [], balance_updates: [ + { + kind: 'accumulator', + category: 'block fees', + change: '-437', + origin: 'block', + }, + { + kind: 'contract', + contract: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX', + change: '437', + origin: 'block', + }, + { + kind: 'minted', + category: 'baking rewards', + change: '-156420503', + origin: 'block', + }, + { + kind: 'freezer', + category: 'deposits', + staker: { baker_own_stake: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX' }, + change: '156420503', + origin: 'block', + }, + { + kind: 'minted', + category: 'baking rewards', + change: '-156420503', + origin: 'block', + }, + { + kind: 'freezer', + category: 'deposits', + staker: { delegate: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX' }, + change: '156420503', + origin: 'block', + }, + { + kind: 'minted', + category: 'baking rewards', + change: '-244566', + origin: 'block', + }, { kind: 'contract', - contract: 'tz1RomaiWJV3NFDZWTMVR2aEeHknsn3iF5Gi', - change: '-640000000', + contract: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX', + change: '244566', + origin: 'block', + }, + { + kind: 'minted', + category: 'baking bonuses', + change: '-156325272', origin: 'block', }, { kind: 'freezer', category: 'deposits', - delegate: 'tz1RomaiWJV3NFDZWTMVR2aEeHknsn3iF5Gi', - cycle: 131, - change: '640000000', + staker: { baker_own_stake: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX' }, + change: '156325272', + origin: 'block', + }, + { + kind: 'minted', + category: 'baking bonuses', + change: '-156325272', origin: 'block', }, { kind: 'freezer', - category: 'rewards', - delegate: 'tz1RomaiWJV3NFDZWTMVR2aEeHknsn3iF5Gi', - cycle: 131, - change: '16093750', + category: 'deposits', + staker: { delegate: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX' }, + change: '156325272', + origin: 'block', + }, + { + kind: 'minted', + category: 'baking bonuses', + change: '-244417', + origin: 'block', + }, + { + kind: 'contract', + contract: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX', + change: '244417', origin: 'block', }, ], - liquidity_baking_escape_ema: 281925, + liquidity_baking_toggle_ema: 2550, + adaptive_issuance_vote_ema: 2634186, + adaptive_issuance_activation_cycle: 0, implicit_operations_results: [ { kind: 'transaction', storage: [ - { int: '81141010' }, - { int: '1004154556389' }, - { int: '87443' }, + { int: '1' }, + { int: '116095517093' }, + { int: '100' }, { bytes: '01e927f00ef734dfc85919635e9afc9166c83ef9fc00' }, { bytes: '0115eb0104481a6d7921160bc982c5e0a561cd8a3a00' }, ], balance_updates: [ + { + kind: 'minted', + category: 'subsidy', + change: '-583333', + origin: 'subsidy', + }, { kind: 'contract', contract: 'KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5', - change: '2500000', + change: '583333', origin: 'subsidy', }, ], - consumed_gas: '2118', - consumed_milligas: '2117300', - storage_size: '4636', + consumed_milligas: '206532', + storage_size: '4632', }, ], + proposer_consensus_key: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX', + baker_consensus_key: 'tz1fLH7NNTTshW2zycQ3rFJ8ZPjcxp9mXboX', + consumed_milligas: '277000', + dal_attestation: '0', }, operations: [ [ { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'ooK6Fj6pPV8LMfuuo9CTTyDzd28CRiRzC1UFzwxrvuWCtfiuBHA', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigQigTJyznbECHxo3sokWyvsMX3GdUWhfND76bhpdQgrmj8MLcVpTQTudg8T7dswKAm4wVq9dXx3sdGiwnz1tWwatJJ2JGP', - }, - slot: 7, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1NFs6yP2sXd5vAAbR43bbDRpV2nahDZope', - change: '-62500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1NFs6yP2sXd5vAAbR43bbDRpV2nahDZope', - cycle: 131, - change: '62500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1NFs6yP2sXd5vAAbR43bbDRpV2nahDZope', - cycle: 131, - change: '1953125', - origin: 'block', - }, - ], - delegate: 'tz1NFs6yP2sXd5vAAbR43bbDRpV2nahDZope', - slots: [ - 7, 26, 28, 31, 52, 55, 56, 57, 73, 81, 90, 100, 116, 137, 139, 141, 150, 155, 194, - 204, 209, 219, 226, 240, 255, - ], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'opVPpVtkcwWYW3AaKCLYgLXDLVteewJxv1mqvRKJxiBVx4hR3Ld', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigucwWZSCHugH3w3g8Mm9k8C2vLQfCU2CixgRTLSQF2xDg5Xf6VqEDB2snUJQjZHFD4EFejrAuQhcGFJ2j729ABYAxgQdZV', - }, - slot: 25, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1TGKSrZrBpND3PELJ43nVdyadoeiM1WMzb', - change: '-12500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1TGKSrZrBpND3PELJ43nVdyadoeiM1WMzb', - cycle: 131, - change: '12500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1TGKSrZrBpND3PELJ43nVdyadoeiM1WMzb', - cycle: 131, - change: '390625', - origin: 'block', - }, - ], - delegate: 'tz1TGKSrZrBpND3PELJ43nVdyadoeiM1WMzb', - slots: [25, 49, 59, 143, 241], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'ooV7jeBXUjeAXb7sB6UbiPrFeadyUWAQjyVbiezYV4dQ2jh7nXZ', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigjgqeWJXQGxt7nuUJy9ZfJQrUyoMVgi34YKsCmvuKczKc198x6izoCgMGRVb7iTqDgqzEKcPFeLJpW6jxzFJ5AGXgCDPAK', - }, - slot: 1, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', - change: '-37500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', - cycle: 131, - change: '37500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', - cycle: 131, - change: '1171875', - origin: 'block', - }, - ], - delegate: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', - slots: [1, 12, 19, 20, 32, 46, 66, 93, 129, 146, 174, 176, 185, 187, 236], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'ooAcSPWvGdxWHs9axWkkUv8auevgo5S65y6BGuqKUyzxmQtAkkw', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigshnJHvMozfhProNP2iBV1baiUoUGoZC9yc7XyKk3TKBHZ6pJyLb8vWUcGpvqPPv732HzB5px7QsBm9KVm2n9TgERgCDmB', - }, - slot: 62, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1Qr3aFcxjRGu84PfDEtqQSM2PQutSn635P', - change: '-5000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1Qr3aFcxjRGu84PfDEtqQSM2PQutSn635P', - cycle: 131, - change: '5000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1Qr3aFcxjRGu84PfDEtqQSM2PQutSn635P', - cycle: 131, - change: '156250', - origin: 'block', - }, - ], - delegate: 'tz1Qr3aFcxjRGu84PfDEtqQSM2PQutSn635P', - slots: [62, 102], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'onrL2x7aon3qi1p3wsroWnRfx8KigzYNQg5S2EYyB3k7N72Nqcy', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', + protocol: 'PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi', + chain_id: 'NetXXWAHLEvre9b', + hash: 'opNoTGfrSBj1k2deQvh5mZGXm6tBhBZz5YHRQsxStTFrjWjwV3q', + branch: 'BLQNVpuLN5vi7Js8QML9jPBr61X3QwW2h8dH9ptp33hxuBwzDpJ', contents: [ { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigWwT3mRjCzfvxy65Nd76yHDH6MBwDw1RhhMf4miDp6MvtBjCvcgXhL7z4WM1vZrGEB74UiAbnJzNCSJ3KDwNFwBbU2kpU4', - }, - slot: 3, + kind: 'attestation', + slot: 0, + level: 989794, + round: 0, + block_payload_hash: 'vh3Y2ysro9mSgkGmB1uNmoGho98gCTF3ycSfSKGXGrYEowXbDraa', metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD', - change: '-62500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD', - cycle: 131, - change: '62500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD', - cycle: 131, - change: '1953125', - origin: 'block', - }, - ], - delegate: 'tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD', - slots: [ - 3, 6, 13, 21, 37, 63, 68, 86, 94, 110, 123, 133, 134, 152, 169, 170, 208, 212, 213, - 215, 218, 221, 223, 232, 254, - ], + delegate: 'tz1Zt8QQ9aBznYNk5LUBjtME9DuExomw9YRs', + consensus_power: 2558, + consensus_key: 'tz1Zt8QQ9aBznYNk5LUBjtME9DuExomw9YRs', }, }, ], + signature: + 'sigXErmHKcQpsTZ9tEc7MtLjPde16tZDwPtbvCdBJum5S55tRSQuoTQ88CRgYz1Yw1ap5F5PhjGTpqq5GdGp3MFZonkZLxUo', }, + ], + [], + [], + [ { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'onseUqV43jrnEQDWV6S7pNEWAQ1W1jVwDrtjXLXUMMYqLJUaCKo', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', + protocol: 'PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi', + chain_id: 'NetXXWAHLEvre9b', + hash: 'opS8fwbeZEv9riec1GzYCSuxtBEVeuJzLhwtRV7DAsR3BurRRRV', + branch: 'BLQNVpuLN5vi7Js8QML9jPBr61X3QwW2h8dH9ptp33hxuBwzDpJ', contents: [ { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigeeqviP7cPW2SdBNx53trnr9zCDTJKZd2ixZGTg5qz17CcEJaHZgQZjcEcFcy2EnEDusA4m9yeT9JK24fipu9XyiprZ6pH', - }, - slot: 184, + kind: 'smart_rollup_add_messages', + source: 'tz1NxvcLNywVH5jkZgqKnFbGyn9rjp5Rkkgi', + fee: '437', + counter: '740739', + gas_limit: '277', + storage_limit: '0', + message: [ + '006f3183e65b011f6c0f0bc9f5665aeca477e6ad8103f897adeca08a42b0140371b7d91998994355379608669f83503adfe3527153d485e0018dd4c0c088696adb6600000000a095ba080000000000000000000000000000000000000000000000000000000000820100820000b840d177389e13cbc219d847dfa13fe66762647f55a369c0f1af75331f7045ed05d2ee87f2d76699fcdbddbdd63fcce6e5a656e295c17848f24c7662eeee57e8d806', + ], metadata: { balance_updates: [ { kind: 'contract', - contract: 'tz1LKV2Hb8XezQXFqCmsKXYDc8BWQkvFnzcP', - change: '-2500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1LKV2Hb8XezQXFqCmsKXYDc8BWQkvFnzcP', - cycle: 131, - change: '2500000', + contract: 'tz1NxvcLNywVH5jkZgqKnFbGyn9rjp5Rkkgi', + change: '-437', origin: 'block', }, { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1LKV2Hb8XezQXFqCmsKXYDc8BWQkvFnzcP', - cycle: 131, - change: '78125', + kind: 'accumulator', + category: 'block fees', + change: '437', origin: 'block', }, ], - delegate: 'tz1LKV2Hb8XezQXFqCmsKXYDc8BWQkvFnzcP', - slots: [184], + operation_result: { status: 'applied', consumed_milligas: '176870' }, }, }, ], + signature: + 'sigoadYdMRfktcFDDMtKrhper43S4fSKF6MtkJDkTjtY2EPG9Wz7oGN5XqjqfBbLNMcpowsyYWirCYQKd28vcTxX55RC8zN2', }, + ], + ], +}; +export const blockHash = 'BlockHash'; +export const liveBlocks = [ + 'BKiHeQzuKM5quBsgVL25UDFXKcZyaTt26AQUtUkbA4Vh3dAQY21', + 'BKiboc2xTLtbCXt6AWX2BpR4km41onVrLmhFSTjYUA2iWKBwSTH', +]; +export const balance = new BigNumber(4138876344398); +export const storage = { prim: 'Pair', args: [{ int: '0' }, { int: '1' }] }; +export const script = { + code: [ + { prim: 'parameter', args: [] }, + { prim: 'storage', args: [] }, + { prim: 'code', args: [] }, + ], + storage: { prim: 'Pair', args: [] }, +}; +export const contract = { + balance: new BigNumber(765), + script: { + code: [], + storage: { prim: 'Pair', args: [] }, + }, +}; +export const unstakeRequestsResponse = { + finalizable: [ + { + delegate: 'tz1PZY3tEWmXGasYeehXYqwXuw2Z3iZ6QDnA', + cycle: 10, + amount: new BigNumber('500000000'), + }, + ], + unfinalizable: { + delegate: 'tz1PZY3tEWmXGasYeehXYqwXuw2Z3iZ6QDnA', + requests: [ { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'ooFD5AWihGns7RaZHKqyiJPFDAYuCpXJGT72p6CCig4EQsYm9tT', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigiDTLARKGSKx1KnhxMdhxV7h4NnChw3gzYy8fJv9C58vPD9mCuKsvCrRGUk79mCqaxudyUu5T3qxWkuJqugJysSeg45KBT', - }, - slot: 5, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1RomaiWJV3NFDZWTMVR2aEeHknsn3iF5Gi', - change: '-80000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1RomaiWJV3NFDZWTMVR2aEeHknsn3iF5Gi', - cycle: 131, - change: '80000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1RomaiWJV3NFDZWTMVR2aEeHknsn3iF5Gi', - cycle: 131, - change: '2500000', - origin: 'block', - }, - ], - delegate: 'tz1RomaiWJV3NFDZWTMVR2aEeHknsn3iF5Gi', - slots: [ - 5, 18, 22, 24, 51, 77, 79, 95, 98, 115, 140, 145, 151, 157, 162, 163, 167, 171, 181, - 188, 189, 195, 196, 198, 202, 205, 207, 227, 231, 238, 242, 252, - ], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'ooqKhCA49xFX9wwyU3LmgwJZu8qwfgRQNHHjaoA45QkmAR8rxmW', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigkD1y57jWwdGyzwgHXZoEFsNuJCcWsC4SRpMeMiAzFbgf5G3ATQoZF2pCtCdfxvXYu1nDixosqJvqttiX7hNNWWw7H5H3o', - }, - slot: 16, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - change: '-45000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - cycle: 131, - change: '45000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - cycle: 131, - change: '1406250', - origin: 'block', - }, - ], - delegate: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - slots: [ - 16, 35, 42, 53, 76, 80, 85, 87, 91, 125, 126, 127, 179, 186, 214, 225, 239, 245, - ], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'ooiBEZGpe15vBVEJBD7f42NhtXUVyMgZFJ6Kq6Rz9x59acRjfqC', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigo63PyYEcmFmGoWiLoY7aChpqq4AzE3u6EyeMbX5dfmSyFPqrbKJgTrH4Pg9ELZJfFWW9DmurYw77nqmH529wLYxVq43ec', - }, - slot: 201, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1PUv7oRg5xpMf4nFewZrtRtnmCizW2ETtU', - change: '-2500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1PUv7oRg5xpMf4nFewZrtRtnmCizW2ETtU', - cycle: 131, - change: '2500000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1PUv7oRg5xpMf4nFewZrtRtnmCizW2ETtU', - cycle: 131, - change: '78125', - origin: 'block', - }, - ], - delegate: 'tz1PUv7oRg5xpMf4nFewZrtRtnmCizW2ETtU', - slots: [201], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'oogyZfDdZPWFxuyRAQs1J53CxmxUbnd6Q1WixifHKpnicphrEbb', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigpznVMjV53auoAPqxYxkYANxbrYaMmuq242ueQqo1NijaQvZRUEZP5sFwMLVpLGRUzHEkrYkX6NGFm1RfKKb4yBmBjrHr5', - }, - slot: 15, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1T8UYSbVuRm6CdhjvwCfXsKXb4yL9ai9Q3', - change: '-75000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1T8UYSbVuRm6CdhjvwCfXsKXb4yL9ai9Q3', - cycle: 131, - change: '75000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1T8UYSbVuRm6CdhjvwCfXsKXb4yL9ai9Q3', - cycle: 131, - change: '2343750', - origin: 'block', - }, - ], - delegate: 'tz1T8UYSbVuRm6CdhjvwCfXsKXb4yL9ai9Q3', - slots: [ - 15, 23, 30, 34, 38, 45, 60, 61, 64, 67, 70, 75, 78, 89, 92, 104, 112, 114, 122, 124, - 138, 149, 160, 175, 191, 197, 199, 230, 233, 234, - ], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'oozpKKz7XcaihZhSsEMiLcUPvGxjZe74yz1hrNzvYg9W1NNCjTx', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigqhueAmzzAArEiHLnwQUpLEVcz8wWcn2qxfMKmRrGRg2cn6k4q17eBaU9bHDepsf1jnGN3cDHrTfbas58BW7pbUoCJgHUh', - }, - slot: 120, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1VpvtSaSxKvykrqajFJTZqCXgoVJ5cKaM1', - change: '-5000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1VpvtSaSxKvykrqajFJTZqCXgoVJ5cKaM1', - cycle: 131, - change: '5000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1VpvtSaSxKvykrqajFJTZqCXgoVJ5cKaM1', - cycle: 131, - change: '156250', - origin: 'block', - }, - ], - delegate: 'tz1VpvtSaSxKvykrqajFJTZqCXgoVJ5cKaM1', - slots: [120, 131], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'onwE9jGH8LXetQmPTHekChAnecpcmV92md8WMSgTcjok6DUDtJ9', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigfTpvZPXMb2ur3PhQ2w6N93auNHft7swUHdf4QsizPMgbKHxNFV4TU8MmHXQ5ZivMkeCAbwBEdDApAw25uf9vzzPuAFoAK', - }, - slot: 8, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1VWasoyFGAWZt5K2qZRzP3cWzv3z7MMhP8', - change: '-65000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1VWasoyFGAWZt5K2qZRzP3cWzv3z7MMhP8', - cycle: 131, - change: '65000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1VWasoyFGAWZt5K2qZRzP3cWzv3z7MMhP8', - cycle: 131, - change: '2031250', - origin: 'block', - }, - ], - delegate: 'tz1VWasoyFGAWZt5K2qZRzP3cWzv3z7MMhP8', - slots: [ - 8, 10, 11, 33, 41, 58, 99, 107, 108, 111, 118, 128, 147, 148, 154, 156, 158, 168, - 172, 183, 192, 228, 237, 244, 250, 253, - ], - }, - }, - ], - }, - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'oo7qUvuxaxUthTzfbTYk56TPBQ1V59iycoTmbTpPYGPENyuR7Fi', - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - contents: [ - { - kind: 'endorsement_with_slot', - endorsement: { - branch: 'BM44sPfEofA59iibf5v5AC1wB1BH2kYi9YsKXHmQeDqZFkMSDD7', - operations: { kind: 'endorsement', level: 536084 }, - signature: - 'sigeiWyjufSMaWBEHqotERDGUSFtTLimnFhTH4gm1Pi8qB7hrz41czWXquqHGcVAdt8a3Z96o6Ktg5SkMJ9cyr6qFq8ccmTM', - }, - slot: 9, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1SwJwrKe8H1yi6KnYKCYkVHPApJRnZcHsa', - change: '-60000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1SwJwrKe8H1yi6KnYKCYkVHPApJRnZcHsa', - cycle: 131, - change: '60000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1SwJwrKe8H1yi6KnYKCYkVHPApJRnZcHsa', - cycle: 131, - change: '1875000', - origin: 'block', - }, - ], - delegate: 'tz1SwJwrKe8H1yi6KnYKCYkVHPApJRnZcHsa', - slots: [ - 9, 14, 27, 43, 54, 83, 84, 96, 101, 105, 113, 136, 144, 153, 159, 164, 180, 182, - 203, 211, 224, 247, 249, 251, - ], - }, - }, - ], + cycle: 11, + amount: new BigNumber('200000000'), }, ], - [], - [], - [ - { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'ooybqGUDKq3QUbZVe4qZ1oLx2GhTqZ6VdVTuA7SZDfE5B2jbHRd', - branch: 'BLEzWSy1Aze5Enuv3KimDvqZbAXbzSHxQeRDztN6tvXknfTCAus', - contents: [ - { - kind: 'transaction', - source: 'tz1cpnaaG6FkPAUcrsj45zhYYSPMvJnxyc59', - fee: '0', - counter: '703827', - gas_limit: '3422', - storage_limit: '67', - amount: '0', - destination: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL', - parameters: { - entrypoint: 'update_operators', - value: [ - { - prim: 'Left', - args: [ - { - prim: 'Pair', - args: [ - { string: 'tz1cpnaaG6FkPAUcrsj45zhYYSPMvJnxyc59' }, - { - prim: 'Pair', - args: [{ string: 'KT1PrWB2PSwWNzbfpA9SJbUaHXxCzbLSJspm' }, { int: '1' }], - }, - ], - }, - ], - }, - ], - }, - metadata: { - balance_updates: [], - operation_result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20440' }, { int: '20441' }] }, - { prim: 'Pair', args: [{ int: '20442' }, { int: '20443' }] }, - ], - }, - big_map_diff: [ - { - action: 'update', - big_map: '20442', - key_hash: 'exprtpmtn8bL4jrTW2AfMZJ9p2yx1k9xMkN5f7EWhxtUVPtvutxqNL', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { - prim: 'Pair', - args: [ - { bytes: '01a783b18821ce1f502c8a1c2fd9761ad21c1391d600' }, - { int: '1' }, - ], - }, - ], - }, - value: { prim: 'Unit' }, - }, - ], - balance_updates: [ - { - kind: 'contract', - contract: 'tz1cpnaaG6FkPAUcrsj45zhYYSPMvJnxyc59', - change: '-16750', - origin: 'block', - }, - ], - consumed_gas: '3322', - consumed_milligas: '3321239', - storage_size: '48520', - paid_storage_size_diff: '67', - lazy_storage_diff: [ - { kind: 'big_map', id: '20443', diff: { action: 'update', updates: [] } }, - { - kind: 'big_map', - id: '20442', - diff: { - action: 'update', - updates: [ - { - key_hash: 'exprtpmtn8bL4jrTW2AfMZJ9p2yx1k9xMkN5f7EWhxtUVPtvutxqNL', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { - prim: 'Pair', - args: [ - { bytes: '01a783b18821ce1f502c8a1c2fd9761ad21c1391d600' }, - { int: '1' }, - ], - }, - ], - }, - value: { prim: 'Unit' }, - }, - ], - }, - }, - { kind: 'big_map', id: '20441', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20440', diff: { action: 'update', updates: [] } }, - ], - }, - }, - }, - { - kind: 'transaction', - source: 'tz1cpnaaG6FkPAUcrsj45zhYYSPMvJnxyc59', - fee: '0', - counter: '703828', - gas_limit: '101201', - storage_limit: '70', - amount: '0', - destination: 'KT1PrWB2PSwWNzbfpA9SJbUaHXxCzbLSJspm', - parameters: { - entrypoint: 'swap_exact_for_tokens', - value: { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { string: 'tz1cpnaaG6FkPAUcrsj45zhYYSPMvJnxyc59' }, - { int: '5000000000' }, - ], - }, - { - prim: 'Pair', - args: [{ int: '14146908' }, { string: '2022-01-28T11:57:44.601Z' }], - }, - ], - }, - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { string: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL' }, - { prim: 'Some', args: [{ int: '1' }] }, - ], - }, - { - prim: 'Pair', - args: [ - { string: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL' }, - { prim: 'Some', args: [{ int: '0' }] }, - ], - }, - ], - }, - ], - }, - }, - metadata: { - balance_updates: [], - operation_result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Some', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { prim: 'None' }, - ], - }, - { - prim: 'Pair', - args: [ - { prim: 'None' }, - { prim: 'Right', args: [{ prim: 'Unit' }] }, - ], - }, - ], - }, - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600', - }, - { prim: 'Some', args: [{ int: '1' }] }, - ], - }, - { - prim: 'Pair', - args: [ - { - bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600', - }, - { prim: 'Some', args: [{ int: '0' }] }, - ], - }, - ], - }, - { prim: 'None' }, - ], - }, - ], - }, - ], - }, - { bytes: '012582f9db72407f07e78f065db7965ff42c46248700' }, - ], - }, - { prim: 'Pair', args: [{ int: '20669' }, { int: '20670' }] }, - ], - }, - big_map_diff: [], - consumed_gas: '12665', - consumed_milligas: '12664013', - storage_size: '32990', - lazy_storage_diff: [ - { kind: 'big_map', id: '20670', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20669', diff: { action: 'update', updates: [] } }, - ], - }, - internal_operation_results: [ - { - kind: 'transaction', - source: 'KT1PrWB2PSwWNzbfpA9SJbUaHXxCzbLSJspm', - nonce: 0, - amount: '0', - destination: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - parameters: { - entrypoint: 'get_reserves', - value: { - bytes: - '01a783b18821ce1f502c8a1c2fd9761ad21c1391d60072657365727665735f63616c6c6261636b', - }, - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20832' }, { int: '20833' }] }, - { prim: 'Pair', args: [{ int: '20834' }, { int: '20835' }] }, - ], - }, - { int: '20836' }, - ], - }, - { prim: 'Pair', args: [{ prim: 'None' }, { int: '20837' }] }, - ], - }, - { prim: 'Pair', args: [{ int: '2369921' }, { int: '976068754' }] }, - { int: '1633368712' }, - { int: '3520039054386878' }, - ], - { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { int: '9999515636866' }, - { int: '35198685566720594775323444348' }, - ], - }, - { - prim: 'Pair', - args: [ - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '1' }] }, - ], - }, - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '0' }] }, - ], - { bytes: '012582f9db72407f07e78f065db7965ff42c46248700' }, - ], - }, - ], - }, - big_map_diff: [], - consumed_gas: '9288', - consumed_milligas: '9287559', - storage_size: '19227', - lazy_storage_diff: [ - { kind: 'big_map', id: '20837', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20836', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20835', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20834', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20833', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20832', diff: { action: 'update', updates: [] } }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - nonce: 2, - amount: '0', - destination: 'KT1PrWB2PSwWNzbfpA9SJbUaHXxCzbLSJspm', - parameters: { - entrypoint: 'reserves_callback', - value: { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [{ int: '3520039054386878' }, { int: '9999515636866' }], - }, - { int: '188166353164099' }, - ], - }, - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Some', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f', - }, - { prim: 'Some', args: [{ int: '3520039054386878' }] }, - ], - }, - { - prim: 'Pair', - args: [ - { prim: 'Some', args: [{ int: '9999515636866' }] }, - { prim: 'Left', args: [{ prim: 'Unit' }] }, - ], - }, - ], - }, - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - bytes: - '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600', - }, - { prim: 'Some', args: [{ int: '1' }] }, - ], - }, - { - prim: 'Pair', - args: [ - { - bytes: - '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600', - }, - { prim: 'Some', args: [{ int: '0' }] }, - ], - }, - ], - }, - { prim: 'Some', args: [{ int: '188166353164099' }] }, - ], - }, - ], - }, - ], - }, - { bytes: '012582f9db72407f07e78f065db7965ff42c46248700' }, - ], - }, - { prim: 'Pair', args: [{ int: '20669' }, { int: '20670' }] }, - ], - }, - big_map_diff: [], - consumed_gas: '9479', - consumed_milligas: '9478157', - storage_size: '33015', - lazy_storage_diff: [ - { kind: 'big_map', id: '20670', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20669', diff: { action: 'update', updates: [] } }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1PrWB2PSwWNzbfpA9SJbUaHXxCzbLSJspm', - nonce: 1, - amount: '0', - destination: 'KT1PrWB2PSwWNzbfpA9SJbUaHXxCzbLSJspm', - parameters: { - entrypoint: 'main_entry', - value: { - prim: 'Left', - args: [ - { - prim: 'Left', - args: [ - { - prim: 'Left', - args: [ - { - prim: 'Right', - args: [ - [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - bytes: - '0000bc82eedf570c81349226f937bed3d3485a2b080f', - }, - { int: '5000000000' }, - ], - }, - { - prim: 'Pair', - args: [{ int: '14146908' }, { int: '1643371064' }], - }, - ], - }, - { - prim: 'Pair', - args: [ - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '1' }] }, - ], - }, - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '0' }] }, - ], - ], - }, - ], - }, - ], - }, - ], - }, - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { prim: 'None' }, - { bytes: '012582f9db72407f07e78f065db7965ff42c46248700' }, - ], - }, - { prim: 'Pair', args: [{ int: '20669' }, { int: '20670' }] }, - ], - }, - big_map_diff: [], - consumed_gas: '11667', - consumed_milligas: '11666798', - storage_size: '32875', - lazy_storage_diff: [ - { kind: 'big_map', id: '20670', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20669', diff: { action: 'update', updates: [] } }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1PrWB2PSwWNzbfpA9SJbUaHXxCzbLSJspm', - nonce: 3, - amount: '0', - destination: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL', - parameters: { - entrypoint: 'transfer', - value: [ - { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - [ - { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { prim: 'Pair', args: [{ int: '1' }, { int: '5000000000' }] }, - ], - }, - ], - ], - }, - ], - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20440' }, { int: '20441' }] }, - { prim: 'Pair', args: [{ int: '20442' }, { int: '20443' }] }, - ], - }, - big_map_diff: [ - { - action: 'update', - big_map: '20440', - key_hash: 'exprtqGiP8vxvoGE35foNVciCmRtuofNsZVinQfSE2SKdQdAvSTcBS', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { int: '1' }, - ], - }, - value: { int: '5000000000' }, - }, - { - action: 'update', - big_map: '20440', - key_hash: 'exprv6HH2WDmykE9AQ5kmXbsZAbEHzr2Wy6Bkt5CCS9U9CEgiNdRJr', - key: { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '1' }, - ], - }, - value: { int: '3520044054386878' }, - }, - ], - consumed_gas: '5018', - consumed_milligas: '5017728', - storage_size: '48520', - lazy_storage_diff: [ - { kind: 'big_map', id: '20443', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20442', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20441', diff: { action: 'update', updates: [] } }, - { - kind: 'big_map', - id: '20440', - diff: { - action: 'update', - updates: [ - { - key_hash: 'exprv6HH2WDmykE9AQ5kmXbsZAbEHzr2Wy6Bkt5CCS9U9CEgiNdRJr', - key: { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '1' }, - ], - }, - value: { int: '3520044054386878' }, - }, - { - key_hash: 'exprtqGiP8vxvoGE35foNVciCmRtuofNsZVinQfSE2SKdQdAvSTcBS', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { int: '1' }, - ], - }, - value: { int: '5000000000' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1PrWB2PSwWNzbfpA9SJbUaHXxCzbLSJspm', - nonce: 4, - amount: '0', - destination: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - parameters: { - entrypoint: 'start_swap', - value: { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { int: '0' }, - ], - }, - { prim: 'Pair', args: [{ int: '14161068' }, { prim: 'None' }] }, - ], - }, - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20832' }, { int: '20833' }] }, - { prim: 'Pair', args: [{ int: '20834' }, { int: '20835' }] }, - ], - }, - { int: '20836' }, - ], - }, - { - prim: 'Pair', - args: [ - { - prim: 'Some', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - bytes: - '0000bc82eedf570c81349226f937bed3d3485a2b080f', - }, - { int: '0' }, - ], - }, - { - prim: 'Pair', - args: [{ int: '14161068' }, { prim: 'None' }], - }, - ], - }, - { - prim: 'Pair', - args: [ - { prim: 'None' }, - { prim: 'Right', args: [{ prim: 'Unit' }] }, - ], - }, - ], - }, - ], - }, - { int: '20837' }, - ], - }, - ], - }, - { prim: 'Pair', args: [{ int: '2369921' }, { int: '976068754' }] }, - { int: '1633368712' }, - { int: '3520039054386878' }, - ], - { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { int: '9999515636866' }, - { int: '35198685566720594775323444348' }, - ], - }, - { - prim: 'Pair', - args: [ - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '1' }] }, - ], - }, - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '0' }] }, - ], - { bytes: '012582f9db72407f07e78f065db7965ff42c46248700' }, - ], - }, - ], - }, - big_map_diff: [], - consumed_gas: '12571', - consumed_milligas: '12570775', - storage_size: '19279', - lazy_storage_diff: [ - { kind: 'big_map', id: '20837', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20836', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20835', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20834', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20833', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20832', diff: { action: 'update', updates: [] } }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - nonce: 5, - amount: '0', - destination: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL', - parameters: { - entrypoint: 'transfer', - value: [ - { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - [ - { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { prim: 'Pair', args: [{ int: '1' }, { int: '0' }] }, - ], - }, - ], - ], - }, - ], - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20440' }, { int: '20441' }] }, - { prim: 'Pair', args: [{ int: '20442' }, { int: '20443' }] }, - ], - }, - big_map_diff: [ - { - action: 'update', - big_map: '20440', - key_hash: 'exprtqGiP8vxvoGE35foNVciCmRtuofNsZVinQfSE2SKdQdAvSTcBS', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { int: '1' }, - ], - }, - value: { int: '5000000000' }, - }, - { - action: 'update', - big_map: '20440', - key_hash: 'exprv6HH2WDmykE9AQ5kmXbsZAbEHzr2Wy6Bkt5CCS9U9CEgiNdRJr', - key: { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '1' }, - ], - }, - value: { int: '3520044054386878' }, - }, - ], - consumed_gas: '4759', - consumed_milligas: '4758619', - storage_size: '48520', - lazy_storage_diff: [ - { kind: 'big_map', id: '20443', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20442', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20441', diff: { action: 'update', updates: [] } }, - { - kind: 'big_map', - id: '20440', - diff: { - action: 'update', - updates: [ - { - key_hash: 'exprv6HH2WDmykE9AQ5kmXbsZAbEHzr2Wy6Bkt5CCS9U9CEgiNdRJr', - key: { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '1' }, - ], - }, - value: { int: '3520044054386878' }, - }, - { - key_hash: 'exprtqGiP8vxvoGE35foNVciCmRtuofNsZVinQfSE2SKdQdAvSTcBS', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { int: '1' }, - ], - }, - value: { int: '5000000000' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - nonce: 6, - amount: '0', - destination: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL', - parameters: { - entrypoint: 'transfer', - value: [ - { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - [ - { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { prim: 'Pair', args: [{ int: '0' }, { int: '14161068' }] }, - ], - }, - ], - ], - }, - ], - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20440' }, { int: '20441' }] }, - { prim: 'Pair', args: [{ int: '20442' }, { int: '20443' }] }, - ], - }, - big_map_diff: [ - { - action: 'update', - big_map: '20440', - key_hash: 'exprtsTQSSJpAVrr1qEA9LRMaNz7zpBH4bpmGGBM8N6JztetYSREov', - key: { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '0' }, - ], - }, - value: { int: '9999501475798' }, - }, - { - action: 'update', - big_map: '20440', - key_hash: 'expruhP7hUgjQpeNgzkjxgBt8Bz3bncenkYmC383MS2UYEsTMYXYaU', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { int: '0' }, - ], - }, - value: { int: '14161068' }, - }, - ], - balance_updates: [ - { - kind: 'contract', - contract: 'tz1cpnaaG6FkPAUcrsj45zhYYSPMvJnxyc59', - change: '-17500', - origin: 'block', - }, - ], - consumed_gas: '4522', - consumed_milligas: '4521387', - storage_size: '48590', - paid_storage_size_diff: '70', - lazy_storage_diff: [ - { kind: 'big_map', id: '20443', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20442', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20441', diff: { action: 'update', updates: [] } }, - { - kind: 'big_map', - id: '20440', - diff: { - action: 'update', - updates: [ - { - key_hash: 'expruhP7hUgjQpeNgzkjxgBt8Bz3bncenkYmC383MS2UYEsTMYXYaU', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { int: '0' }, - ], - }, - value: { int: '14161068' }, - }, - { - key_hash: 'exprtsTQSSJpAVrr1qEA9LRMaNz7zpBH4bpmGGBM8N6JztetYSREov', - key: { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '0' }, - ], - }, - value: { int: '9999501475798' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - nonce: 7, - amount: '0', - destination: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL', - parameters: { - entrypoint: 'balance_of', - value: { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '1' }, - ], - }, - ], - { - bytes: - '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc40062616c616e63655f63616c6c6261636b', - }, - ], - }, - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20440' }, { int: '20441' }] }, - { prim: 'Pair', args: [{ int: '20442' }, { int: '20443' }] }, - ], - }, - big_map_diff: [], - consumed_gas: '5064', - consumed_milligas: '5063541', - storage_size: '48590', - lazy_storage_diff: [ - { kind: 'big_map', id: '20443', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20442', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20441', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20440', diff: { action: 'update', updates: [] } }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL', - nonce: 10, - amount: '0', - destination: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - parameters: { - entrypoint: 'balance_callback', - value: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '1' }, - ], - }, - { int: '3520044054386878' }, - ], - }, - ], - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20832' }, { int: '20833' }] }, - { prim: 'Pair', args: [{ int: '20834' }, { int: '20835' }] }, - ], - }, - { int: '20836' }, - ], - }, - { - prim: 'Pair', - args: [ - { - prim: 'Some', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - bytes: - '0000bc82eedf570c81349226f937bed3d3485a2b080f', - }, - { int: '0' }, - ], - }, - { - prim: 'Pair', - args: [ - { int: '14161068' }, - { - prim: 'Some', - args: [{ int: '3520044054386878' }], - }, - ], - }, - ], - }, - { - prim: 'Pair', - args: [ - { prim: 'None' }, - { - prim: 'Left', - args: [{ prim: 'Left', args: [{ prim: 'Unit' }] }], - }, - ], - }, - ], - }, - ], - }, - { int: '20837' }, - ], - }, - ], - }, - { prim: 'Pair', args: [{ int: '2369921' }, { int: '976068754' }] }, - { int: '1633368712' }, - { int: '3520039054386878' }, - ], - { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { int: '9999515636866' }, - { int: '35198685566720594775323444348' }, - ], - }, - { - prim: 'Pair', - args: [ - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '1' }] }, - ], - }, - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '0' }] }, - ], - { bytes: '012582f9db72407f07e78f065db7965ff42c46248700' }, - ], - }, - ], - }, - big_map_diff: [], - consumed_gas: '7023', - consumed_milligas: '7022609', - storage_size: '19290', - lazy_storage_diff: [ - { kind: 'big_map', id: '20837', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20836', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20835', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20834', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20833', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20832', diff: { action: 'update', updates: [] } }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - nonce: 8, - amount: '0', - destination: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL', - parameters: { - entrypoint: 'balance_of', - value: { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '0' }, - ], - }, - ], - { - bytes: - '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc40062616c616e63655f63616c6c6261636b', - }, - ], - }, - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20440' }, { int: '20441' }] }, - { prim: 'Pair', args: [{ int: '20442' }, { int: '20443' }] }, - ], - }, - big_map_diff: [], - consumed_gas: '5064', - consumed_milligas: '5063529', - storage_size: '48590', - lazy_storage_diff: [ - { kind: 'big_map', id: '20443', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20442', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20441', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20440', diff: { action: 'update', updates: [] } }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL', - nonce: 11, - amount: '0', - destination: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - parameters: { - entrypoint: 'balance_callback', - value: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { bytes: '01728d89975f2119d0bcc6dee11eb7d627b0fe5dc400' }, - { int: '0' }, - ], - }, - { int: '9999501475798' }, - ], - }, - ], - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20832' }, { int: '20833' }] }, - { prim: 'Pair', args: [{ int: '20834' }, { int: '20835' }] }, - ], - }, - { int: '20836' }, - ], - }, - { - prim: 'Pair', - args: [ - { - prim: 'Some', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - bytes: - '0000bc82eedf570c81349226f937bed3d3485a2b080f', - }, - { int: '0' }, - ], - }, - { - prim: 'Pair', - args: [ - { int: '14161068' }, - { - prim: 'Some', - args: [{ int: '3520044054386878' }], - }, - ], - }, - ], - }, - { - prim: 'Pair', - args: [ - { prim: 'Some', args: [{ int: '9999501475798' }] }, - { - prim: 'Left', - args: [{ prim: 'Right', args: [{ prim: 'Unit' }] }], - }, - ], - }, - ], - }, - ], - }, - { int: '20837' }, - ], - }, - ], - }, - { prim: 'Pair', args: [{ int: '2369921' }, { int: '976068754' }] }, - { int: '1633368712' }, - { int: '3520039054386878' }, - ], - { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { int: '9999515636866' }, - { int: '35198685566720594775323444348' }, - ], - }, - { - prim: 'Pair', - args: [ - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '1' }] }, - ], - }, - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '0' }] }, - ], - { bytes: '012582f9db72407f07e78f065db7965ff42c46248700' }, - ], - }, - ], - }, - big_map_diff: [], - consumed_gas: '7025', - consumed_milligas: '7024325', - storage_size: '19298', - lazy_storage_diff: [ - { kind: 'big_map', id: '20837', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20836', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20835', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20834', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20833', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20832', diff: { action: 'update', updates: [] } }, - ], - }, - }, - { - kind: 'transaction', - source: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - nonce: 9, - amount: '0', - destination: 'KT1K2U9q55iPwGJEFyEqfbL3AKhHX4f6UThT', - parameters: { - entrypoint: 'finalize_action', - value: { prim: 'Right', args: [{ prim: 'Unit' }] }, - }, - result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20832' }, { int: '20833' }] }, - { prim: 'Pair', args: [{ int: '20834' }, { int: '20835' }] }, - ], - }, - { int: '20836' }, - ], - }, - { prim: 'Pair', args: [{ prim: 'None' }, { int: '20837' }] }, - ], - }, - { prim: 'Pair', args: [{ int: '2369927' }, { int: '976906563' }] }, - { int: '1633371092' }, - { int: '3520044054386878' }, - ], - { - prim: 'Pair', - args: [ - [ - { - prim: 'Pair', - args: [ - { int: '9999501475798' }, - { int: '35198685566720594775323444348' }, - ], - }, - { - prim: 'Pair', - args: [ - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '1' }] }, - ], - }, - { bytes: '01be8be8d6aa8aa77b26fcdfb58b2d3abc097ba74600' }, - { prim: 'Some', args: [{ int: '0' }] }, - ], - { bytes: '012582f9db72407f07e78f065db7965ff42c46248700' }, - ], - }, - ], - }, - big_map_diff: [], - consumed_gas: '6962', - consumed_milligas: '6961817', - storage_size: '19227', - lazy_storage_diff: [ - { kind: 'big_map', id: '20837', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20836', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20835', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20834', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20833', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20832', diff: { action: 'update', updates: [] } }, - ], - }, - }, - ], - }, - }, - { - kind: 'transaction', - source: 'tz1cpnaaG6FkPAUcrsj45zhYYSPMvJnxyc59', - fee: '12049', - counter: '703829', - gas_limit: '3392', - storage_limit: '0', - amount: '0', - destination: 'KT1RxHZJCrFVuPQJWqhVLBZeZxm7SawHdHGL', - parameters: { - entrypoint: 'update_operators', - value: [ - { - prim: 'Right', - args: [ - { - prim: 'Pair', - args: [ - { string: 'tz1cpnaaG6FkPAUcrsj45zhYYSPMvJnxyc59' }, - { - prim: 'Pair', - args: [{ string: 'KT1PrWB2PSwWNzbfpA9SJbUaHXxCzbLSJspm' }, { int: '1' }], - }, - ], - }, - ], - }, - ], - }, - metadata: { - balance_updates: [ - { - kind: 'contract', - contract: 'tz1cpnaaG6FkPAUcrsj45zhYYSPMvJnxyc59', - change: '-12049', - origin: 'block', - }, - { - kind: 'freezer', - category: 'fees', - delegate: 'tz1RomaiWJV3NFDZWTMVR2aEeHknsn3iF5Gi', - cycle: 131, - change: '12049', - origin: 'block', - }, - ], - operation_result: { - status: 'applied', - storage: { - prim: 'Pair', - args: [ - { prim: 'Pair', args: [{ int: '20440' }, { int: '20441' }] }, - { prim: 'Pair', args: [{ int: '20442' }, { int: '20443' }] }, - ], - }, - big_map_diff: [ - { - action: 'update', - big_map: '20442', - key_hash: 'exprtpmtn8bL4jrTW2AfMZJ9p2yx1k9xMkN5f7EWhxtUVPtvutxqNL', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { - prim: 'Pair', - args: [ - { bytes: '01a783b18821ce1f502c8a1c2fd9761ad21c1391d600' }, - { int: '1' }, - ], - }, - ], - }, - }, - ], - consumed_gas: '3292', - consumed_milligas: '3291138', - storage_size: '48523', - lazy_storage_diff: [ - { kind: 'big_map', id: '20443', diff: { action: 'update', updates: [] } }, - { - kind: 'big_map', - id: '20442', - diff: { - action: 'update', - updates: [ - { - key_hash: 'exprtpmtn8bL4jrTW2AfMZJ9p2yx1k9xMkN5f7EWhxtUVPtvutxqNL', - key: { - prim: 'Pair', - args: [ - { bytes: '0000bc82eedf570c81349226f937bed3d3485a2b080f' }, - { - prim: 'Pair', - args: [ - { bytes: '01a783b18821ce1f502c8a1c2fd9761ad21c1391d600' }, - { int: '1' }, - ], - }, - ], - }, - }, - ], - }, - }, - { kind: 'big_map', id: '20441', diff: { action: 'update', updates: [] } }, - { kind: 'big_map', id: '20440', diff: { action: 'update', updates: [] } }, - ], - }, - }, - }, - ], - signature: - 'siggVH9Kh81y4UraZqdPvH2zdP3RgjUSt2XvM2VDD9N5mGptMrF31GRhaKAxtk6xErHsxLqohMvudwvLkjsMg7TkfGrbwMdC', - }, - ], - ], -}; -export const blockHash = 'BlockHash'; -export const liveBlocks = [ - 'BKiHeQzuKM5quBsgVL25UDFXKcZyaTt26AQUtUkbA4Vh3dAQY21', - 'BKiboc2xTLtbCXt6AWX2BpR4km41onVrLmhFSTjYUA2iWKBwSTH', -]; -export const balance = new BigNumber(4138876344398); -export const storage = { prim: 'Pair', args: [{ int: '0' }, { int: '1' }] }; -export const script = { - code: [ - { prim: 'parameter', args: [] }, - { prim: 'storage', args: [] }, - { prim: 'code', args: [] }, - ], - storage: { prim: 'Pair', args: [] }, -}; -export const contract = { - balance: new BigNumber(765), - script: { - code: [], - storage: { prim: 'Pair', args: [] }, - }, -}; -export const unstakeRequestsResponse = { - finalizable: [ - { - delegate: 'tz1PZY3tEWmXGasYeehXYqwXuw2Z3iZ6QDnA', - cycle: 10, - amount: new BigNumber('500000000'), - }, - ], - unfinalizable: { - delegate: 'tz1PZY3tEWmXGasYeehXYqwXuw2Z3iZ6QDnA', - requests: [ - { - cycle: 11, - amount: new BigNumber('200000000'), - }, - ], - }, -}; -export const managerKey = 'edpkvP1NXoo8vhYbPSvXdy466EHoYWBpf6zmjghB2p3DwJPjbB5nsf'; -export const delegate = 'tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD'; -export const bigmapValue = { prim: 'Pair', args: [[], { int: '100' }] }; -export const delegates = { - full_balance: new BigNumber('10289576365'), - current_frozen_deposits: new BigNumber('2028957741'), - frozen_deposits: new BigNumber('1028957741'), - staking_balance: new BigNumber('10289576365'), - delegated_contracts: ['tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb'], - delegated_balance: new BigNumber('0'), - min_delegated_in_current_cycle: { - amount: '8260618624', - level: { - level: 81924, - level_position: 81923, - cycle: 7, - cycle_position: 3, - expected_commitment: false, - }, - }, - deactivated: false, - grace_period: 7, - pending_denunciations: false, - total_delegated_stake: new BigNumber('0'), - staking_denominator: new BigNumber('0'), - voting_power: new BigNumber('10289577405'), - remaining_proposals: 20, - active_consensus_key: 'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb', -}; -export const votingInfo = { - voting_power: '1005169895965', - remaining_proposals: 20, -}; -export const constants = { - proof_of_work_nonce_size: 8, - nonce_length: 32, - max_anon_ops_per_block: 132, - max_operation_data_length: 32768, - max_proposals_per_delegate: 20, - preserved_cycles: 3, - blocks_per_cycle: 4096, - blocks_per_commitment: 32, - blocks_per_roll_snapshot: 256, - blocks_per_voting_period: 20480, - time_between_blocks: [new BigNumber(30), new BigNumber(20)], - endorsers_per_block: 256, - hard_gas_limit_per_operation: new BigNumber(1040000), - hard_gas_limit_per_block: new BigNumber(5200000), - proof_of_work_threshold: new BigNumber(70368744177663), - minimal_stake: new BigNumber(8000000000), - michelson_maximum_type_size: 1000, - seed_nonce_revelation_tip: new BigNumber(125000), - origination_size: 257, - block_security_deposit: new BigNumber(640000000), - endorsement_security_deposit: new BigNumber(2500000), - baking_reward_per_endorsement: [new BigNumber(78125), new BigNumber(11719)], - endorsement_reward: [new BigNumber(78125), new BigNumber(52083)], - cost_per_byte: new BigNumber(250), - hard_storage_limit_per_operation: new BigNumber(60000), - quorum_min: 2000, - quorum_max: 7000, - min_proposal_quorum: 500, - initial_endorsers: 192, - delay_per_missing_endorsement: new BigNumber(4), - minimal_block_delay: new BigNumber(15), - liquidity_baking_subsidy: new BigNumber(2500000), - liquidity_baking_sunset_level: 2032928, - liquidity_baking_escape_ema_threshold: 1000000, -}; -export const blockHeader = { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - chain_id: 'NetXz969SFaFn8k', - hash: 'BMZXDPn8kKMCSXX1ZfpkCHBuSeXkwqbEp3MJtEwNB21TNVC3Gsp', - level: 516500, - proto: 2, - predecessor: 'BM4FhgGT16ikghoVoz1WoG5z2pmo24GC9sTrfMk5UB4KEnzjNTu', - timestamp: '2021-09-27T20:41:55Z', - validation_pass: 4, - operations_hash: 'LLoZRW4irfmyGwY5ufakDd52aA1P6bVhn3zpjBbQxdjPvwjeEaDkK', - fitness: ['01', '000000000007e193'], - context: 'CoWX5BdtfTGKmmwpwhF9cpU6SqBmP5MqostAPP6b3oZp94PG9V2S', - priority: 0, - proof_of_work_nonce: '36055190bec80200', - liquidity_baking_escape_vote: false, - signature: - 'sigXwcYckn43nA9uqFKKTqFbkiyhBdKfRd8mbCWHnk4kFqis7unT4VJozBrT7f1pVZNUnTPwHYBqarCdVTRajj5bhWg4qGSF', -}; - -export const bakingRights = [ - { - level: 516501, - delegate: 'tz1VWasoyFGAWZt5K2qZRzP3cWzv3z7MMhP8', - priority: 0, - estimated_time: '2021-09-27T20:42:10Z', - }, -]; - -export const blockMetadata = { - protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - next_protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', - test_chain_status: { status: 'not_running' }, - max_operations_ttl: 120, - max_operation_data_length: 32768, - max_block_header_length: 239, - max_operation_list_length: [ - { max_size: 4194304, max_op: 2048 }, - { max_size: 32768 }, - { max_size: 135168, max_op: 132 }, - { max_size: 524288 }, - ], - baker: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - level_info: { - level: 516500, - level_position: 516499, - cycle: 127, - cycle_position: 403, - expected_commitment: false, - }, - voting_period_info: { - voting_period: { index: 25, kind: 'proposal', start_position: 512001 }, - position: 4498, - remaining: 15981, - }, - nonce_hash: null, - consumed_gas: '0', - deactivated: [], - balance_updates: [ - { - kind: 'contract', - contract: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - change: '-640000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'deposits', - delegate: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - cycle: 127, - change: '640000000', - origin: 'block', - }, - { - kind: 'freezer', - category: 'rewards', - delegate: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - cycle: 127, - change: '16484375', - origin: 'block', - }, - ], - liquidity_baking_escape_ema: 243180, - implicit_operations_results: [ - { - kind: 'transaction', - storage: [Array], - balance_updates: [Array], - consumed_gas: '2118', - consumed_milligas: '2117300', - storage_size: '4636', - }, - ], -}; -export const attestationRights = [ - { - level: 151187, - delegates: [ - { - delegate: 'tz3Q1fwk1vh3zm5LqyUV9e2wZBdaEXcovh2r', - first_slot: 79, - attestation_power: 326, - consensus_key: 'tz3Q1fwk1vh3zm5LqyUV9e2wZBdaEXcovh2r', - }, - ], - }, -]; -export const ballotList = []; -export const ballots = { yay: 0, nay: 0, pass: 0 }; -export const currentPeriodKind = { - voting_period: { index: 25, kind: 'proposal', start_position: 512001 }, - position: 4498, - remaining: 15981, -}; -export const currentProposal = null; -export const currentQuorum = 5500; -export const votesListing = [{ pkh: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', rolls: 399 }]; -export const porposals = []; -export const entryPoints = { - entrypoints: { main: { prim: 'pair', args: [] }, default: { prim: 'unit' } }, -}; -export const chainId = 'NetXz969SFaFn8k'; -export const packData = { - gas: 'unaccounted', - packed: '050a000000160000b24ac1e1759565d5c9b69af8450ce7ea3d1ee64c', -}; -export const currentPeriod = { - voting_period: { index: 25, kind: 'proposal', start_position: 512001 }, - position: 4498, - remaining: 15981, -}; -export const successorPeriod = { - voting_period: { index: 25, kind: 'proposal', start_position: 512001 }, - position: 4539, - remaining: 15940, -}; - -export const protocols = { - protocol: 'PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx', - next_protocol: 'PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx', -}; - -export const delegatesIthacanetResponse = { - full_balance: '1198951292321', - current_frozen_deposits: '120167343864', - frozen_deposits: '120167343864', - staking_balance: '1203308804406', - delegated_contracts: ['tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD'], - delegated_balance: '4357512085', - deactivated: false, - grace_period: 37, - voting_power: 199, -}; - -export const delegatesKathmandunetResponse = { - full_balance: '965532868030', - current_frozen_deposits: '96350095609', - frozen_deposits: '96350095609', - staking_balance: '970221941952', - delegated_contracts: ['tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD'], - delegated_balance: '4689073922', - deactivated: false, - grace_period: 42, - voting_power: '968128693450', - remaining_proposals: 20, -}; - -export const votingInfoKathmandunetResponse = { - voting_power: '1054404383333', - remaining_proposals: 20, -}; - -export const blockIthacanetResponse = { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'BMGdK16iMkm4YmgAneYuvd7B4R5S8nYQKFfKzXCKMHP1FqS5hXQ', - header: { - level: 135596, - proto: 2, - predecessor: 'BLgx6Cr7DYwXEexuz828mBUqCKotCXo8PRAN55A9wovUrYWvao8', - timestamp: '2022-02-24T01:09:20Z', - validation_pass: 4, - operations_hash: 'LLoaKP1SEeTE1ziKFRHipDYihitAoTHhEZbiartSvehqMPvu7v661', - fitness: ['02', '000211ac', '', 'ffffffff', '00000000'], - context: 'CoVkVfBsmMSCeTLcBesUe4TdhDhvZxhm8SN48Rky5B3aD8U92hY9', - payload_hash: 'vh28CE8X2KKMvt5S4aGzPdMq5FpcfVRSoeyU3D3TUdVyk9zucR31', - payload_round: 0, - proof_of_work_nonce: '409a3f3f250d0100', - liquidity_baking_escape_vote: false, - signature: - 'sigtWPWubCNXDfaH7NZQcei2hzBbHKQtw56z2WRvrmyPNBLRYP2cNAycFob1Dr8MBbbCGtCUny2BaEbzBa4kVEadMNrGp6Mk', - }, - metadata: { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - next_protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - test_chain_status: { - status: 'not_running', - }, - max_operations_ttl: 120, - max_operation_data_length: 32768, - max_block_header_length: 289, - max_operation_list_length: [ - { - max_size: 4194304, - max_op: 2048, - }, - { - max_size: 32768, - }, - { - max_size: 135168, - max_op: 132, - }, - { - max_size: 524288, - }, - ], - proposer: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - baker: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - level_info: { - level: 135596, - level_position: 135595, - cycle: 33, - cycle_position: 427, - expected_commitment: false, - }, - voting_period_info: { - voting_period: { - index: 6, - kind: 'proposal', - start_position: 122880, - }, - position: 12715, - remaining: 7764, - }, - nonce_hash: null, - consumed_gas: '1000000', - deactivated: [], - balance_updates: [ - { - kind: 'accumulator', - category: 'block fees', - change: '-1500', - origin: 'block', - }, - { - kind: 'minted', - category: 'baking rewards', - change: '-5000000', - origin: 'block', - }, - { - kind: 'contract', - contract: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - change: '5001500', - origin: 'block', - }, - { - kind: 'minted', - category: 'baking bonuses', - change: '-4217424', - origin: 'block', - }, - { - kind: 'contract', - contract: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - change: '4217424', - origin: 'block', - }, - ], - liquidity_baking_escape_ema: 119624, - implicit_operations_results: [ - { - kind: 'transaction', - storage: [ - { - int: '1', - }, - { - int: '338987500100', - }, - { - int: '100', - }, - { - bytes: '01e927f00ef734dfc85919635e9afc9166c83ef9fc00', - }, - { - bytes: '0115eb0104481a6d7921160bc982c5e0a561cd8a3a00', - }, - ], - balance_updates: [ - { - kind: 'minted', - category: 'subsidy', - change: '-2500000', - origin: 'subsidy', - }, - { - kind: 'contract', - contract: 'KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5', - change: '2500000', - origin: 'subsidy', - }, - ], - consumed_gas: '225', - consumed_milligas: '224023', - storage_size: '4632', - }, - ], - }, - operations: [ - [ - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ooqwt58nxiSHAsmwaBDux3LoEkNE9p14v1TXtnB4CfEaobgHuZ2', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 0, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1iZ9LkpAhN8X1L6RpBtfy3wxpEWzFrXz8j', - endorsement_power: 206, - }, - }, - ], - signature: - 'sigT3AuNgusteshSqt2J5aha7iSsYAXsYVGAr62RNZkrd1Gp6JjY59CtD33a4zyv57ZwV7J5JvWRD7uZrwaE6NSzmP61SGkb', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'opZP7VfVcdqY5ivF5tyFYr48SR4wj74wrc4hQHyQWLv5azBZtiN', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 1, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1RuHDSj9P7mNNhfKxsyLGRDahTX5QD1DdP', - endorsement_power: 121, - }, - }, - ], - signature: - 'sigdipDBAxcvLShbKRHNkBoSxxFUr2bTnoVsaM3df8zZhmNex1SefwfNmBJQPePvXSyePWMHSxQiDxpCDkzppEEade6eaSjh', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'onxcESouatMhSqYxmtQPtM99df28TYavNR2izyJtULDG29eq5FY', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 2, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1RJ74UepJA9tigjoEeUEFajowzVB3QQaVx', - endorsement_power: 257, - }, - }, - ], - signature: - 'sigeNkH2F3rFUha9Qr1kunmoTHMsWcDKtjh6owGkmBu1xJW7VWfFvgGJtz3qvi2a7npnTfLzVPKroAQwTc8XjY3rMNwDZuUr', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'op2gAd6kzpWPViXxC5QhH62HhtRjjthf2QT78C9vC7epL9V5sxo', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 3, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', - endorsement_power: 1227, - }, - }, - ], - signature: - 'sigVwJmrALwEdqetE3Z6EDJyGpett54p4A68xKSpvZMnS2aJZa6Dqr6hiQFroEaV97VsZdVoBZZK1pn7o5CvwZ6BuHG89v7j', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'oorGPbxDrdFc8aZfa7BSLm2v2x3DEWdnThvvq6sxwv2Xbra74A9', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 4, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1XMiZwHpHZ8a1AfwRWKfzLskJgZNyV8PHs', - endorsement_power: 139, - }, - }, - ], - signature: - 'sigRz9Ev7mwTiRtVdBegKCGHLqWz3JSt8HwwmmPoTNYEHyijovj62MRHQBAuaKVi6c7rwoP2451v1ejKB1diHYvgQ2L9iVBj', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'opLpk7KV13f8ZkjZrf15PW6gjaiBAeJeWgz3xsgcHv538afebPR', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 5, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1XGwK6kkiJaq2ZEJYcWEj5Tc8bcV6pNHqV', - endorsement_power: 48, - }, - }, - ], - signature: - 'sigXSUhDQmNG4PuQR6Eaz5ffDsL3upXZ1QwsSd7Q4LTTkkucbsYTqorgpY9dh28XtcTFkxi6cGYN2cUUPvDaMXZxX4nJ4Zg2', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'op55vJPHBNdwmAztCGSEezNgUBMLrLa19F7FXGt4mXmYBJ2rz6i', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 7, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1cg5EqC3WdZgRSvGJeW328S4KQNrT4jvyv', - endorsement_power: 264, - }, - }, - ], - signature: - 'sigWtL6YhYswrxoBxACy7P8dwrcWW4syiTeeggTL5sLyS1PdQUYaTMVgvTzWmdX5LdpC4JSB5o3xxF941ac3nbnFtzXgwMYc', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'onxq8YLBdsL8AJy81MXrsSMKdBKFnLk7GVqAUxjjoCLFt6D8HMN', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 8, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1NGS7FEGGfEFp5XRVkHBqVqSQ8VuumF9j3', - endorsement_power: 33, - }, - }, - ], - signature: - 'sigpDY5wQs7Rxo7sFTcJUkxzXeBMvbnseLZaLAT5JB95iGS9ndwdQF1WYLSdAYDhwiXKuZpcGDFLHipHYizpQh8qQFg8xrYU', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'onqHgJw1HWxoHucpim35NQ2t4V4sPzJmPTPhru4cxuBJuMjQzwh', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 10, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1TGKSrZrBpND3PELJ43nVdyadoeiM1WMzb', - endorsement_power: 164, - }, - }, - ], - signature: - 'sigUfJLBuU6HnaCVRDvFG6YELjMy3YmoMwj8ohgaYt9mTQUbK28AkfxjDcck72e3LsL6KGBZZjmSWDwwU6DtJanM5orRTubY', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ooCYNg4ZMQWt3yzfyrDbmK6dtyMuwYr6spj2eCCoJf76iZeP3mP', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 12, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1MeT8NACB8Q4uV9dPQ3YxXBmYgapbxQxQ5', - endorsement_power: 782, - }, - }, - ], - signature: - 'sigWwS6Cqc32rrngX136d2KKfp9SgBDdosgA2HoALEk62tRMjU6LJSa6m6SDnrKitAZrXTtD9VguMCc61X8oUuYyYt5nT1CF', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'opDt75d4MTscbTgXzcJVrKD25QPofMpkTzofCAeRZgskLYwbJX5', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 13, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1dqPQn5HXNJ7yjcqBx2w6sozjPXTV1kpfh', - endorsement_power: 156, - }, - }, - ], - signature: - 'sigijCvAxjub2QdmhNT4wQkppQDYrKAxt7MN1v9iwRszcR3bMkKK6VfACHpy7RkQ4VvN3caPMJf6rhnLRdgpAqpQrAwj6KBT', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'oohJgzphmFhuqPzhhSgMThmeuUQNmpqbwUMjc2tPCGryQTFDCQ8', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 17, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1foXHgRzdYdaLgX6XhpZGxbBv42LZ6ubvE', - endorsement_power: 237, - }, - }, - ], - signature: - 'sigQkUSHt6izTh7TNn3GTtELiL6rypCYUYHFPU65FXWojV6xhsL7jDkJipxSLvpPhshK8d7EebWSe2PhFrtqgUWBbuGibNtm', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ooQnVunqu4u6KVD65kKfruyh4fUDLD8ahqmvg3tWQbo1WX6yreK', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 18, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1NiaviJwtMbpEcNqSP6neeoBYj8Brb3QPv', - endorsement_power: 240, - }, - }, - ], - signature: - 'sigqVDESVHH7tkjtyuM63TsL28C3HSjmesdGJn7ALFKVQHn1Ciw23PhAXeeR3iS9LtVihM7LQy4hqjZhZqCWnP5BmoPgXSFr', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ooUzJx1JK2uMnSxzwTzN7VCaaGropVm32w1CMXc25fLwBvNoSiF', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 20, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1LQ32syCNyGj6FdAuJfko42Wep87iYZk8k', - endorsement_power: 159, - }, - }, - ], - signature: - 'sigTcHdNzSGKd3WoKTcwFYvZXseN3oya2eNnRWvnh3yjDoqjB4mJedUrvVPHb3XphnejGhmqscWQeqo8qz5SMJGFvSLsaU5R', - }, + }, +}; +export const managerKey = 'edpkvP1NXoo8vhYbPSvXdy466EHoYWBpf6zmjghB2p3DwJPjbB5nsf'; +export const delegate = 'tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD'; +export const bigmapValue = { prim: 'Pair', args: [[], { int: '100' }] }; +export const delegates = { + full_balance: new BigNumber('10289576365'), + current_frozen_deposits: new BigNumber('2028957741'), + frozen_deposits: new BigNumber('1028957741'), + staking_balance: new BigNumber('10289576365'), + delegated_contracts: ['tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb'], + delegated_balance: new BigNumber('0'), + min_delegated_in_current_cycle: { + amount: '8260618624', + level: { + level: 81924, + level_position: 81923, + cycle: 7, + cycle_position: 3, + expected_commitment: false, + }, + }, + deactivated: false, + grace_period: 7, + pending_denunciations: false, + total_delegated_stake: new BigNumber('0'), + staking_denominator: new BigNumber('0'), + voting_power: new BigNumber('10289577405'), + remaining_proposals: 20, + active_consensus_key: 'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb', +}; +export const votingInfo = { + voting_power: '1005169895965', + remaining_proposals: 20, +}; +export const constants = { + proof_of_work_nonce_size: 8, + nonce_length: 32, + max_anon_ops_per_block: 132, + max_operation_data_length: 32768, + max_proposals_per_delegate: 20, + max_micheline_node_count: 50000, + max_micheline_bytes_limit: 50000, + max_allowed_global_constants_depth: 10000, + cache_layout_size: 3, + michelson_maximum_type_size: 2001, + max_slashing_period: 2, + smart_rollup_max_wrapped_proof_binary_size: 30000, + smart_rollup_message_size_limit: 4096, + smart_rollup_max_number_of_messages_per_level: '1000000', + consensus_rights_delay: 2, + blocks_preservation_cycles: 1, + delegate_parameters_activation_delay: 3, + blocks_per_cycle: 128, + blocks_per_commitment: 16, + nonce_revelation_threshold: 32, + cycles_per_voting_period: 1, + hard_gas_limit_per_operation: '1040000', + hard_gas_limit_per_block: '5200000', + proof_of_work_threshold: '-1', + minimal_stake: '6000000000', + minimal_frozen_stake: '600000000', + vdf_difficulty: '10000000', + origination_size: 257, + issuance_weights: { + base_total_issued_per_minute: '85007812', + baking_reward_fixed_portion_weight: 5120, + baking_reward_bonus_weight: 5120, + attesting_reward_weight: 10240, + seed_nonce_revelation_tip_weight: 1, + vdf_revelation_tip_weight: 1, + }, + cost_per_byte: '250', + hard_storage_limit_per_operation: '60000', + quorum_min: 2000, + quorum_max: 7000, + min_proposal_quorum: 500, + liquidity_baking_subsidy: '5000000', + liquidity_baking_toggle_ema_threshold: 100000, + max_operations_time_to_live: 120, + minimal_block_delay: '7', + delay_increment_per_round: '7', + consensus_committee_size: 7000, + consensus_threshold: 4667, + minimal_participation_ratio: { numerator: 2, denominator: 3 }, + limit_of_delegation_over_baking: 9, + percentage_of_frozen_deposits_slashed_per_double_baking: 700, + percentage_of_frozen_deposits_slashed_per_double_attestation: 5000, + max_slashing_per_block: 10000, + max_slashing_threshold: 2334, + cache_script_size: 100000000, + cache_stake_distribution_cycles: 8, + cache_sampler_state_cycles: 8, + dal_parametric: { + feature_enable: true, + incentives_enable: false, + number_of_slots: 32, + attestation_lag: 8, + attestation_threshold: 66, + redundancy_factor: 8, + page_size: 3967, + slot_size: 126944, + number_of_shards: 512, + }, + smart_rollup_arith_pvm_enable: true, + smart_rollup_origination_size: 6314, + smart_rollup_challenge_window_in_blocks: 40, + smart_rollup_stake_amount: '32000000', + smart_rollup_commitment_period_in_blocks: 20, + smart_rollup_max_lookahead_in_blocks: 30000, + smart_rollup_max_active_outbox_levels: 20160, + smart_rollup_max_outbox_messages_per_level: 100, + smart_rollup_number_of_sections_in_dissection: 32, + smart_rollup_timeout_period_in_blocks: 500, + smart_rollup_max_number_of_cemented_commitments: 5, + smart_rollup_max_number_of_parallel_games: 32, + smart_rollup_reveal_activation_level: { + raw_data: { Blake2B: 0 }, + metadata: 0, + dal_page: 1, + dal_parameters: 1, + dal_attested_slots_validity_lag: 241920, + }, + smart_rollup_private_enable: true, + smart_rollup_riscv_pvm_enable: true, + zk_rollup_enable: true, + zk_rollup_origination_size: 4000, + zk_rollup_min_pending_to_process: 10, + zk_rollup_max_ticket_payload_size: 2048, + global_limit_of_staking_over_baking: 5, + edge_of_staking_over_delegation: 2, + adaptive_issuance_launch_ema_threshold: 0, + adaptive_rewards_params: { + issuance_ratio_final_min: { numerator: '1', denominator: '400' }, + issuance_ratio_final_max: { numerator: '1', denominator: '10' }, + issuance_ratio_initial_min: { numerator: '9', denominator: '200' }, + issuance_ratio_initial_max: { numerator: '11', denominator: '200' }, + initial_period: 10, + transition_period: 50, + max_bonus: '50000000000000', + growth_rate: { numerator: '1', denominator: '100' }, + center_dz: { numerator: '1', denominator: '2' }, + radius_dz: { numerator: '1', denominator: '50' }, + }, + adaptive_issuance_activation_vote_enable: true, + autostaking_enable: true, + adaptive_issuance_force_activation: true, + ns_enable: true, + direct_ticket_spending_enable: false, +}; +export const blockHeader = { + protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', + chain_id: 'NetXz969SFaFn8k', + hash: 'BMZXDPn8kKMCSXX1ZfpkCHBuSeXkwqbEp3MJtEwNB21TNVC3Gsp', + level: 516500, + proto: 2, + predecessor: 'BM4FhgGT16ikghoVoz1WoG5z2pmo24GC9sTrfMk5UB4KEnzjNTu', + timestamp: '2021-09-27T20:41:55Z', + validation_pass: 4, + operations_hash: 'LLoZRW4irfmyGwY5ufakDd52aA1P6bVhn3zpjBbQxdjPvwjeEaDkK', + fitness: ['01', '000000000007e193'], + context: 'CoWX5BdtfTGKmmwpwhF9cpU6SqBmP5MqostAPP6b3oZp94PG9V2S', + priority: 0, + proof_of_work_nonce: '36055190bec80200', + liquidity_baking_escape_vote: false, + signature: + 'sigXwcYckn43nA9uqFKKTqFbkiyhBdKfRd8mbCWHnk4kFqis7unT4VJozBrT7f1pVZNUnTPwHYBqarCdVTRajj5bhWg4qGSF', +}; + +export const bakingRights = [ + { + level: 516501, + delegate: 'tz1VWasoyFGAWZt5K2qZRzP3cWzv3z7MMhP8', + priority: 0, + estimated_time: '2021-09-27T20:42:10Z', + }, +]; + +export const blockMetadata = { + protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', + next_protocol: 'PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV', + test_chain_status: { status: 'not_running' }, + max_operations_ttl: 120, + max_operation_data_length: 32768, + max_block_header_length: 239, + max_operation_list_length: [ + { max_size: 4194304, max_op: 2048 }, + { max_size: 32768 }, + { max_size: 135168, max_op: 132 }, + { max_size: 524288 }, + ], + baker: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', + level_info: { + level: 516500, + level_position: 516499, + cycle: 127, + cycle_position: 403, + expected_commitment: false, + }, + voting_period_info: { + voting_period: { index: 25, kind: 'proposal', start_position: 512001 }, + position: 4498, + remaining: 15981, + }, + nonce_hash: null, + consumed_gas: '0', + deactivated: [], + balance_updates: [ + { + kind: 'contract', + contract: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', + change: '-640000000', + origin: 'block', + }, + { + kind: 'freezer', + category: 'deposits', + delegate: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', + cycle: 127, + change: '640000000', + origin: 'block', + }, + { + kind: 'freezer', + category: 'rewards', + delegate: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', + cycle: 127, + change: '16484375', + origin: 'block', + }, + ], + liquidity_baking_escape_ema: 243180, + implicit_operations_results: [ + { + kind: 'transaction', + storage: [Array], + balance_updates: [Array], + consumed_gas: '2118', + consumed_milligas: '2117300', + storage_size: '4636', + }, + ], +}; +export const attestationRights = [ + { + level: 151187, + delegates: [ { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'onfyPPCxtU937rMKNtkXV978ckQSnTqgM9VMEsB18ha9QXHZbyw', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 28, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1funU3PjPsuXvmtXMgnAckY1s4pNT6V7WJ', - endorsement_power: 152, - }, - }, - ], - signature: - 'sigfiyUP39iz8GGq6opn5eMiUqGCJ1vRWF8r92ByyeL7zhGe7b21WEKREYNmAPfhcWFWHm9rFRB5uav4LMFd2V6NCwkQtsaF', + delegate: 'tz3Q1fwk1vh3zm5LqyUV9e2wZBdaEXcovh2r', + first_slot: 79, + attestation_power: 326, + consensus_key: 'tz3Q1fwk1vh3zm5LqyUV9e2wZBdaEXcovh2r', }, + ], + }, +]; +export const ballotList = []; +export const ballots = { yay: 0, nay: 0, pass: 0 }; +export const currentPeriodKind = { + voting_period: { index: 25, kind: 'proposal', start_position: 512001 }, + position: 4498, + remaining: 15981, +}; +export const currentProposal = null; +export const currentQuorum = 5500; +export const votesListing = [{ pkh: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', rolls: 399 }]; +export const proposals = []; +export const entryPoints = { + entrypoints: { main: { prim: 'pair', args: [] }, default: { prim: 'unit' } }, +}; +export const chainId = 'NetXz969SFaFn8k'; +export const packData = { + gas: 'unaccounted', + packed: '050a000000160000b24ac1e1759565d5c9b69af8450ce7ea3d1ee64c', +}; +export const currentPeriod = { + voting_period: { index: 25, kind: 'proposal', start_position: 512001 }, + position: 4498, + remaining: 15981, +}; +export const successorPeriod = { + voting_period: { index: 25, kind: 'proposal', start_position: 512001 }, + position: 4539, + remaining: 15940, +}; + +export const protocols = { + protocol: 'PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx', + next_protocol: 'PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx', +}; + +export const delegatesIthacanetResponse = { + full_balance: '1198951292321', + current_frozen_deposits: '120167343864', + frozen_deposits: '120167343864', + staking_balance: '1203308804406', + delegated_contracts: ['tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD'], + delegated_balance: '4357512085', + deactivated: false, + grace_period: 37, + voting_power: 199, +}; + +export const delegatesKathmandunetResponse = { + full_balance: '965532868030', + current_frozen_deposits: '96350095609', + frozen_deposits: '96350095609', + staking_balance: '970221941952', + delegated_contracts: ['tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD'], + delegated_balance: '4689073922', + deactivated: false, + grace_period: 42, + voting_power: '968128693450', + remaining_proposals: 20, +}; + +export const votingInfoKathmandunetResponse = { + voting_power: '1054404383333', + remaining_proposals: 20, +}; + +export const blockIthacanetResponse = { + protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', + chain_id: 'NetXnHfVqm9iesp', + hash: 'BMGdK16iMkm4YmgAneYuvd7B4R5S8nYQKFfKzXCKMHP1FqS5hXQ', + header: { + level: 135596, + proto: 2, + predecessor: 'BLgx6Cr7DYwXEexuz828mBUqCKotCXo8PRAN55A9wovUrYWvao8', + timestamp: '2022-02-24T01:09:20Z', + validation_pass: 4, + operations_hash: 'LLoaKP1SEeTE1ziKFRHipDYihitAoTHhEZbiartSvehqMPvu7v661', + fitness: ['02', '000211ac', '', 'ffffffff', '00000000'], + context: 'CoVkVfBsmMSCeTLcBesUe4TdhDhvZxhm8SN48Rky5B3aD8U92hY9', + payload_hash: 'vh28CE8X2KKMvt5S4aGzPdMq5FpcfVRSoeyU3D3TUdVyk9zucR31', + payload_round: 0, + proof_of_work_nonce: '409a3f3f250d0100', + liquidity_baking_escape_vote: false, + signature: + 'sigtWPWubCNXDfaH7NZQcei2hzBbHKQtw56z2WRvrmyPNBLRYP2cNAycFob1Dr8MBbbCGtCUny2BaEbzBa4kVEadMNrGp6Mk', + }, + metadata: { + protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', + next_protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', + test_chain_status: { + status: 'not_running', + }, + max_operations_ttl: 120, + max_operation_data_length: 32768, + max_block_header_length: 289, + max_operation_list_length: [ { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ooosvu7cCgZZG9E8SYgrNBFBJcVtTnrhhuoEuckNGzsEi5ug8uk', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 29, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz3Q67aMz7gSMiQRcW729sXSfuMtkyAHYfqc', - endorsement_power: 158, - }, - }, - ], - signature: - 'sigqFLE4Q2uZ6yMo8QWjrsbzVKV4bWNWbppP5ZhLDsvL83HbzJQG2ABHbCALrqXNrZR1znRcvAaB7JYEHDScw9tqWVN2VpKt', + max_size: 4194304, + max_op: 2048, }, { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ooT5Fy1ZkamhGPBKSE6uFhQicoaZJNBC4AsoWo9F9v7W6AVRvpv', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 33, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1cXeGHP8Urj2pQRwpAkCdPGbCdqFUPsQwU', - endorsement_power: 163, - }, - }, - ], - signature: - 'sigvGuQyTgdreAChYGAjUYR76pQSKKTq7ed4vFuzSGe6sZyiSa1uXS8wRDqH5nXTugTKs6S7sSDps4UsT6SRuTXQFN5iDekk', + max_size: 32768, }, { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'onway6W9qLwef1ejbEFPtKiU6wzjubKfj6YorREHtiaZhNQuRuD', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 35, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1ituzNz9MGaMSL9dVDN7jE5SArCEWNmZbS', - endorsement_power: 161, - }, - }, - ], - signature: - 'sigN9vEVaZerpXewKGoDUhXqDoyw69jawRuewDAf55z839E4JSaW3KDGX3AZHN5vRxPxiQLTUmvnUCTxK73fQL63aJ8CMiLF', + max_size: 135168, + max_op: 132, }, { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'op2tvcwvEN8vDoBQdHinKCpJpq5xr8uhXjESfNpQg4dUYKXv3RC', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 43, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1hm7NuCGNSKZQLQSawjUnehJcX8yCBcCAq', - endorsement_power: 162, - }, - }, - ], - signature: - 'sigmCvUw4dFVcru7Vpa4yiQKh8M5zX4EPXNwg5VTggXDiQmxTeZdwsKggZJwh3CDyiBWvLL7gnnbCK644Kwy59xXpZvQi19h', + max_size: 524288, }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'onr9HZHYKAgRxrZKgvQWraBGaGAoWGqtEaT8bArT9JzfxisgWTw', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 44, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1Q7YBzLJkw87c2FdwaWuGKyacSDc4QghzQ', - endorsement_power: 137, - }, - }, - ], - signature: - 'sigwKZiwNPK4mw5eEBBGh8TNNGuhuQ2snncTLWuQhMxs9GFxMFRD8GrkLUwsPQV84Qcr6pwbFFPFQx5U6TUBT7ZXU9jovyLY', + ], + proposer: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', + baker: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', + level_info: { + level: 135596, + level_position: 135595, + cycle: 33, + cycle_position: 427, + expected_commitment: false, + }, + voting_period_info: { + voting_period: { + index: 6, + kind: 'proposal', + start_position: 122880, }, + position: 12715, + remaining: 7764, + }, + nonce_hash: null, + consumed_gas: '1000000', + deactivated: [], + balance_updates: [ { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'opUPRQxsDU1XsppujmWr66YwQLD135vApq6EbVz7mtY58EKCSGq', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 46, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1NFs6yP2sXd5vAAbR43bbDRpV2nahDZope', - endorsement_power: 117, - }, - }, - ], - signature: - 'siggYsKR7C7hMFfUXNv4KvUx9t2djbZxVHeSJQvd5Zcmz8tg5bCZLmXV8rwAeB5bFahuVn5z6iAp8SMXT35peAPc37256pEE', + kind: 'accumulator', + category: 'block fees', + change: '-1500', + origin: 'block', }, { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ooM4BoirczR6W8hXEVsYQ8cHerbHbE9in4z5wMS2AhxvP2Ufad4', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 47, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1KkJtLB9pMdLKNpVRNZw9zmysrxKmYcRGU', - endorsement_power: 158, - }, - }, - ], - signature: - 'sigpDri9hyWVNm6VrnS8Kr4yY3bdNXEWwXPmUEMbvJSM6nLEgzHczAN9QQ73WiHv6xJdjdhgUjitkHkyU8tsmEHSpJMGLrTt', + kind: 'minted', + category: 'baking rewards', + change: '-5000000', + origin: 'block', }, { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ooLKxLjcVBoeB2GJ2QNg6afi4HwUQ2upCfaxWsjT4k1nrtxmL8h', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 48, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1V9CRVyKP3roXsnjcFJP3p9DSXX63KL7iP', - endorsement_power: 166, - }, - }, - ], - signature: - 'sigVjebUbAjkjvw1wyvQ73FyEn9GJfnytuqN9Xd3ghEzaFyacaWEiD7c1ANv67XYDgrquV3GsHF29booHXinSjGjP4cAgcRU', + kind: 'contract', + contract: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', + change: '5001500', + origin: 'block', }, { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'oo36GYoDhvBuhb4wqFRRZ2ugLJNkKfHGmcaHhjLCg9SgdiQPJSY', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 54, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1Zt8QQ9aBznYNk5LUBjtME9DuExomw9YRs', - endorsement_power: 153, - }, - }, - ], - signature: - 'sigV2Cfek4NvEY5CvN91nJLfAG2xG7r8hAt3nZQFPNYu5Qtz3TEQbYLxfwbs8UozKvv8bwAzVk35L9VKgcMUkaEZ3NHsYYg1', + kind: 'minted', + category: 'baking bonuses', + change: '-4217424', + origin: 'block', }, { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'oopWQdrwuxWCBkw7qaVesBLCsGExxuhRuU7FJqQuA9pQcr7nPzw', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ - { - kind: 'endorsement', - slot: 59, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1e841Z7k7XHSoTSyHyBHG2Gijv7DzzjEBb', - endorsement_power: 170, - }, - }, - ], - signature: - 'signyax1oDM1SxWoQir1aMRNXnm1zDnSvLyZnGdPZzh8kqYiK7GqiNb9tP3DUxcLnZeYtiQbWNuBCf6eZzXnXtc7mUhYXAHV', + kind: 'contract', + contract: 'tz1aWXP237BLwNHJcCD4b3DutCevhqq2T1Z9', + change: '4217424', + origin: 'block', }, + ], + liquidity_baking_escape_ema: 119624, + implicit_operations_results: [ { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'oo4t2WvJgwZhAsf5CwcDtKCfSkiaKp9wTNYL7LuAbJ9k3sJvTEg', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ + kind: 'transaction', + storage: [ { - kind: 'endorsement', - slot: 61, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1e42w8ZaGAbM3gucbBy8iRypdbnqUj7oWY', - endorsement_power: 74, - }, + int: '1', }, - ], - signature: - 'signNkorAErY1hBzFRkzeMTqUy6inFFTd9EmpYPKfFyUGX139DyHtsfUHfumPFHeomLtXZMmGQ5g2vi4R1tveaS9yQvz7aba', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'opUy2TmnHxDqjUt3Ht7dCsWyLLNz9sRpA1eC5qZqkhyvHND67pu', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ { - kind: 'endorsement', - slot: 64, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1QXAAasy8TciwfvDC4a7MWo1tm3K37uN9Y', - endorsement_power: 153, - }, + int: '338987500100', }, - ], - signature: - 'sigtoch1ijiGuNGW3qHtAngiEDhEqL5T4acdNEGKt4ew2NoPNkxScgshoxttV45NYxKpLNw6J3FQHPRyaT22fGgwbd9ySu3k', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ooArbFfPVgM6mc3RUroxf2qsimXProumPK6XuidgfjosoT2VN34', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ { - kind: 'endorsement', - slot: 70, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1MvCE9dczhoij2bd4sLL2AfVuMtWfFAoCN', - endorsement_power: 137, - }, + int: '100', }, - ], - signature: - 'sigb2eh47AatunkNSZPVpsZg9nqGqu8GG2C24Hx4D6SoRJ1sz4jgFPjAhP1rk9BkRJ8GfM3AYyY7PGdFqzod3a6q1Wk4ZRVK', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'ood93Z7NmwMeLSo2dW8tBUBst3p3ogcEmkUrDR9T8coHrVApZzF', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ { - kind: 'endorsement', - slot: 71, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1PirbogVqfmBT9XCuYJ1KnDx4bnMSYfGru', - endorsement_power: 119, - }, + bytes: '01e927f00ef734dfc85919635e9afc9166c83ef9fc00', }, - ], - signature: - 'sigiSzxJ1dSeHujvRtv1VKCAc5V1mu5ftRfyutfgKyjjCLGRrNG73k8jb5nqjiTu9T79L4oKdf1g7AEQMCK6eENWPcaMwfFN', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'onjvGqyScQLdGb5cMPwHbnd9UVmh3MhcUze3P1wGHSXRarfxAwY', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ { - kind: 'endorsement', - slot: 75, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1edUYGqBtteStneTGDBrQWTFmq9cnEELiW', - endorsement_power: 135, - }, + bytes: '0115eb0104481a6d7921160bc982c5e0a561cd8a3a00', }, ], - signature: - 'siggwc4K8yWEU8ttzA8HhQh15zV2fYcyK6nfbuVGVs3G2TbM1nVrJxLiC6sHKqBtBuofiC8pYzDLJxVY9zdCzGqBhyMPCw4M', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'opBqy3cLQugeT2xVvKoJUn3yLp79hzuXHc7r5BqSa5HHHFddYgB', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ + balance_updates: [ { - kind: 'endorsement', - slot: 85, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1cjyja1TU6fiyiFav3mFAdnDsCReJ12hPD', - endorsement_power: 139, - }, + kind: 'minted', + category: 'subsidy', + change: '-2500000', + origin: 'subsidy', }, - ], - signature: - 'sigoZ5bh1XPA8kHFkBCs4U9Dq6nT9Ng3i9LENKKCHg8k96TP4KVcFmh1iyVTpxSSiM8V21bnZ7W91KsDL2vekru1ACXsU8Yp', - }, - { - protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', - chain_id: 'NetXnHfVqm9iesp', - hash: 'opCRv7Ewfh3s96PDiVKPC2c4A9oT6nf8FVeQYB2EUEJFT81UTET', - branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', - contents: [ { - kind: 'endorsement', - slot: 90, - level: 135595, - round: 0, - block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', - metadata: { - balance_updates: [], - delegate: 'tz1SFbdg2jjkixHNU1Jm9f8JA4pYnMXsgATC', - endorsement_power: 5, - }, + kind: 'contract', + contract: 'KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5', + change: '2500000', + origin: 'subsidy', }, ], - signature: - 'sigcmrbc6rZnDpEkR268Pvzz2GPSRi8nWnTthYXt8L6Tg9pB4vzdh4uy8gKYrMQFbJTwRSsyPa31xR5u8FMH9xMAfrWn9r48', + consumed_gas: '225', + consumed_milligas: '224023', + storage_size: '4632', }, + ], + }, + operations: [ + [ { protocol: 'Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A', chain_id: 'NetXnHfVqm9iesp', - hash: 'op9TeE362FGyayWVRghVrRxm2FdezqPdqJRM4VTeq5C6ievFDkd', + hash: 'ooqwt58nxiSHAsmwaBDux3LoEkNE9p14v1TXtnB4CfEaobgHuZ2', branch: 'BLzJ1MtqtmWwnG6ZdX7LPygJGvaE51eDqX55KVQM4HNHcVbeDKs', contents: [ { kind: 'endorsement', - slot: 116, + slot: 0, level: 135595, round: 0, block_payload_hash: 'vh2SkkaBZp19oyMUmTTXy5Q33hKKWZSAzXa7Tz2F6mtyeAgXsHC6', metadata: { balance_updates: [], - delegate: 'tz1RBECWBXv4tKcuDbxYmBguvdn8wzjrejHg', - endorsement_power: 143, + delegate: 'tz1iZ9LkpAhN8X1L6RpBtfy3wxpEWzFrXz8j', + endorsement_power: 206, }, }, ], signature: - 'sigQ5nhdCPRiddmNUYLXCeBk5qs3T6fxMiitKgFJQg5Nuo8sqJTamyJctbF5Gt7MrDZEdiCcmZBj4dEHa9fjDLyCSdgHsL3x', + 'sigT3AuNgusteshSqt2J5aha7iSsYAXsYVGAr62RNZkrd1Gp6JjY59CtD33a4zyv57ZwV7J5JvWRD7uZrwaE6NSzmP61SGkb', }, ], [], @@ -4348,45 +1692,36 @@ export const ticketBalancesResponse = [ export const aiLaunchCycle = 6; export const pendingOperationsResponse = { - applied: [ + validated: [ { - hash: 'onjTGvtnaudo1o5sfTe51XEumhsENAhM7oMzhvsSXzZFXNcj1LE', - branch: 'BLvb5tzmepwJkxhRYCnnQeYXqRWhUvdmx4NbpVK9w4nkM6tdXEr', + hash: 'onwh9Z2SHQVDFq2FeuAfoQKC8PzCDkJbDr11ZJTZPCK6C51Gv8U', + branch: 'BLpiU9xW7CdwkodmSdpvEyi2yJ3ZehW5S7ke6sdf6Rd8zEknwdk', contents: [ { - kind: 'preendorsement', - slot: 14, - level: 128135, + kind: 'preattestation', + slot: 1, + level: 176131, round: 0, - block_payload_hash: 'vh3Tk5KEy88s4scEbJM1n6vzYdYSn3PNmsH5uSP4zoLccNVyXAZd', + block_payload_hash: 'vh1uUGEefGiif4iMAGaCiKNLccKArF8SoCsBiCPM788to6Z6DeXH', }, ], signature: - 'sigNWXUeYUraaGi1GrxjrqKTfk7KF8xRG4pABA1qeZi8bQWRmcSmDWD6BehCNC1qNDMgQkf3JdEFHKuomToBza2iGucg9SuC', + 'sigQ5EvfC4NNFVVZKoXoVgmK7oko4CUywnrqpRTroDqY8tzNcUib1bqvUA2fWdTb6qaW5k6s9AaEWoJ6553C4MF3FxcwPbxh', }, ], refused: [ { - hash: 'ongFJ3rNnTwratXX2mTHN8MLww2rG11BeJwiPGxr2z2KdESZKKG', - protocol: 'PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1', - branch: 'BLf8hVJk9kK539kTKQ9PHFjtet3nJuAKYGqCqvFuHTZQWavrP7u', + hash: 'onyUMdZgVkjXoHCo4w7aA9mmRmuSDrdfgXTEVhm1774w64zVhVx', + protocol: 'PtBetaaEZxGcn9JDpkpAZ6E92Kh7bQb5FDoTCeYhmkfcwNehZcT', + branch: 'BMXLrvc4bTFKRNohYgQ9Y1Xj4ztborPMczRQPMPiFsFF2TZkx4j', contents: [ - { - kind: 'reveal', - source: 'tz2GeK37F1ThiGwamtxUykBuWqamWc7UcmHN', - fee: '374', - counter: '54971', - gas_limit: '1100', - storage_limit: '0', - public_key: 'sppk7c9pb7WyLmaw2JwHyH2PYeXcmALCnGwHzVCTfzx33XMV8bW3aT7', - }, { kind: 'origination', - source: 'tz2GeK37F1ThiGwamtxUykBuWqamWc7UcmHN', - fee: '544', - counter: '54972', + source: 'tz2RqxsYQyFuP9amsmrr25x9bUcBMWXGvjuD', + fee: '379', + counter: '1817', gas_limit: '600000', - storage_limit: '319', + storage_limit: '339', balance: '0', script: { code: [ @@ -4397,7 +1732,10 @@ export const pendingOperationsResponse = { args: [ [ { prim: 'CAR' }, - { prim: 'PUSH', args: [{ prim: 'string' }, { string: 'Hello ' }] }, + { + prim: 'PUSH', + args: [{ prim: 'string' }, { string: 'Hello ' }], + }, { prim: 'CONCAT' }, { prim: 'NIL', args: [{ prim: 'operation' }] }, { prim: 'PAIR' }, @@ -4410,37 +1748,32 @@ export const pendingOperationsResponse = { }, ], signature: - 'sigaD9KjwZXtfhUEpxGirsvNWyScLKQVFQM9kkFB4sTgixfwnJD2D9wt2Km1CM5o2ExGGRTZGLxAr1dZDESurwJusiuHKQvZ', - error: [ - { - kind: 'permanent', - id: 'proto.016-PtMumbai.prefilter.fees_too_low', - }, - ], + 'sigVW5CsvXPizGNvQR3P1A7jcZEB5jBFhkFvhTAbdY3DDzVdxgztG9JMDpV9kQYMx3CpUT1pNbZymwTLoNd6LCwHKhytgmJG', + error: [{ kind: 'permanent', id: 'proto.beta.prefilter.fees_too_low' }], }, ], outdated: [ { - hash: 'oneJE697j4ZNCnhoEsbyPyj4Y5MmyQh4xX6FU3HEGzKnaJkdL5B', - protocol: 'PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1', - branch: 'BLf4UgJixDsXcRnirtBzfst8uzzkcpbBjXQuMmzwwJwD75gh3GU', + hash: 'oneF43sGDQHXMfXqJYnn8cf7nNwqWmxpG4SUVpomwLB6LXFU77a', + protocol: 'PtBetaaEZxGcn9JDpkpAZ6E92Kh7bQb5FDoTCeYhmkfcwNehZcT', + branch: 'BMSMobj7qdiDmE53TCVuPGLKHFYdHJYaYVoKrADxEV6P4q6DaHb', contents: [ { - kind: 'preendorsement', - slot: 15, - level: 128095, + kind: 'preattestation', + slot: 3, + level: 176013, round: 0, - block_payload_hash: 'vh3Xu8Y1EQDMGFYaLXiau3sLukEWGjs3zHW7jynH1m7RaLTqXJpw', + block_payload_hash: 'vh25hajrfSyZwJCu4YCNzxikdJiJQuH5wDu61XXjmsfFsrjnrrcN', }, ], signature: - 'sigsVPdVAmQZrCeucDX5QNjz3H4jNWGfVEZRhjXBGg8ZSxWRK2cGdgUCdyDF47DctaJXqAbMwMHB24En9qWj4mEaTwWMC4SN', + 'sigrrifWiv9pAuidW3tKv1syrb9fuwQCWj52PJ2LmmnsV1DXZd2fZmrEf5UoSxLpchsW5yG3fbfL1zCiPoD6719HpAMNZfDz', error: [ { - kind: 'Preendorsement', - id: 'proto.016-PtMumbai.validate.consensus_operation_for_old_level', - expected: 128096, - provided: 128095, + kind: 'Preattestation', + id: 'proto.beta.validate.consensus_operation_for_old_level', + expected: 176015, + provided: 176013, }, ], }, diff --git a/packages/taquito-rpc/test/rpc-cache.spec.ts b/packages/taquito-rpc/test/rpc-cache.spec.ts index d06ffc1d89..197a86d83c 100644 --- a/packages/taquito-rpc/test/rpc-cache.spec.ts +++ b/packages/taquito-rpc/test/rpc-cache.spec.ts @@ -22,7 +22,7 @@ import { currentProposal, currentQuorum, votesListing, - porposals, + proposals, entryPoints, chainId, packData, @@ -131,7 +131,7 @@ describe('RpcClientCache test', () => { mockRpcClient.getCurrentProposal.mockReturnValue(currentProposal); mockRpcClient.getCurrentQuorum.mockReturnValue(currentQuorum); mockRpcClient.getVotesListings.mockReturnValue(votesListing); - mockRpcClient.getProposals.mockReturnValue(porposals); + mockRpcClient.getProposals.mockReturnValue(proposals); mockRpcClient.getEntrypoints.mockReturnValue(entryPoints); mockRpcClient.getChainId.mockReturnValue(chainId); mockRpcClient.packData.mockReturnValue(packData); diff --git a/packages/taquito-rpc/test/taquito-rpc.spec.ts b/packages/taquito-rpc/test/taquito-rpc.spec.ts index 1caf8f8b16..c7e337c289 100644 --- a/packages/taquito-rpc/test/taquito-rpc.spec.ts +++ b/packages/taquito-rpc/test/taquito-rpc.spec.ts @@ -4,7 +4,6 @@ import { OpKind, RpcClient } from '../src/taquito-rpc'; import BigNumber from 'bignumber.js'; import { LazyStorageDiffBigMap, - OperationContentsAndResultEndorsement, OperationContentsAndResultAttestationWithDal, OperationContentsAndResultOrigination, OperationResultTransaction, @@ -38,6 +37,8 @@ import { SmartRollupRefutationOptions, RPCSimulateOperationParam, OperationContentsAndResultDalPublishCommitment, + OperationContentsAndResultAttestation, + OperationContentsAndResultEndorsement, } from '../src/types'; import { blockIthacanetResponse, @@ -1555,9 +1556,9 @@ describe('RpcClient test', () => { method: 'GET', url: 'root/chains/test/blocks/head', }); - const endorsement = response.operations[0][0] - .contents[0] as OperationContentsAndResultEndorsement; - expect(endorsement.metadata.balance_updates![0].kind).toEqual('contract'); + const attestation = response.operations[0][0] + .contents[0] as OperationContentsAndResultAttestation; + expect(attestation.metadata.balance_updates![0].kind).toEqual('contract'); }); }); @@ -3154,11 +3155,11 @@ describe('RpcClient test', () => { method: 'GET', url: 'root/chains/test/blocks/head', }); - const endorsementWithSlot = response.operations[0][0] + const AttestationWithDal = response.operations[0][0] .contents[0] as OperationContentsAndResultAttestationWithDal; - expect(endorsementWithSlot.kind).toEqual('attestation_with_dal'); - expect(endorsementWithSlot.slot).toEqual(19); - expect(endorsementWithSlot.dal_attestation).toEqual('0'); + expect(AttestationWithDal.kind).toEqual('attestation_with_dal'); + expect(AttestationWithDal.slot).toEqual(19); + expect(AttestationWithDal.dal_attestation).toEqual('0'); }); it('should query the right url and property for operation, proto 20, dal_publish_commitment', async () => { @@ -3250,14 +3251,14 @@ describe('RpcClient test', () => { method: 'GET', url: 'root/chains/test/blocks/head', }); - const endorsementWithSlot = response.operations[0][0] + const dalPublishCommitment = response.operations[0][0] .contents[0] as OperationContentsAndResultDalPublishCommitment; - expect(endorsementWithSlot.kind).toEqual('dal_publish_commitment'); - expect(endorsementWithSlot.slot_header.slot_index).toEqual(0); - expect(endorsementWithSlot.slot_header.commitment).toEqual( + expect(dalPublishCommitment.kind).toEqual('dal_publish_commitment'); + expect(dalPublishCommitment.slot_header.slot_index).toEqual(0); + expect(dalPublishCommitment.slot_header.commitment).toEqual( 'sh1vHbHrPSt7eWqYJmM9EUk5scjbvR5PKBckJxmmDJzYHHBkca8Lz4hxXX6zpW5wbhJhswJd4v' ); - expect(endorsementWithSlot.slot_header.commitment_proof).toEqual( + expect(dalPublishCommitment.slot_header.commitment_proof).toEqual( '90c6576ad09e11b14eb464cdd214fe061ba8e8e5a3175e29fe7ff40526f90c2f2f4e02fe9fe03f7adb0fe286d7828b970eb1979f0f65ca3637a51d5456b442377d20397eb1b02544c2e435d79e156881443179fe16b32ad9e9501622a647c2ce' ); }); diff --git a/packages/taquito-utils/src/verify-signature.ts b/packages/taquito-utils/src/verify-signature.ts index 3b8560aafb..0397901da3 100644 --- a/packages/taquito-utils/src/verify-signature.ts +++ b/packages/taquito-utils/src/verify-signature.ts @@ -23,7 +23,7 @@ type SigPrefix = Prefix.EDSIG | Prefix.SPSIG | Prefix.P2SIG | Prefix.SIG; * @description Verify signature of a payload * * @param messageBytes The forged message including the magic byte (11 for block, - * 12 for preattestation/preendorsement, 13 for attestation/endorsement, 3 for generic, 5 for the PACK format of michelson) + * 12 for preattestation, 13 for attestation, 3 for generic, 5 for the PACK format of michelson) * @param publicKey The public key to verify the signature against * @param signature The signature to verify * @returns A boolean indicating if the signature matches diff --git a/packages/taquito/src/signer/interface.ts b/packages/taquito/src/signer/interface.ts index 9416c4a7e4..9bdf7ec200 100644 --- a/packages/taquito/src/signer/interface.ts +++ b/packages/taquito/src/signer/interface.ts @@ -5,7 +5,7 @@ export interface Signer { /** * * @param op Operation to sign - * @param magicByte Magic bytes 11 for block, 12 for preattestation/preendorsement, 13 for attestation/endorsements, 3 for generic, 5 for the PACK format of michelson + * @param magicByte Magic bytes 11 for block, 12 for preattestation, 13 for attestation, 3 for generic, 5 for the PACK format of michelson */ sign( op: string, diff --git a/packages/taquito/src/subscribe/filters.ts b/packages/taquito/src/subscribe/filters.ts index b2c95baa60..3ce13eb24b 100644 --- a/packages/taquito/src/subscribe/filters.ts +++ b/packages/taquito/src/subscribe/filters.ts @@ -19,8 +19,6 @@ const sourceFilter = (x: OperationContent, filter: SourceFilter) => { switch (x.kind) { case 'attestation': return 'metadata' in x && x.metadata.delegate === filter.source; - case 'endorsement': - return 'metadata' in x && x.metadata.delegate === filter.source; case 'activate_account': return 'metadata' in x && x.pkh === filter.source; default: diff --git a/packages/taquito/src/subscribe/polling-subcribe-provider.ts b/packages/taquito/src/subscribe/polling-subcribe-provider.ts index 7315791fdc..f8860cf973 100644 --- a/packages/taquito/src/subscribe/polling-subcribe-provider.ts +++ b/packages/taquito/src/subscribe/polling-subcribe-provider.ts @@ -68,7 +68,9 @@ const applyEventFilter = (filter?: EventFilter) => const internalOpResults = tx.metadata.internal_operation_results; if (internalOpResults) { for (const event of internalOpResults) { - if (eventFilter(event, filter?.address, filter?.tag, filter?.excludeFailedOperations)) { + if ( + eventFilter(event, filter?.address, filter?.tag, filter?.excludeFailedOperations) + ) { sub.next({ opHash: op.hash, blockHash: block.hash, @@ -92,7 +94,10 @@ export class PollingSubscribeProvider implements SubscribeProvider { private newBlock$: Observable; - constructor(private context: Context, config: Partial = {}) { + constructor( + private context: Context, + config: Partial = {} + ) { this._config$ = new BehaviorSubject({ ...defaultConfigStreamer, ...config, @@ -131,8 +136,6 @@ export class PollingSubscribeProvider implements SubscribeProvider { const constants = await this.context.readProvider.getProtocolConstants('head'); const blockTime = constants.minimal_block_delay ? constants.minimal_block_delay.multipliedBy(1000) - : constants.time_between_blocks - ? constants.time_between_blocks[0].multipliedBy(1000) : new BigNumber(defaultIntervalTestnetsMainnet); const confirmationPollingInterval = blockTime.dividedBy(3); diff --git a/packages/taquito/test/subscribe/polling-subscribe-provider.spec.ts b/packages/taquito/test/subscribe/polling-subscribe-provider.spec.ts index 5ceb3fa25d..8ca8f3cb8a 100644 --- a/packages/taquito/test/subscribe/polling-subscribe-provider.spec.ts +++ b/packages/taquito/test/subscribe/polling-subscribe-provider.spec.ts @@ -52,7 +52,6 @@ describe('Configurations for the PollingSubscribeProvider', () => { it('should set the pollingIntervalMilliseconds property based on the minimal_block_delay constant', async () => { const pollingSubscribeProvider = new PollingSubscribeProvider(mockContext); mockReadProvider.getProtocolConstants.mockResolvedValue({ - time_between_blocks: [new BigNumber('30'), new BigNumber('20')], minimal_block_delay: new BigNumber(15), }); await pollingSubscribeProvider['getConfirmationPollingInterval'](); @@ -63,19 +62,6 @@ describe('Configurations for the PollingSubscribeProvider', () => { ); }); - it('should set the pollingIntervalMilliseconds property based on the time_between_blocks constant', async () => { - const pollingSubscribeProvider = new PollingSubscribeProvider(mockContext); - mockReadProvider.getProtocolConstants.mockResolvedValue({ - time_between_blocks: [new BigNumber('30'), new BigNumber('20')], - }); - await pollingSubscribeProvider['getConfirmationPollingInterval'](); - expect(pollingSubscribeProvider.config.pollingIntervalMilliseconds).toEqual(10000); - expect(pollingSubscribeProvider.config.shouldObservableSubscriptionRetry).toBeFalsy(); - expect(pollingSubscribeProvider.config.observableSubscriptionRetryFunction.prototype).toEqual( - retry().prototype - ); - }); - it('should use default polling interval on error fetching the constants', async () => { const pollingSubscribeProvider = new PollingSubscribeProvider(mockContext); mockReadProvider.getProtocolConstants.mockRejectedValue(new Error()); @@ -88,10 +74,10 @@ describe('Configurations for the PollingSubscribeProvider', () => { ); }); - it('should use default polling interval if time_between_blocks is 0 (sandbox)', async () => { + it('should use default polling interval if minimal_block_delay is 0 (sandbox)', async () => { const pollingSubscribeProvider = new PollingSubscribeProvider(mockContext); mockReadProvider.getProtocolConstants.mockResolvedValue({ - time_between_blocks: [new BigNumber('0'), new BigNumber('0')], + minimal_block_delay: new BigNumber('0'), }); await pollingSubscribeProvider['getConfirmationPollingInterval'](); expect(pollingSubscribeProvider.config.pollingIntervalMilliseconds).toEqual(1000);