@taquito/rpc 21.0.4-beta.1 → 22.0.0-beta.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.
- package/dist/lib/opkind.js +1 -0
- package/dist/lib/taquito-rpc.js +7 -4
- package/dist/lib/version.js +2 -2
- package/dist/taquito-rpc.es6.js +10 -6
- package/dist/taquito-rpc.es6.js.map +1 -1
- package/dist/taquito-rpc.umd.js +10 -6
- package/dist/taquito-rpc.umd.js.map +1 -1
- package/dist/types/opkind.d.ts +2 -1
- package/dist/types/types.d.ts +138 -18
- package/package.json +5 -5
package/dist/lib/opkind.js
CHANGED
|
@@ -41,4 +41,5 @@ var OpKind;
|
|
|
41
41
|
OpKind["SMART_ROLLUP_REFUTE"] = "smart_rollup_refute";
|
|
42
42
|
OpKind["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
|
|
43
43
|
OpKind["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
|
|
44
|
+
OpKind["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
|
|
44
45
|
})(OpKind || (exports.OpKind = OpKind = {}));
|
package/dist/lib/taquito-rpc.js
CHANGED
|
@@ -461,8 +461,8 @@ class RpcClient {
|
|
|
461
461
|
'total_delegated_stake',
|
|
462
462
|
'staking_denominator',
|
|
463
463
|
]);
|
|
464
|
-
|
|
465
|
-
|
|
464
|
+
if (response.frozen_balance_by_cycle) {
|
|
465
|
+
return Object.assign(Object.assign(Object.assign({}, response), castedResponse), { frozen_balance_by_cycle: response.frozen_balance_by_cycle.map((_a) => {
|
|
466
466
|
var { deposit, deposits, fees, rewards } = _a, rest = __rest(_a, ["deposit", "deposits", "fees", "rewards"]);
|
|
467
467
|
const castedToBigNumber = (0, utils_1.castToBigNumber)({ deposit, deposits, fees, rewards }, [
|
|
468
468
|
'deposit',
|
|
@@ -471,8 +471,11 @@ class RpcClient {
|
|
|
471
471
|
'rewards',
|
|
472
472
|
]);
|
|
473
473
|
return Object.assign(Object.assign({}, rest), { deposit: castedToBigNumber.deposit, deposits: castedToBigNumber.deposits, fees: castedToBigNumber.fees, rewards: castedToBigNumber.rewards });
|
|
474
|
-
})
|
|
475
|
-
|
|
474
|
+
}) });
|
|
475
|
+
}
|
|
476
|
+
else {
|
|
477
|
+
return Object.assign(Object.assign({}, response), castedResponse);
|
|
478
|
+
}
|
|
476
479
|
});
|
|
477
480
|
}
|
|
478
481
|
/**
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "
|
|
6
|
+
"commitHash": "f0eb755ed1e0de4d1cd86623df4496f76efd0caf",
|
|
7
|
+
"version": "22.0.0-beta.0"
|
|
8
8
|
};
|
package/dist/taquito-rpc.es6.js
CHANGED
|
@@ -1403,12 +1403,13 @@ var OpKind;
|
|
|
1403
1403
|
OpKind["SMART_ROLLUP_REFUTE"] = "smart_rollup_refute";
|
|
1404
1404
|
OpKind["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
|
|
1405
1405
|
OpKind["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
|
|
1406
|
+
OpKind["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
|
|
1406
1407
|
})(OpKind || (OpKind = {}));
|
|
1407
1408
|
|
|
1408
1409
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1409
1410
|
const VERSION = {
|
|
1410
|
-
"commitHash": "
|
|
1411
|
-
"version": "
|
|
1411
|
+
"commitHash": "f0eb755ed1e0de4d1cd86623df4496f76efd0caf",
|
|
1412
|
+
"version": "22.0.0-beta.0"
|
|
1412
1413
|
};
|
|
1413
1414
|
|
|
1414
1415
|
/***
|
|
@@ -1815,8 +1816,8 @@ class RpcClient {
|
|
|
1815
1816
|
'total_delegated_stake',
|
|
1816
1817
|
'staking_denominator',
|
|
1817
1818
|
]);
|
|
1818
|
-
|
|
1819
|
-
|
|
1819
|
+
if (response.frozen_balance_by_cycle) {
|
|
1820
|
+
return Object.assign(Object.assign(Object.assign({}, response), castedResponse), { frozen_balance_by_cycle: response.frozen_balance_by_cycle.map((_a) => {
|
|
1820
1821
|
var { deposit, deposits, fees, rewards } = _a, rest = __rest(_a, ["deposit", "deposits", "fees", "rewards"]);
|
|
1821
1822
|
const castedToBigNumber = castToBigNumber({ deposit, deposits, fees, rewards }, [
|
|
1822
1823
|
'deposit',
|
|
@@ -1825,8 +1826,11 @@ class RpcClient {
|
|
|
1825
1826
|
'rewards',
|
|
1826
1827
|
]);
|
|
1827
1828
|
return Object.assign(Object.assign({}, rest), { deposit: castedToBigNumber.deposit, deposits: castedToBigNumber.deposits, fees: castedToBigNumber.fees, rewards: castedToBigNumber.rewards });
|
|
1828
|
-
})
|
|
1829
|
-
|
|
1829
|
+
}) });
|
|
1830
|
+
}
|
|
1831
|
+
else {
|
|
1832
|
+
return Object.assign(Object.assign({}, response), castedResponse);
|
|
1833
|
+
}
|
|
1830
1834
|
});
|
|
1831
1835
|
}
|
|
1832
1836
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-rpc.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-rpc.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/taquito-rpc.umd.js
CHANGED
|
@@ -1404,12 +1404,13 @@
|
|
|
1404
1404
|
OpKind["SMART_ROLLUP_REFUTE"] = "smart_rollup_refute";
|
|
1405
1405
|
OpKind["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
|
|
1406
1406
|
OpKind["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
|
|
1407
|
+
OpKind["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
|
|
1407
1408
|
})(exports.OpKind || (exports.OpKind = {}));
|
|
1408
1409
|
|
|
1409
1410
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1410
1411
|
const VERSION = {
|
|
1411
|
-
"commitHash": "
|
|
1412
|
-
"version": "
|
|
1412
|
+
"commitHash": "f0eb755ed1e0de4d1cd86623df4496f76efd0caf",
|
|
1413
|
+
"version": "22.0.0-beta.0"
|
|
1413
1414
|
};
|
|
1414
1415
|
|
|
1415
1416
|
/***
|
|
@@ -1816,8 +1817,8 @@
|
|
|
1816
1817
|
'total_delegated_stake',
|
|
1817
1818
|
'staking_denominator',
|
|
1818
1819
|
]);
|
|
1819
|
-
|
|
1820
|
-
|
|
1820
|
+
if (response.frozen_balance_by_cycle) {
|
|
1821
|
+
return Object.assign(Object.assign(Object.assign({}, response), castedResponse), { frozen_balance_by_cycle: response.frozen_balance_by_cycle.map((_a) => {
|
|
1821
1822
|
var { deposit, deposits, fees, rewards } = _a, rest = __rest(_a, ["deposit", "deposits", "fees", "rewards"]);
|
|
1822
1823
|
const castedToBigNumber = castToBigNumber({ deposit, deposits, fees, rewards }, [
|
|
1823
1824
|
'deposit',
|
|
@@ -1826,8 +1827,11 @@
|
|
|
1826
1827
|
'rewards',
|
|
1827
1828
|
]);
|
|
1828
1829
|
return Object.assign(Object.assign({}, rest), { deposit: castedToBigNumber.deposit, deposits: castedToBigNumber.deposits, fees: castedToBigNumber.fees, rewards: castedToBigNumber.rewards });
|
|
1829
|
-
})
|
|
1830
|
-
|
|
1830
|
+
}) });
|
|
1831
|
+
}
|
|
1832
|
+
else {
|
|
1833
|
+
return Object.assign(Object.assign({}, response), castedResponse);
|
|
1834
|
+
}
|
|
1831
1835
|
});
|
|
1832
1836
|
}
|
|
1833
1837
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-rpc.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-rpc.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
SMART_ROLLUP_TIMEOUT = "smart_rollup_timeout",
|
|
39
|
-
DAL_PUBLISH_COMMITMENT = "dal_publish_commitment"
|
|
39
|
+
DAL_PUBLISH_COMMITMENT = "dal_publish_commitment",
|
|
40
|
+
DAL_ENTRAPMENT_EVIDENCE = "dal_entrapment_evidence"
|
|
40
41
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -50,21 +50,83 @@ export interface Inode {
|
|
|
50
50
|
proofs: [string | null, string | null];
|
|
51
51
|
}
|
|
52
52
|
export interface DelegatesResponse {
|
|
53
|
+
deactivated: boolean;
|
|
54
|
+
is_forbidden?: boolean;
|
|
55
|
+
participation?: {
|
|
56
|
+
expected_cycle_activity: number;
|
|
57
|
+
minimal_cycle_activity: number;
|
|
58
|
+
missed_slots: number;
|
|
59
|
+
missed_levels: number;
|
|
60
|
+
remaining_allowed_missed_slots: number;
|
|
61
|
+
expected_attesting_rewards: string;
|
|
62
|
+
};
|
|
63
|
+
dal_participation?: {
|
|
64
|
+
expected_assigned_shards_per_slot: number;
|
|
65
|
+
delegate_attested_dal_slots: number;
|
|
66
|
+
delegate_attestable_dal_slots: number;
|
|
67
|
+
expected_dal_rewards: string;
|
|
68
|
+
sufficient_dal_participationa: true;
|
|
69
|
+
denounced: true;
|
|
70
|
+
};
|
|
71
|
+
grace_period: number;
|
|
72
|
+
active_staking_parameters?: StakingParameters;
|
|
73
|
+
pending_staking_parameters?: {
|
|
74
|
+
cycle: number;
|
|
75
|
+
parameters: StakingParameters;
|
|
76
|
+
}[];
|
|
77
|
+
baking_power?: string;
|
|
78
|
+
total_staked?: string;
|
|
79
|
+
total_delegated?: string;
|
|
80
|
+
min_delegated_in_current_cycle?: MinDelegatedInCurrentCycle;
|
|
81
|
+
own_full_balance?: string;
|
|
82
|
+
own_staked?: string;
|
|
83
|
+
own_delegated?: string;
|
|
84
|
+
external_staked?: string;
|
|
85
|
+
external_delegated?: string;
|
|
86
|
+
total_unstaked_per_cycle?: {
|
|
87
|
+
cycle: number;
|
|
88
|
+
deposit: string;
|
|
89
|
+
}[];
|
|
90
|
+
denunciations?: {
|
|
91
|
+
operation_hash: string;
|
|
92
|
+
rewarded: string;
|
|
93
|
+
misbehaviour: {
|
|
94
|
+
level: number;
|
|
95
|
+
round: number;
|
|
96
|
+
kind: 'attestation' | 'block' | 'preattestation';
|
|
97
|
+
};
|
|
98
|
+
}[];
|
|
99
|
+
estimated_shared_pending_slashed_amount?: string;
|
|
100
|
+
staking_denominator?: BigNumber;
|
|
101
|
+
current_voting_power?: BigNumber;
|
|
102
|
+
voting_power?: BigNumber;
|
|
103
|
+
voting_info?: VotingInfoResponse;
|
|
104
|
+
consensus_key?: {
|
|
105
|
+
active: {
|
|
106
|
+
pkh: string;
|
|
107
|
+
pk: string;
|
|
108
|
+
};
|
|
109
|
+
pendings?: {
|
|
110
|
+
cycle: number;
|
|
111
|
+
pkh: string;
|
|
112
|
+
pk: string;
|
|
113
|
+
}[];
|
|
114
|
+
};
|
|
115
|
+
stakers?: {
|
|
116
|
+
staker: string;
|
|
117
|
+
frozen_deposits: string;
|
|
118
|
+
}[];
|
|
119
|
+
delegators?: string[];
|
|
53
120
|
full_balance?: BigNumber;
|
|
54
121
|
current_frozen_deposits?: BigNumber;
|
|
55
122
|
frozen_deposits?: BigNumber;
|
|
56
|
-
staking_balance
|
|
57
|
-
delegated_contracts
|
|
58
|
-
delegated_balance
|
|
59
|
-
min_delegated_in_current_cycle?: MinDelegatedInCurrentCycle;
|
|
60
|
-
deactivated: boolean;
|
|
123
|
+
staking_balance?: BigNumber;
|
|
124
|
+
delegated_contracts?: string[];
|
|
125
|
+
delegated_balance?: BigNumber;
|
|
61
126
|
total_delegated_stake?: BigNumber;
|
|
62
|
-
staking_denominator?: BigNumber;
|
|
63
127
|
active_consensus_key?: string;
|
|
64
|
-
grace_period: number;
|
|
65
128
|
pending_denunciations?: boolean;
|
|
66
129
|
frozen_deposits_limit?: BigNumber;
|
|
67
|
-
voting_power?: BigNumber;
|
|
68
130
|
current_ballot?: BallotVote;
|
|
69
131
|
current_proposals?: string[];
|
|
70
132
|
remaining_proposals?: number;
|
|
@@ -73,6 +135,10 @@ export interface DelegatesResponse {
|
|
|
73
135
|
frozen_balance?: BigNumber;
|
|
74
136
|
frozen_balance_by_cycle?: Frozenbalancebycycle[];
|
|
75
137
|
}
|
|
138
|
+
export type StakingParameters = {
|
|
139
|
+
limit_of_staking_over_baking_millionth: number;
|
|
140
|
+
edge_of_baking_over_staking_billionth: number;
|
|
141
|
+
};
|
|
76
142
|
export type MinDelegatedInCurrentCycle = {
|
|
77
143
|
amount: string;
|
|
78
144
|
level?: LevelInfo;
|
|
@@ -126,13 +192,7 @@ export interface BlockFullHeader {
|
|
|
126
192
|
}
|
|
127
193
|
export type InlinedAttestationKindEnum = OpKind.ATTESTATION;
|
|
128
194
|
export type InlinedEndorsementKindEnum = OpKind.ENDORSEMENT;
|
|
129
|
-
export
|
|
130
|
-
kind: InlinedAttestationKindEnum;
|
|
131
|
-
slot?: number;
|
|
132
|
-
round?: number;
|
|
133
|
-
block_payload_hash?: string;
|
|
134
|
-
level: number;
|
|
135
|
-
}
|
|
195
|
+
export type InlinedAttestationContents = OperationContentsAttestation | OperationContentsAttestationWithDal;
|
|
136
196
|
export interface InlinedEndorsementContents {
|
|
137
197
|
kind: InlinedEndorsementKindEnum;
|
|
138
198
|
slot?: number;
|
|
@@ -357,6 +417,7 @@ export interface OperationContentsUpdateConsensusKey {
|
|
|
357
417
|
gas_limit: string;
|
|
358
418
|
storage_limit: string;
|
|
359
419
|
pk: string;
|
|
420
|
+
proof?: string;
|
|
360
421
|
}
|
|
361
422
|
export interface OperationContentsDrainDelegate {
|
|
362
423
|
kind: OpKind.DRAIN_DELEGATE;
|
|
@@ -470,7 +531,16 @@ export interface OperationContentsDalPublishCommitment {
|
|
|
470
531
|
commitment_proof: string;
|
|
471
532
|
};
|
|
472
533
|
}
|
|
473
|
-
export
|
|
534
|
+
export interface OperationContentsDalEntrapmentEvidence {
|
|
535
|
+
kind: OpKind.DAL_ENTRAPMENT_EVIDENCE;
|
|
536
|
+
attestation: InlinedAttestation;
|
|
537
|
+
slot_index: number;
|
|
538
|
+
shard_with_proof: {
|
|
539
|
+
shard: (number | string[])[];
|
|
540
|
+
proof: string;
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
export type OperationContents = OperationContentsAttestation | OperationContentsPreattestation | OperationContentsDoublePreattestation | OperationContentsEndorsement | OperationContentsPreEndorsement | OperationContentsDoublePreEndorsement | OperationContentsRevelation | OperationContentsVdfRevelation | OperationContentsDoubleAttestation | OperationContentsDoubleEndorsement | OperationContentsDoubleBaking | OperationContentsActivateAccount | OperationContentsProposals | OperationContentsBallot | OperationContentsReveal | OperationContentsTransaction | OperationContentsOrigination | OperationContentsDelegation | OperationContentsAttestationWithDal | OperationContentsEndorsementWithDal | OperationContentsFailingNoop | OperationContentsRegisterGlobalConstant | OperationContentsSetDepositsLimit | OperationContentsTransferTicket | OperationContentsUpdateConsensusKey | OperationContentsDrainDelegate | OperationContentsIncreasePaidStorage | OperationContentsSmartRollupOriginate | OperationContentsSmartRollupAddMessages | OperationContentsSmartRollupExecuteOutboxMessage | OperationContentsSmartRollupPublish | OperationContentsSmartRollupCement | OperationContentsSmartRollupRefute | OperationContentsSmartRollupRecoverBond | OperationContentsSmartRollupTimeout | OperationContentsDalEntrapmentEvidence | OperationContentsDalPublishCommitment;
|
|
474
544
|
export interface OperationContentsAndResultMetadataExtended1 {
|
|
475
545
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
476
546
|
delegate: string;
|
|
@@ -587,6 +657,9 @@ export interface OperationContentsAndResultMetadataDalPublishCommitment {
|
|
|
587
657
|
operation_result: OperationResultDalPublishCommitment;
|
|
588
658
|
internal_operation_results?: InternalOperationResult[];
|
|
589
659
|
}
|
|
660
|
+
export interface OperationContentsAndResultMetadataDalEntrapmentEvidence {
|
|
661
|
+
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
662
|
+
}
|
|
590
663
|
export interface OperationContentsAndResultAttestation {
|
|
591
664
|
kind: OpKind.ATTESTATION;
|
|
592
665
|
block_payload_hash?: string;
|
|
@@ -769,6 +842,7 @@ export interface OperationContentsAndResultUpdateConsensusKey {
|
|
|
769
842
|
gas_limit: string;
|
|
770
843
|
storage_limit: string;
|
|
771
844
|
pk: string;
|
|
845
|
+
proof?: string;
|
|
772
846
|
metadata: OperationContentsAndResultMetadataUpdateConsensusKey;
|
|
773
847
|
}
|
|
774
848
|
export interface OperationContentsAndResultDrainDelegate {
|
|
@@ -898,7 +972,17 @@ export interface OperationContentsAndResultDalPublishCommitment {
|
|
|
898
972
|
};
|
|
899
973
|
metadata: OperationContentsAndResultMetadataDalPublishCommitment;
|
|
900
974
|
}
|
|
901
|
-
export
|
|
975
|
+
export interface OperationContentsAndResultDalEntrapmentEvidence {
|
|
976
|
+
kind: OpKind.DAL_ENTRAPMENT_EVIDENCE;
|
|
977
|
+
attestation: InlinedAttestation;
|
|
978
|
+
slot_index: number;
|
|
979
|
+
shard_with_proof: {
|
|
980
|
+
shard: (number | string[])[];
|
|
981
|
+
proof: string;
|
|
982
|
+
};
|
|
983
|
+
metadata: OperationContentsAndResultMetadataDalEntrapmentEvidence;
|
|
984
|
+
}
|
|
985
|
+
export type OperationContentsAndResult = OperationContentsAndResultAttestation | OperationContentsAndResultPreattestation | OperationContentsAndResultDoublePreattestation | OperationContentsAndResultEndorsement | OperationContentsAndResultPreEndorsement | OperationContentsAndResultDoublePreEndorsement | OperationContentsAndResultRevelation | OperationContentsAndResultDoubleEndorsement | OperationContentsAndResultDoubleAttestation | OperationContentsAndResultDoubleBaking | OperationContentsAndResultActivateAccount | OperationContentsAndResultProposals | OperationContentsAndResultBallot | OperationContentsAndResultReveal | OperationContentsAndResultTransaction | OperationContentsAndResultOrigination | OperationContentsAndResultDelegation | OperationContentsAndResultAttestationWithDal | OperationContentsAndResultEndorsementWithDal | OperationContentsAndResultRegisterGlobalConstant | OperationContentsAndResultSetDepositsLimit | OperationContentsAndResultTransferTicket | OperationContentsAndResultIncreasePaidStorage | OperationContentsAndResultUpdateConsensusKey | OperationContentsAndResultDrainDelegate | OperationContentsAndResultVdfRevelation | OperationContentsAndResultSmartRollupOriginate | OperationContentsAndResultSmartRollupAddMessages | OperationContentsAndResultSmartRollupExecuteOutboxMessage | OperationContentsAndResultSmartRollupPublish | OperationContentsAndResultSmartRollupCement | OperationContentsAndResultSmartRollupRefute | OperationContentsAndResultSmartRollupRecoverBond | OperationContentsAndResultSmartRollupTimeout | OperationContentsAndResultDalPublishCommitment | OperationContentsAndResultDalEntrapmentEvidence;
|
|
902
986
|
export type OperationContentsAndResultWithFee = OperationContentsAndResultTransaction | OperationContentsAndResultOrigination | OperationContentsAndResultDelegation | OperationContentsAndResultReveal | OperationContentsAndResultRegisterGlobalConstant | OperationContentsAndResultSetDepositsLimit | OperationContentsAndResultUpdateConsensusKey | OperationContentsAndResultIncreasePaidStorage | OperationContentsAndResultTransferTicket | OperationContentsAndResultSmartRollupAddMessages | OperationContentsAndResultSmartRollupOriginate | OperationContentsAndResultSmartRollupExecuteOutboxMessage | OperationContentsAndResultDalPublishCommitment;
|
|
903
987
|
export declare enum OPERATION_METADATA {
|
|
904
988
|
TOO_LARGE = "too large"
|
|
@@ -1416,7 +1500,7 @@ export interface OperationContentsAndResultMetadataOrigination {
|
|
|
1416
1500
|
operation_result: OperationResultOrigination;
|
|
1417
1501
|
internal_operation_results?: InternalOperationResult[];
|
|
1418
1502
|
}
|
|
1419
|
-
export type ConstantsResponse = ConstantsResponseCommon & ConstantsResponseProto021 & ConstantsResponseProto020 & ConstantsResponseProto019 & ConstantsResponseProto017 & ConstantsResponseProto016 & ConstantsResponseProto015 & ConstantsResponseProto014 & ConstantsResponseProto013 & ConstantsResponseProto012 & ConstantsResponseProto011 & ConstantsResponseProto010 & ConstantsResponseProto009 & ConstantsResponseProto008 & ConstantsResponseProto007 & ConstantsResponseProto006 & ConstantsResponseProto005 & ConstantsResponseProto004 & ConstantsResponseProto003 & ConstantsResponseProto001And002;
|
|
1503
|
+
export type ConstantsResponse = ConstantsResponseCommon & ConstantsResponseProto022 & ConstantsResponseProto021 & ConstantsResponseProto020 & ConstantsResponseProto019 & ConstantsResponseProto017 & ConstantsResponseProto016 & ConstantsResponseProto015 & ConstantsResponseProto014 & ConstantsResponseProto013 & ConstantsResponseProto012 & ConstantsResponseProto011 & ConstantsResponseProto010 & ConstantsResponseProto009 & ConstantsResponseProto008 & ConstantsResponseProto007 & ConstantsResponseProto006 & ConstantsResponseProto005 & ConstantsResponseProto004 & ConstantsResponseProto003 & ConstantsResponseProto001And002;
|
|
1420
1504
|
export interface ConstantsResponseCommon {
|
|
1421
1505
|
proof_of_work_nonce_size: number;
|
|
1422
1506
|
nonce_length: number;
|
|
@@ -1444,6 +1528,42 @@ export type Ratio = {
|
|
|
1444
1528
|
numerator: number;
|
|
1445
1529
|
denominator: number;
|
|
1446
1530
|
};
|
|
1531
|
+
export interface ConstantsResponseProto022 extends Omit<ConstantsResponseProto021, 'adaptive_issuance_activation_vote_enable' | 'adaptive_issuance_force_activation' | 'adaptive_issuance_launch_ema_threshold' | 'autostaking_enable' | 'consensus_threshold' | 'issuance_weights' | 'dal_parametric' | 'max_slashing_period' | 'max_slashing_threshold' | 'ns_enable' | 'percentage_of_frozen_deposits_slashed_per_double_attestation'> {
|
|
1532
|
+
aggregate_attestation: boolean;
|
|
1533
|
+
all_bakers_attest_activation_level: null | number;
|
|
1534
|
+
allow_tz4_delegate_enable: boolean;
|
|
1535
|
+
consensus_key_activation_delay: number;
|
|
1536
|
+
consensus_threshold_size: number;
|
|
1537
|
+
dal_parametric: {
|
|
1538
|
+
attestation_lag: number;
|
|
1539
|
+
attestation_threshold: number;
|
|
1540
|
+
feature_enable: boolean;
|
|
1541
|
+
incentives_enable: boolean;
|
|
1542
|
+
minimal_participation_ratio: Ratio;
|
|
1543
|
+
number_of_shards: number;
|
|
1544
|
+
number_of_slots: number;
|
|
1545
|
+
page_size: number;
|
|
1546
|
+
redundancy_factor: number;
|
|
1547
|
+
rewards_ratio: Ratio;
|
|
1548
|
+
slot_size: number;
|
|
1549
|
+
traps_fraction: Ratio;
|
|
1550
|
+
};
|
|
1551
|
+
denunciation_period: number;
|
|
1552
|
+
issuance_modification_delay: number;
|
|
1553
|
+
issuance_weights: {
|
|
1554
|
+
attesting_reward_weight: number;
|
|
1555
|
+
baking_reward_bonus_weight: number;
|
|
1556
|
+
baking_reward_fixed_portion_weight: number;
|
|
1557
|
+
base_total_issued_per_minute: string;
|
|
1558
|
+
dal_rewards_weight: number;
|
|
1559
|
+
seed_nonce_revelation_tip_weight: number;
|
|
1560
|
+
vdf_revelation_tip_weight: number;
|
|
1561
|
+
};
|
|
1562
|
+
max_slashing_threshold: Ratio;
|
|
1563
|
+
slashing_delay: number;
|
|
1564
|
+
tolerated_inactivity_period: number;
|
|
1565
|
+
unstake_finalization_delay: number;
|
|
1566
|
+
}
|
|
1447
1567
|
export type ConstantsResponseProto021 = ConstantsResponseProto020;
|
|
1448
1568
|
export interface ConstantsResponseProto020 extends Omit<ConstantsResponseProto019, 'adaptive_rewards_params' | 'blocks_per_stake_snapshot' | 'dal_parametric' | 'issuance_weights' | 'liquidity_baking_subsidy_weight' | 'preserved_cycles' | 'smart_rollup_reveal_activation_level'> {
|
|
1449
1569
|
adaptive_issuance_force_activation: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/rpc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0-beta.0",
|
|
4
4
|
"description": "Provides low level methods, and types to invoke RPC calls from a Nomadic Tezos RPC node",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@taquito/core": "^
|
|
70
|
-
"@taquito/http-utils": "^
|
|
71
|
-
"@taquito/utils": "^
|
|
69
|
+
"@taquito/core": "^22.0.0-beta.0",
|
|
70
|
+
"@taquito/http-utils": "^22.0.0-beta.0",
|
|
71
|
+
"@taquito/utils": "^22.0.0-beta.0",
|
|
72
72
|
"bignumber.js": "^9.1.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"ts-toolbelt": "^9.6.0",
|
|
99
99
|
"typescript": "~5.5.4"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "239ae96ca142f3f63ecfc7e51731c115c3fe322f"
|
|
102
102
|
}
|