@@ -89,7 +89,7 @@ export class ParameterChangeAction extends Schema.TaggedClass<ParameterChangeAct
8989 * @category schemas
9090 */
9191export const ParameterChangeActionCDDL = Schema . Tuple (
92- Schema . Literal ( 0 ) , // action type
92+ Schema . Literal ( 0n ) , // action type
9393 Schema . NullOr ( GovActionIdCDDL ) , // gov_action_id / nil
9494 CBOR . RecordSchema , // protocol_param_update
9595 Schema . NullOr ( CBOR . ByteArray ) // policy_hash / nil
@@ -115,7 +115,7 @@ export const ParameterChangeActionFromCDDL = Schema.transformOrFail(
115115 const policyHash = action . policyHash ? yield * ParseResult . encode ( ScriptHash . FromBytes ) ( action . policyHash ) : null
116116
117117 // Return as CBOR tuple
118- return [ 0 , govActionId , protocolParamUpdate , policyHash ] as const
118+ return [ 0n , govActionId , protocolParamUpdate , policyHash ] as const
119119 } ) ,
120120 decode : ( cddl ) =>
121121 Eff . gen ( function * ( ) {
@@ -157,7 +157,7 @@ export class HardForkInitiationAction extends Schema.TaggedClass<HardForkInitiat
157157 * @category schemas
158158 */
159159export const HardForkInitiationActionCDDL = Schema . Tuple (
160- Schema . Literal ( 1 ) , // action type
160+ Schema . Literal ( 1n ) , // action type
161161 Schema . NullOr ( GovActionIdCDDL ) , // gov_action_id / nil
162162 Schema . Tuple ( CBOR . Integer , CBOR . Integer ) , // protocol_version = [major, minor]
163163 Schema . NullOr ( CBOR . ByteArray ) // policy_hash / nil
@@ -183,7 +183,7 @@ export const HardForkInitiationActionFromCDDL = Schema.transformOrFail(
183183
184184 // Return as CBOR tuple
185185 return [
186- 1 ,
186+ 1n ,
187187 govActionId ,
188188 [ BigInt ( action . protocolVersion [ 0 ] ) , BigInt ( action . protocolVersion [ 1 ] ) ] ,
189189 policyHash
@@ -231,7 +231,7 @@ export class TreasuryWithdrawalsAction extends Schema.TaggedClass<TreasuryWithdr
231231 * @category schemas
232232 */
233233export const TreasuryWithdrawalsActionCDDL = Schema . Tuple (
234- Schema . Literal ( 2 ) , // action type
234+ Schema . Literal ( 2n ) , // action type
235235 Schema . MapFromSelf ( {
236236 key : CBOR . ByteArray , // reward_account as bytes
237237 value : CBOR . Integer // coin as bigint
@@ -260,7 +260,7 @@ export const TreasuryWithdrawalsActionFromCDDL = Schema.transformOrFail(
260260 const policyHash = action . policyHash ? yield * ParseResult . encode ( ScriptHash . FromBytes ) ( action . policyHash ) : null
261261
262262 // Return as CBOR tuple
263- return [ 2 , withdrawals , policyHash ] as const
263+ return [ 2n , withdrawals , policyHash ] as const
264264 } ) ,
265265 decode : ( cddl ) =>
266266 Eff . gen ( function * ( ) {
@@ -300,7 +300,7 @@ export class NoConfidenceAction extends Schema.TaggedClass<NoConfidenceAction>()
300300 * @category schemas
301301 */
302302export const NoConfidenceActionCDDL = Schema . Tuple (
303- Schema . Literal ( 3 ) , // action type
303+ Schema . Literal ( 3n ) , // action type
304304 Schema . NullOr ( GovActionIdCDDL ) // gov_action_id / nil
305305)
306306
@@ -322,7 +322,7 @@ export const NoConfidenceActionFromCDDL = Schema.transformOrFail(
322322 : null
323323
324324 // Return as CBOR tuple
325- return [ 3 , govActionId ] as const
325+ return [ 3n , govActionId ] as const
326326 } ) ,
327327 decode : ( cddl ) =>
328328 Eff . gen ( function * ( ) {
@@ -359,7 +359,7 @@ export class UpdateCommitteeAction extends Schema.TaggedClass<UpdateCommitteeAct
359359 * @category schemas
360360 */
361361export const UpdateCommitteeActionCDDL = Schema . Tuple (
362- Schema . Literal ( 4 ) , // action type
362+ Schema . Literal ( 4n ) , // action type
363363 Schema . NullOr ( GovActionIdCDDL ) , // gov_action_id / nil
364364 Schema . Array ( CBOR . CBORSchema ) , // set<committee_cold_credential>
365365 CBOR . MapSchema , // { * committee_cold_credential => committee_hot_credential }
@@ -387,7 +387,7 @@ export const UpdateCommitteeActionFromCDDL = Schema.transformOrFail(
387387 const threshold = yield * ParseResult . encode ( CBOR . CBORSchema ) ( action . threshold )
388388
389389 // Return as CBOR tuple
390- return [ 4 , govActionId , membersToRemove , membersToAdd , threshold ] as const
390+ return [ 4n , govActionId , membersToRemove , membersToAdd , threshold ] as const
391391 } ) ,
392392 decode : ( cddl ) =>
393393 Eff . gen ( function * ( ) {
@@ -425,7 +425,7 @@ export class NewConstitutionAction extends Schema.TaggedClass<NewConstitutionAct
425425 * @category schemas
426426 */
427427export const NewConstitutionActionCDDL = Schema . Tuple (
428- Schema . Literal ( 5 ) , // action type
428+ Schema . Literal ( 5n ) , // action type
429429 Schema . NullOr ( GovActionIdCDDL ) , // gov_action_id / nil
430430 CBOR . CBORSchema // constitution
431431)
@@ -449,7 +449,7 @@ export const NewConstitutionActionFromCDDL = Schema.transformOrFail(
449449 const constitution = yield * ParseResult . encode ( CBOR . CBORSchema ) ( action . constitution )
450450
451451 // Return as CBOR tuple
452- return [ 5 , govActionId , constitution ] as const
452+ return [ 5n , govActionId , constitution ] as const
453453 } ) ,
454454 decode : ( cddl ) =>
455455 Eff . gen ( function * ( ) {
@@ -483,7 +483,7 @@ export class InfoAction extends Schema.TaggedClass<InfoAction>()("InfoAction", {
483483 * @category schemas
484484 */
485485export const InfoActionCDDL = Schema . Tuple (
486- Schema . Literal ( 6 ) // action type
486+ Schema . Literal ( 6n ) // action type
487487)
488488
489489/**
@@ -497,7 +497,7 @@ export const InfoActionFromCDDL = Schema.transformOrFail(InfoActionCDDL, Schema.
497497 encode : ( _action ) =>
498498 Eff . gen ( function * ( ) {
499499 // Return as CBOR tuple
500- return [ 6 ] as const
500+ return [ 6n ] as const
501501 } ) ,
502502 decode : ( _cddl ) =>
503503 Eff . gen ( function * ( ) {
0 commit comments