-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core-magistrate-crypto): consolidate bridgechain schem… (#3143)
- Loading branch information
1 parent
2c619ae
commit deef78d
Showing
4 changed files
with
36 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
packages/core-magistrate-crypto/src/transactions/utils/bridgechain-schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
export const bridgechainSchema = { | ||
bridgechainId: { | ||
type: "integer", | ||
minimum: 1, | ||
}, | ||
name: { | ||
type: "string", | ||
minLength: 1, | ||
maxLength: 40, | ||
}, | ||
seedNodes: { | ||
type: "array", | ||
minItems: 1, | ||
maxItems: 10, | ||
uniqueItems: true, | ||
items: { | ||
type: "string", | ||
format: "peer", | ||
}, | ||
}, | ||
genesisHash: { | ||
type: "string", | ||
minLength: 64, | ||
maxLength: 64, | ||
$ref: "transactionId", | ||
}, | ||
bridgechainRepository: { | ||
type: "string", | ||
minLength: 1, | ||
maxLength: 100, | ||
}, | ||
}; |
10 changes: 0 additions & 10 deletions
10
packages/core-magistrate-crypto/src/transactions/utils/bridgechain-schemas.ts
This file was deleted.
Oops, something went wrong.