Skip to content

Commit

Permalink
Merge pull request #14 from Adamant-im/fix/transaction-types
Browse files Browse the repository at this point in the history
Fix/transaction types
  • Loading branch information
martiliones authored Oct 9, 2023
2 parents ae55fe0 + f07dd4d commit a6dc329
Show file tree
Hide file tree
Showing 15 changed files with 291 additions and 303 deletions.
552 changes: 276 additions & 276 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ allOf:
properties:
type:
type: integer
minimum: 8
maximum: 8
enum: [8]
example: 8
description: Always equal to `8`
asset:
Expand Down
3 changes: 1 addition & 2 deletions specification/common/transactions/KVSTransaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ allOf:
properties:
type:
type: integer
minimum: 9
maximum: 9
enum: [9]
example: 9
description: Always equal to `9`
recipientId:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ allOf:
properties:
type:
type: integer
minimum: 2
maximum: 2
enum: [2]
example: 2
description: Always equal to `2`
recipientId:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ allOf:
properties:
type:
type: integer
minimum: 0
maximum: 0
enum: [0]
example: 0
description: Always equal to `0`
asset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ allOf:
description: List of Downvoted delegates
type:
type: integer
minimum: 3
maximum: 3
enum: [3]
example: 3
description: Always equal to `3`
asset:
Expand Down Expand Up @@ -54,4 +53,3 @@ example:
added: []
deleted:
- "c0c580c3fb89409f32181fef58935f286f0c1bbf61bd727084ed915b3a4bc95b"

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ properties:
description: Nonce
type:
type: integer
enum: [1, 2, 3]
description:
Type of chat message (1 - Basic Encrypted Message, 2 - Rich Content Message, 3 - Signal Message).
See details https://github.com/Adamant-im/adamant/wiki/Message-Types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ properties:
type: string
type:
type: integer
minimum: 0
maximum: 0
enum: [0]
example:
state:
key: eth:address
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ allOf:
properties:
type:
type: integer
minimum: 8
maximum: 8
enum: [8]
example: 8
description: Always equal to `8`
recipientId:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ allOf:
properties:
type:
type: integer
minimum: 9
maximum: 9
enum: [9]
example: 9
description: Should be always equal to `9` (Store in KVS transaction type)
asset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ allOf:
properties:
type:
type: integer
minimum: 2
maximum: 2
enum: [2]
example: 2
description: Should be always equal to `2`
asset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ allOf:
properties:
type:
type: integer
enum: [0, 8]
description: Can be `type 0 — Token transfer` or `type 8 — Chat/Message`.
recipientId:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ allOf:
example: U14236667426471084862
type:
type: integer
minimum: 3
maximum: 3
enum: [3]
example: 3
description: Should be always equal to `3`
senderId:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ allOf:
$ref: "../../common/transactions/assets/RegisterDelegateAsset.yaml"
type:
type: integer
minimum: 2
maximum: 2
enum: [2]
example: 2
description: Always equal to `2`
fee:
type: integer
minimum: 300000000000
maximum: 300000000000
enum: [300000000000]
example: 300000000000
description: Always equal to `300000000000`
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ allOf:
$ref: "../../common/transactions/assets/VoteForDelegateAsset.yaml"
type: # overrides QueuedTransaction.yaml
type: integer
minimum: 3
maximum: 3
enum: [3]
example: 3
description: Always equal to `3`
success:
Expand Down

0 comments on commit a6dc329

Please sign in to comment.