@tezos-x/octez.js-rpc 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpKind = void 0;
4
+ var OpKind;
5
+ (function (OpKind) {
6
+ OpKind["ORIGINATION"] = "origination";
7
+ OpKind["DELEGATION"] = "delegation";
8
+ OpKind["REVEAL"] = "reveal";
9
+ OpKind["TRANSACTION"] = "transaction";
10
+ OpKind["ACTIVATION"] = "activate_account";
11
+ OpKind["ATTESTATION"] = "attestation";
12
+ OpKind["ENDORSEMENT"] = "endorsement";
13
+ OpKind["PREATTESTATION"] = "preattestation";
14
+ OpKind["PREENDORSEMENT"] = "preendorsement";
15
+ OpKind["SET_DEPOSITS_LIMIT"] = "set_deposits_limit";
16
+ OpKind["DOUBLE_PREATTESTATION_EVIDENCE"] = "double_preattestation_evidence";
17
+ OpKind["DOUBLE_PREENDORSEMENT_EVIDENCE"] = "double_preendorsement_evidence";
18
+ OpKind["ATTESTATION_WITH_DAL"] = "attestation_with_dal";
19
+ OpKind["ENDORSEMENT_WITH_DAL"] = "endorsement_with_dal";
20
+ OpKind["SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
21
+ OpKind["DOUBLE_ATTESTATION_EVIDENCE"] = "double_attestation_evidence";
22
+ OpKind["DOUBLE_ENDORSEMENT_EVIDENCE"] = "double_endorsement_evidence";
23
+ OpKind["DOUBLE_BAKING_EVIDENCE"] = "double_baking_evidence";
24
+ OpKind["PROPOSALS"] = "proposals";
25
+ OpKind["BALLOT"] = "ballot";
26
+ OpKind["FAILING_NOOP"] = "failing_noop";
27
+ OpKind["REGISTER_GLOBAL_CONSTANT"] = "register_global_constant";
28
+ OpKind["TRANSFER_TICKET"] = "transfer_ticket";
29
+ OpKind["INCREASE_PAID_STORAGE"] = "increase_paid_storage";
30
+ OpKind["UPDATE_CONSENSUS_KEY"] = "update_consensus_key";
31
+ OpKind["DRAIN_DELEGATE"] = "drain_delegate";
32
+ OpKind["VDF_REVELATION"] = "vdf_revelation";
33
+ OpKind["EVENT"] = "event";
34
+ OpKind["TICKET_UPDATES"] = "ticket_updates";
35
+ OpKind["SMART_ROLLUP_ORIGINATE"] = "smart_rollup_originate";
36
+ OpKind["SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
37
+ OpKind["SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE"] = "smart_rollup_execute_outbox_message";
38
+ OpKind["SMART_ROLLUP_PUBLISH"] = "smart_rollup_publish";
39
+ OpKind["SMART_ROLLUP_CEMENT"] = "smart_rollup_cement";
40
+ OpKind["SMART_ROLLUP_RECOVER_BOND"] = "smart_rollup_recover_bond";
41
+ OpKind["SMART_ROLLUP_REFUTE"] = "smart_rollup_refute";
42
+ OpKind["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
43
+ OpKind["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
44
+ OpKind["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
45
+ OpKind["PREATTESTATIONS_AGGREGATE"] = "preattestations_aggregate";
46
+ OpKind["ATTESTATIONS_AGGREGATE"] = "attestations_aggregate";
47
+ OpKind["UPDATE_COMPANION_KEY"] = "update_companion_key";
48
+ OpKind["DOUBLE_CONSENSUS_OPERATION_EVIDENCE"] = "double_consensus_operation_evidence";
49
+ })(OpKind || (exports.OpKind = OpKind = {}));
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RPCMethodName = exports.defaultRPCOptions = exports.defaultChain = void 0;
4
+ exports.defaultChain = 'main';
5
+ exports.defaultRPCOptions = { block: 'head' };
6
+ var RPCMethodName;
7
+ (function (RPCMethodName) {
8
+ RPCMethodName["GET_BAKING_RIGHTS"] = "getBakingRights";
9
+ RPCMethodName["GET_BALLOTS"] = "getBallots";
10
+ RPCMethodName["GET_BALLOT_LIST"] = "getBallotList";
11
+ RPCMethodName["GET_BIG_MAP_EXPR"] = "getBigMapExpr";
12
+ RPCMethodName["GET_BLOCK_HASH"] = "getBlockHash";
13
+ RPCMethodName["GET_BLOCK"] = "getBlock";
14
+ RPCMethodName["GET_BLOCK_HEADER"] = "getBlockHeader";
15
+ RPCMethodName["GET_BLOCK_METADATA"] = "getBlockMetadata";
16
+ RPCMethodName["GET_BALANCE"] = "getBalance";
17
+ RPCMethodName["GET_SPENDABLE"] = "getSpendable";
18
+ RPCMethodName["GET_BALANCE_AND_FROZEN_BONDS"] = "getBalanceAndFrozenBonds";
19
+ RPCMethodName["GET_SPENDABLE_AND_FROZEN_BONDS"] = "getSpendableAndFrozenBonds";
20
+ RPCMethodName["GET_FULL_BALANCE"] = "getFullBalance";
21
+ RPCMethodName["GET_STAKED_BALANCE"] = "getStakedBalance";
22
+ RPCMethodName["GET_UNSTAKED_FINALIZABLE_BALANCE"] = "getUnstakedFinalizableBalance";
23
+ RPCMethodName["GET_UNSTAKED_FROZEN_BALANCE"] = "getUnstakedFrozenBalance";
24
+ RPCMethodName["GET_UNSTAKE_REQUESTS"] = "getUnstakeRequests";
25
+ RPCMethodName["GET_CHAIN_ID"] = "getChainId";
26
+ RPCMethodName["GET_CONSTANTS"] = "getConstants";
27
+ RPCMethodName["GET_CONTRACT"] = "getContract";
28
+ RPCMethodName["GET_CURRENT_PERIOD"] = "getCurrentPeriod";
29
+ RPCMethodName["GET_CURRENT_PROPOSAL"] = "getCurrentProposal";
30
+ RPCMethodName["GET_CURRENT_QUORUM"] = "getCurrentQuorum";
31
+ RPCMethodName["GET_DELEGATE"] = "getDelegate";
32
+ RPCMethodName["GET_ALL_DELEGATES"] = "getAllDelegates";
33
+ RPCMethodName["GET_DELEGATES"] = "getDelegates";
34
+ RPCMethodName["GET_VOTING_INFO"] = "getVotingInfo";
35
+ RPCMethodName["GET_ACTIVE_STAKING_PARAMETERS"] = "getActiveStakingParameters";
36
+ RPCMethodName["GET_PENDING_STAKING_PARAMETERS"] = "getPendingStakingParameters";
37
+ RPCMethodName["GET_ATTESTATION_RIGHTS"] = "getAttestationRights";
38
+ RPCMethodName["GET_ENTRYPOINTS"] = "getEntrypoints";
39
+ RPCMethodName["GET_LIVE_BLOCKS"] = "getLiveBlocks";
40
+ RPCMethodName["GET_MANAGER_KEY"] = "getManagerKey";
41
+ RPCMethodName["GET_NORMALIZED_SCRIPT"] = "getNormalizedScript";
42
+ RPCMethodName["GET_PROPOSALS"] = "getProposals";
43
+ RPCMethodName["GET_PROTOCOLS"] = "getProtocols";
44
+ RPCMethodName["GET_SAPLING_DIFF_BY_CONTRACT"] = "getSaplingDiffByContract";
45
+ RPCMethodName["GET_PROTOCOL_ACTIVATIONS"] = "getProtocolActivations";
46
+ RPCMethodName["GET_SAPLING_DIFF_BY_ID"] = "getSaplingDiffById";
47
+ RPCMethodName["GET_SCRIPT"] = "getScript";
48
+ RPCMethodName["GET_STORAGE"] = "getStorage";
49
+ RPCMethodName["GET_SUCCESSOR_PERIOD"] = "getSuccessorPeriod";
50
+ RPCMethodName["GET_VOTES_LISTINGS"] = "getVotesListings";
51
+ RPCMethodName["PACK_DATA"] = "packData";
52
+ RPCMethodName["GET_STORAGE_USED_SPACE"] = "getStorageUsedSpace";
53
+ RPCMethodName["GET_STORAGE_PAID_SPACE"] = "getStoragePaidSpace";
54
+ RPCMethodName["GET_TICKET_BALANCE"] = "getTicketBalance";
55
+ RPCMethodName["GET_ALL_TICKET_BALANCES"] = "getAllTicketBalances";
56
+ RPCMethodName["GET_ADAPTIVE_ISSUANCE_LAUNCH_CYCLE"] = "getAdaptiveIssuanceLaunchCycle";
57
+ RPCMethodName["GET_PENDING_OPERATIONS"] = "getPendingOperations";
58
+ RPCMethodName["GET_DESTINATION_INDEX"] = "getDestinationIndex";
59
+ })(RPCMethodName || (exports.RPCMethodName = RPCMethodName = {}));