Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Updates helper for transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
has5aan committed Oct 23, 2023
1 parent 30f0676 commit 5d33762
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions commander/test/helpers/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,92 @@ export const schemaWithArrayOfObjects = {
},
};

export const castValidationSchema = {
$id: '/lisk/castValidation',
type: 'object',
required: [
'uInt64',
'sIn64',
'uInt32',
'sInt32',
'uInt64Array',
'sInt64Array',
'uInt32Array',
'sInt32Array',
],
properties: {
uInt64: {
dataType: 'uint64',
fieldNumber: 1,
},
sInt64: {
dataType: 'sint64',
fieldNumber: 2,
},
uInt32: {
dataType: 'uint32',
fieldNumber: 3,
},
sInt32: {
dataType: 'sint32',
fieldNumber: 4,
},
uInt64Array: {
type: 'array',
fieldNumber: 5,
items: {
dataType: 'uint64',
},
},
sInt64Array: {
type: 'array',
fieldNumber: 6,
items: {
dataType: 'sint64',
},
},
uInt32Array: {
type: 'array',
fieldNumber: 7,
items: {
dataType: 'uint32',
},
},
sInt32Array: {
type: 'array',
fieldNumber: 8,
items: {
dataType: 'sint32',
},
},
nested: {
type: 'array',
fieldNumber: 9,
items: {
type: 'object',
properties: {
uInt64: {
dataType: 'uint64',
fieldNumber: 1,
},
sInt64: {
dataType: 'sint64',
fieldNumber: 2,
},
uInt32: {
dataType: 'uint32',
fieldNumber: 3,
},
sInt32: {
dataType: 'sint32',
fieldNumber: 4,
},
},
},
},
},
};

export const genesisBlockID = Buffer.from(
'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
'hex',
Expand Down

0 comments on commit 5d33762

Please sign in to comment.