@airgap/serializer 0.13.7-beta.11
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/LICENSE.md +7 -0
- package/airgap-coinlib-serializer.min.js +213386 -0
- package/index.d.ts +14 -0
- package/index.js +16 -0
- package/index.js.map +1 -0
- package/package.json +76 -0
- package/readme.md +121 -0
- package/v2/inter-app-communication-protocol.d.ts +15 -0
- package/v2/inter-app-communication-protocol.js +117 -0
- package/v2/inter-app-communication-protocol.js.map +1 -0
- package/v2/interfaces.d.ts +8 -0
- package/v2/interfaces.js +31 -0
- package/v2/interfaces.js.map +1 -0
- package/v2/message.d.ts +46 -0
- package/v2/message.js +89 -0
- package/v2/message.js.map +1 -0
- package/v2/payloads/chunked-payload.d.ts +18 -0
- package/v2/payloads/chunked-payload.js +56 -0
- package/v2/payloads/chunked-payload.js.map +1 -0
- package/v2/payloads/full-payload.d.ts +14 -0
- package/v2/payloads/full-payload.js +52 -0
- package/v2/payloads/full-payload.js.map +1 -0
- package/v2/payloads/payload.d.ts +4 -0
- package/v2/payloads/payload.js +3 -0
- package/v2/payloads/payload.js.map +1 -0
- package/v2/schemas/definitions/account-share-request.d.ts +4 -0
- package/v2/schemas/definitions/account-share-request.js +3 -0
- package/v2/schemas/definitions/account-share-request.js.map +1 -0
- package/v2/schemas/definitions/account-share-response.d.ts +5 -0
- package/v2/schemas/definitions/account-share-response.js +3 -0
- package/v2/schemas/definitions/account-share-response.js.map +1 -0
- package/v2/schemas/definitions/config-set-request.d.ts +7 -0
- package/v2/schemas/definitions/config-set-request.js +3 -0
- package/v2/schemas/definitions/config-set-request.js.map +1 -0
- package/v2/schemas/definitions/config-set-response.d.ts +4 -0
- package/v2/schemas/definitions/config-set-response.js +3 -0
- package/v2/schemas/definitions/config-set-response.js.map +1 -0
- package/v2/schemas/definitions/hex-string.d.ts +1 -0
- package/v2/schemas/definitions/hex-string.js +3 -0
- package/v2/schemas/definitions/hex-string.js.map +1 -0
- package/v2/schemas/definitions/item-retrieve-request.d.ts +5 -0
- package/v2/schemas/definitions/item-retrieve-request.js +3 -0
- package/v2/schemas/definitions/item-retrieve-request.js.map +1 -0
- package/v2/schemas/definitions/item-retrieve-response.d.ts +3 -0
- package/v2/schemas/definitions/item-retrieve-response.js +3 -0
- package/v2/schemas/definitions/item-retrieve-response.js.map +1 -0
- package/v2/schemas/definitions/item-store-request.d.ts +5 -0
- package/v2/schemas/definitions/item-store-request.js +3 -0
- package/v2/schemas/definitions/item-store-request.js.map +1 -0
- package/v2/schemas/definitions/item-store-response.d.ts +3 -0
- package/v2/schemas/definitions/item-store-response.js +3 -0
- package/v2/schemas/definitions/item-store-response.js.map +1 -0
- package/v2/schemas/definitions/message-encrypt-request.d.ts +8 -0
- package/v2/schemas/definitions/message-encrypt-request.js +3 -0
- package/v2/schemas/definitions/message-encrypt-request.js.map +1 -0
- package/v2/schemas/definitions/message-encrypt-response.d.ts +4 -0
- package/v2/schemas/definitions/message-encrypt-response.js +3 -0
- package/v2/schemas/definitions/message-encrypt-response.js.map +1 -0
- package/v2/schemas/definitions/message-sign-request.d.ts +5 -0
- package/v2/schemas/definitions/message-sign-request.js +3 -0
- package/v2/schemas/definitions/message-sign-request.js.map +1 -0
- package/v2/schemas/definitions/message-sign-response.d.ts +5 -0
- package/v2/schemas/definitions/message-sign-response.js +3 -0
- package/v2/schemas/definitions/message-sign-response.js.map +1 -0
- package/v2/schemas/definitions/message-verify-request.d.ts +6 -0
- package/v2/schemas/definitions/message-verify-request.js +3 -0
- package/v2/schemas/definitions/message-verify-request.js.map +1 -0
- package/v2/schemas/definitions/message-verify-response.d.ts +6 -0
- package/v2/schemas/definitions/message-verify-response.js +3 -0
- package/v2/schemas/definitions/message-verify-response.js.map +1 -0
- package/v2/schemas/definitions/multisig-request.d.ts +7 -0
- package/v2/schemas/definitions/multisig-request.js +3 -0
- package/v2/schemas/definitions/multisig-request.js.map +1 -0
- package/v2/schemas/definitions/multisig-response.d.ts +5 -0
- package/v2/schemas/definitions/multisig-response.js +3 -0
- package/v2/schemas/definitions/multisig-response.js.map +1 -0
- package/v2/schemas/definitions/pair-request.d.ts +7 -0
- package/v2/schemas/definitions/pair-request.js +3 -0
- package/v2/schemas/definitions/pair-request.js.map +1 -0
- package/v2/schemas/definitions/pair-response.d.ts +6 -0
- package/v2/schemas/definitions/pair-response.js +3 -0
- package/v2/schemas/definitions/pair-response.js.map +1 -0
- package/v2/schemas/generated/account-share-request.json +22 -0
- package/v2/schemas/generated/account-share-response.json +22 -0
- package/v2/schemas/generated/message-sign-request.json +22 -0
- package/v2/schemas/generated/message-sign-response.json +22 -0
- package/v2/schemas/generated/transaction-sign-request-aeternity.json +32 -0
- package/v2/schemas/generated/transaction-sign-request-bitcoin-segwit.json +0 -0
- package/v2/schemas/generated/transaction-sign-request-bitcoin.json +73 -0
- package/v2/schemas/generated/transaction-sign-request-cosmos.json +100 -0
- package/v2/schemas/generated/transaction-sign-request-ethereum.json +50 -0
- package/v2/schemas/generated/transaction-sign-request-substrate.json +29 -0
- package/v2/schemas/generated/transaction-sign-request-tezos-sapling.json +127 -0
- package/v2/schemas/generated/transaction-sign-request-tezos.json +29 -0
- package/v2/schemas/generated/transaction-sign-response-aeternity.json +19 -0
- package/v2/schemas/generated/transaction-sign-response-bitcoin-segwit.json +0 -0
- package/v2/schemas/generated/transaction-sign-response-bitcoin.json +37 -0
- package/v2/schemas/generated/transaction-sign-response-cosmos.json +22 -0
- package/v2/schemas/generated/transaction-sign-response-ethereum.json +19 -0
- package/v2/schemas/generated/transaction-sign-response-substrate.json +19 -0
- package/v2/schemas/generated/transaction-sign-response-tezos-sapling.json +19 -0
- package/v2/schemas/generated/transaction-sign-response-tezos.json +19 -0
- package/v2/schemas/schema.d.ts +30 -0
- package/v2/schemas/schema.js +15 -0
- package/v2/schemas/schema.js.map +1 -0
- package/v2/serializer.d.ts +17 -0
- package/v2/serializer.js +224 -0
- package/v2/serializer.js.map +1 -0
- package/v2/unsigned-transactions/aeternity-transactions.validator.d.ts +6 -0
- package/v2/unsigned-transactions/aeternity-transactions.validator.js +101 -0
- package/v2/unsigned-transactions/aeternity-transactions.validator.js.map +1 -0
- package/v2/unsigned-transactions/bitcoin-transactions.validator.d.ts +6 -0
- package/v2/unsigned-transactions/bitcoin-transactions.validator.js +71 -0
- package/v2/unsigned-transactions/bitcoin-transactions.validator.js.map +1 -0
- package/v2/unsigned-transactions/cosmos-transactions.validator.d.ts +6 -0
- package/v2/unsigned-transactions/cosmos-transactions.validator.js +100 -0
- package/v2/unsigned-transactions/cosmos-transactions.validator.js.map +1 -0
- package/v2/unsigned-transactions/ethereum-transactions.validator.d.ts +6 -0
- package/v2/unsigned-transactions/ethereum-transactions.validator.js +86 -0
- package/v2/unsigned-transactions/ethereum-transactions.validator.js.map +1 -0
- package/v2/unsigned-transactions/substrate-transactions.validator.d.ts +6 -0
- package/v2/unsigned-transactions/substrate-transactions.validator.js +100 -0
- package/v2/unsigned-transactions/substrate-transactions.validator.js.map +1 -0
- package/v2/unsigned-transactions/tezos-transactions.validator.d.ts +6 -0
- package/v2/unsigned-transactions/tezos-transactions.validator.js +97 -0
- package/v2/unsigned-transactions/tezos-transactions.validator.js.map +1 -0
- package/v2/unsigned-transactions/xtz-btc-transactions.validator.d.ts +9 -0
- package/v2/unsigned-transactions/xtz-btc-transactions.validator.js +162 -0
- package/v2/unsigned-transactions/xtz-btc-transactions.validator.js.map +1 -0
- package/v2/utils/generateId.d.ts +1 -0
- package/v2/utils/generateId.js +15 -0
- package/v2/utils/generateId.js.map +1 -0
- package/v2/utils/json-to-rlp.d.ts +8 -0
- package/v2/utils/json-to-rlp.js +177 -0
- package/v2/utils/json-to-rlp.js.map +1 -0
- package/v2/utils/toBuffer.d.ts +4 -0
- package/v2/utils/toBuffer.js +27 -0
- package/v2/utils/toBuffer.js.map +1 -0
- package/v2/validators/transactions.validator.d.ts +5 -0
- package/v2/validators/transactions.validator.js +10 -0
- package/v2/validators/transactions.validator.js.map +1 -0
- package/v2/validators/validators.d.ts +1 -0
- package/v2/validators/validators.js +557 -0
- package/v2/validators/validators.js.map +1 -0
- package/v3/iac-message-wrapper.d.ts +14 -0
- package/v3/iac-message-wrapper.js +65 -0
- package/v3/iac-message-wrapper.js.map +1 -0
- package/v3/interfaces.d.ts +8 -0
- package/v3/interfaces.js +31 -0
- package/v3/interfaces.js.map +1 -0
- package/v3/message.d.ts +45 -0
- package/v3/message.js +114 -0
- package/v3/message.js.map +1 -0
- package/v3/payload.d.ts +9 -0
- package/v3/payload.js +25 -0
- package/v3/payload.js.map +1 -0
- package/v3/schemas/definitions/account-share-request.d.ts +4 -0
- package/v3/schemas/definitions/account-share-request.js +3 -0
- package/v3/schemas/definitions/account-share-request.js.map +1 -0
- package/v3/schemas/definitions/account-share-response.d.ts +9 -0
- package/v3/schemas/definitions/account-share-response.js +3 -0
- package/v3/schemas/definitions/account-share-response.js.map +1 -0
- package/v3/schemas/definitions/config-set-request.d.ts +7 -0
- package/v3/schemas/definitions/config-set-request.js +3 -0
- package/v3/schemas/definitions/config-set-request.js.map +1 -0
- package/v3/schemas/definitions/config-set-response.d.ts +4 -0
- package/v3/schemas/definitions/config-set-response.js +3 -0
- package/v3/schemas/definitions/config-set-response.js.map +1 -0
- package/v3/schemas/definitions/hex-string.d.ts +1 -0
- package/v3/schemas/definitions/hex-string.js +3 -0
- package/v3/schemas/definitions/hex-string.js.map +1 -0
- package/v3/schemas/definitions/item-retrieve-request.d.ts +5 -0
- package/v3/schemas/definitions/item-retrieve-request.js +3 -0
- package/v3/schemas/definitions/item-retrieve-request.js.map +1 -0
- package/v3/schemas/definitions/item-retrieve-response.d.ts +3 -0
- package/v3/schemas/definitions/item-retrieve-response.js +3 -0
- package/v3/schemas/definitions/item-retrieve-response.js.map +1 -0
- package/v3/schemas/definitions/item-store-request.d.ts +5 -0
- package/v3/schemas/definitions/item-store-request.js +3 -0
- package/v3/schemas/definitions/item-store-request.js.map +1 -0
- package/v3/schemas/definitions/item-store-response.d.ts +3 -0
- package/v3/schemas/definitions/item-store-response.js +3 -0
- package/v3/schemas/definitions/item-store-response.js.map +1 -0
- package/v3/schemas/definitions/message-encrypt-request.d.ts +8 -0
- package/v3/schemas/definitions/message-encrypt-request.js +3 -0
- package/v3/schemas/definitions/message-encrypt-request.js.map +1 -0
- package/v3/schemas/definitions/message-encrypt-response.d.ts +4 -0
- package/v3/schemas/definitions/message-encrypt-response.js +3 -0
- package/v3/schemas/definitions/message-encrypt-response.js.map +1 -0
- package/v3/schemas/definitions/message-sign-request.d.ts +5 -0
- package/v3/schemas/definitions/message-sign-request.js +3 -0
- package/v3/schemas/definitions/message-sign-request.js.map +1 -0
- package/v3/schemas/definitions/message-sign-response.d.ts +5 -0
- package/v3/schemas/definitions/message-sign-response.js +3 -0
- package/v3/schemas/definitions/message-sign-response.js.map +1 -0
- package/v3/schemas/definitions/message-verify-request.d.ts +6 -0
- package/v3/schemas/definitions/message-verify-request.js +3 -0
- package/v3/schemas/definitions/message-verify-request.js.map +1 -0
- package/v3/schemas/definitions/message-verify-response.d.ts +6 -0
- package/v3/schemas/definitions/message-verify-response.js +3 -0
- package/v3/schemas/definitions/message-verify-response.js.map +1 -0
- package/v3/schemas/definitions/multisig-request.d.ts +7 -0
- package/v3/schemas/definitions/multisig-request.js +3 -0
- package/v3/schemas/definitions/multisig-request.js.map +1 -0
- package/v3/schemas/definitions/multisig-response.d.ts +5 -0
- package/v3/schemas/definitions/multisig-response.js +3 -0
- package/v3/schemas/definitions/multisig-response.js.map +1 -0
- package/v3/schemas/definitions/pair-request.d.ts +7 -0
- package/v3/schemas/definitions/pair-request.js +3 -0
- package/v3/schemas/definitions/pair-request.js.map +1 -0
- package/v3/schemas/definitions/pair-response.d.ts +6 -0
- package/v3/schemas/definitions/pair-response.js +3 -0
- package/v3/schemas/definitions/pair-response.js.map +1 -0
- package/v3/schemas/generated/account-share-request.json +22 -0
- package/v3/schemas/generated/account-share-response.json +34 -0
- package/v3/schemas/generated/message-sign-request.json +22 -0
- package/v3/schemas/generated/message-sign-response.json +22 -0
- package/v3/schemas/generated/transaction-sign-request-aeternity.json +32 -0
- package/v3/schemas/generated/transaction-sign-request-bitcoin-segwit.json +32 -0
- package/v3/schemas/generated/transaction-sign-request-bitcoin.json +73 -0
- package/v3/schemas/generated/transaction-sign-request-cosmos.json +100 -0
- package/v3/schemas/generated/transaction-sign-request-ethereum-typed.json +35 -0
- package/v3/schemas/generated/transaction-sign-request-ethereum.json +47 -0
- package/v3/schemas/generated/transaction-sign-request-substrate.json +29 -0
- package/v3/schemas/generated/transaction-sign-request-tezos-sapling.json +133 -0
- package/v3/schemas/generated/transaction-sign-request-tezos.json +29 -0
- package/v3/schemas/generated/transaction-sign-response-aeternity.json +19 -0
- package/v3/schemas/generated/transaction-sign-response-bitcoin-segwit.json +19 -0
- package/v3/schemas/generated/transaction-sign-response-bitcoin.json +37 -0
- package/v3/schemas/generated/transaction-sign-response-cosmos.json +23 -0
- package/v3/schemas/generated/transaction-sign-response-ethereum.json +19 -0
- package/v3/schemas/generated/transaction-sign-response-substrate.json +19 -0
- package/v3/schemas/generated/transaction-sign-response-tezos-sapling.json +19 -0
- package/v3/schemas/generated/transaction-sign-response-tezos.json +19 -0
- package/v3/schemas/schema.d.ts +29 -0
- package/v3/schemas/schema.js +14 -0
- package/v3/schemas/schema.js.map +1 -0
- package/v3/serializer.d.ts +13 -0
- package/v3/serializer.js +234 -0
- package/v3/serializer.js.map +1 -0
- package/v3/unsigned-transactions/aeternity-transactions.validator.d.ts +6 -0
- package/v3/unsigned-transactions/aeternity-transactions.validator.js +101 -0
- package/v3/unsigned-transactions/aeternity-transactions.validator.js.map +1 -0
- package/v3/unsigned-transactions/bitcoin-transactions.validator.d.ts +6 -0
- package/v3/unsigned-transactions/bitcoin-transactions.validator.js +71 -0
- package/v3/unsigned-transactions/bitcoin-transactions.validator.js.map +1 -0
- package/v3/unsigned-transactions/cosmos-transactions.validator.d.ts +6 -0
- package/v3/unsigned-transactions/cosmos-transactions.validator.js +100 -0
- package/v3/unsigned-transactions/cosmos-transactions.validator.js.map +1 -0
- package/v3/unsigned-transactions/ethereum-transactions.validator.d.ts +6 -0
- package/v3/unsigned-transactions/ethereum-transactions.validator.js +86 -0
- package/v3/unsigned-transactions/ethereum-transactions.validator.js.map +1 -0
- package/v3/unsigned-transactions/substrate-transactions.validator.d.ts +6 -0
- package/v3/unsigned-transactions/substrate-transactions.validator.js +100 -0
- package/v3/unsigned-transactions/substrate-transactions.validator.js.map +1 -0
- package/v3/unsigned-transactions/tezos-transactions.validator.d.ts +6 -0
- package/v3/unsigned-transactions/tezos-transactions.validator.js +97 -0
- package/v3/unsigned-transactions/tezos-transactions.validator.js.map +1 -0
- package/v3/unsigned-transactions/xtz-btc-transactions.validator.d.ts +9 -0
- package/v3/unsigned-transactions/xtz-btc-transactions.validator.js +160 -0
- package/v3/unsigned-transactions/xtz-btc-transactions.validator.js.map +1 -0
- package/v3/utils/generateId.d.ts +2 -0
- package/v3/utils/generateId.js +17 -0
- package/v3/utils/generateId.js.map +1 -0
- package/v3/utils/json-to-rlp.d.ts +8 -0
- package/v3/utils/json-to-rlp.js +235 -0
- package/v3/utils/json-to-rlp.js.map +1 -0
- package/v3/utils/toBuffer.d.ts +2 -0
- package/v3/utils/toBuffer.js +22 -0
- package/v3/utils/toBuffer.js.map +1 -0
- package/v3/validators/transactions.validator.d.ts +5 -0
- package/v3/validators/transactions.validator.js +10 -0
- package/v3/validators/transactions.validator.js.map +1 -0
- package/v3/validators/validators.d.ts +1 -0
- package/v3/validators/validators.js +555 -0
- package/v3/validators/validators.js.map +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/MessageSignRequest",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"MessageSignRequest": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"callbackURL": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"message": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"publicKey": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["message", "publicKey"],
|
|
19
|
+
"type": "object"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/MessageSignResponse",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"MessageSignResponse": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"message": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"publicKey": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"signature": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["message", "publicKey", "signature"],
|
|
19
|
+
"type": "object"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UnsignedAeternityTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"UnsignedAeternityTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"callbackURL": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"publicKey": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"transaction": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"networkId": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"transaction": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": ["networkId", "transaction"],
|
|
25
|
+
"type": "object"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": ["publicKey", "transaction"],
|
|
29
|
+
"type": "object"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UnsignedBitcoinSegwitTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"RawBitcoinSegwitTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"psbt": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["psbt"],
|
|
13
|
+
"type": "object"
|
|
14
|
+
},
|
|
15
|
+
"UnsignedBitcoinSegwitTransaction": {
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {
|
|
18
|
+
"callbackURL": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"publicKey": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"transaction": {
|
|
25
|
+
"$ref": "#/definitions/RawBitcoinSegwitTransaction"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": ["publicKey", "transaction"],
|
|
29
|
+
"type": "object"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UnsignedBitcoinTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"UnsignedBitcoinTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"callbackURL": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"publicKey": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"transaction": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"ins": {
|
|
18
|
+
"items": {
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"properties": {
|
|
21
|
+
"address": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"derivationPath": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"txId": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"value": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"vout": {
|
|
34
|
+
"type": "number"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["txId", "value", "vout", "address"],
|
|
38
|
+
"type": "object"
|
|
39
|
+
},
|
|
40
|
+
"type": "array"
|
|
41
|
+
},
|
|
42
|
+
"outs": {
|
|
43
|
+
"items": {
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"properties": {
|
|
46
|
+
"derivationPath": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"isChange": {
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
},
|
|
52
|
+
"recipient": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"value": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": ["recipient", "isChange", "value"],
|
|
60
|
+
"type": "object"
|
|
61
|
+
},
|
|
62
|
+
"type": "array"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": ["ins", "outs"],
|
|
66
|
+
"type": "object"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": ["publicKey", "transaction"],
|
|
70
|
+
"type": "object"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SerializableUnsignedCosmosTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"SerializableUnsignedCosmosTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"callbackURL": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"publicKey": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"transaction": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"accountNumber": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"chainID": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"fee": {
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"amount": {
|
|
27
|
+
"items": {
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"properties": {
|
|
30
|
+
"amount": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"denom": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["denom", "amount"],
|
|
38
|
+
"type": "object"
|
|
39
|
+
},
|
|
40
|
+
"type": "array"
|
|
41
|
+
},
|
|
42
|
+
"gas": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": ["amount", "gas"],
|
|
47
|
+
"type": "object"
|
|
48
|
+
},
|
|
49
|
+
"memo": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"messages": {
|
|
53
|
+
"items": {
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"properties": {
|
|
56
|
+
"amount": {
|
|
57
|
+
"items": {
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"properties": {
|
|
60
|
+
"amount": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"denom": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": ["denom", "amount"],
|
|
68
|
+
"type": "object"
|
|
69
|
+
},
|
|
70
|
+
"type": "array"
|
|
71
|
+
},
|
|
72
|
+
"fromAddress": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"toAddress": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"type": {
|
|
79
|
+
"enum": [0, 1, 2, 3],
|
|
80
|
+
"type": "number"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": ["type", "amount", "fromAddress", "toAddress"],
|
|
84
|
+
"type": "object"
|
|
85
|
+
},
|
|
86
|
+
"type": "array"
|
|
87
|
+
},
|
|
88
|
+
"sequence": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": ["messages", "fee", "memo", "chainID", "accountNumber", "sequence"],
|
|
93
|
+
"type": "object"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": ["publicKey", "transaction"],
|
|
97
|
+
"type": "object"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UnsignedTypedEthereumTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"UnsignedTypedEthereumTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"callbackURL": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"publicKey": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"transaction": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"derivationPath": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"masterFingerprint": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"serialized": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": ["serialized", "derivationPath", "masterFingerprint"],
|
|
28
|
+
"type": "object"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": ["publicKey", "transaction"],
|
|
32
|
+
"type": "object"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UnsignedEthereumTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"UnsignedEthereumTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"callbackURL": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"publicKey": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"transaction": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"chainId": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"data": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"gasLimit": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"gasPrice": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"nonce": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"to": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"value": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": ["nonce", "gasPrice", "gasLimit", "to", "value", "chainId", "data"],
|
|
40
|
+
"type": "object"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": ["publicKey", "transaction"],
|
|
44
|
+
"type": "object"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UnsignedSubstrateTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"UnsignedSubstrateTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"callbackURL": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"publicKey": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"transaction": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"encoded": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["encoded"],
|
|
22
|
+
"type": "object"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["publicKey", "transaction"],
|
|
26
|
+
"type": "object"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UnsignedTezosSaplingTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"UnsignedTezosSaplingTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"callbackURL": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"publicKey": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"transaction": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"chainId": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"contractAddress": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"ins": {
|
|
24
|
+
"items": {
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"properties": {
|
|
27
|
+
"address": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"pos": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"rcm": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"value": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": ["rcm", "pos", "value", "address"],
|
|
41
|
+
"type": "object"
|
|
42
|
+
},
|
|
43
|
+
"type": "array"
|
|
44
|
+
},
|
|
45
|
+
"outs": {
|
|
46
|
+
"items": {
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"properties": {
|
|
49
|
+
"address": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"browsable": {
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"memo": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"value": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": ["address", "value", "memo", "browsable"],
|
|
63
|
+
"type": "object"
|
|
64
|
+
},
|
|
65
|
+
"type": "array"
|
|
66
|
+
},
|
|
67
|
+
"stateDiff": {
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"properties": {
|
|
70
|
+
"commitments_and_ciphertexts": {
|
|
71
|
+
"items": {
|
|
72
|
+
"items": [
|
|
73
|
+
{
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"properties": {
|
|
79
|
+
"cv": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"epk": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"nonce_enc": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"nonce_out": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"payload_enc": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"payload_out": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": ["cv", "epk", "payload_enc", "nonce_enc", "payload_out", "nonce_out"],
|
|
99
|
+
"type": "object"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"maxItems": 2,
|
|
103
|
+
"minItems": 2,
|
|
104
|
+
"type": "array"
|
|
105
|
+
},
|
|
106
|
+
"type": "array"
|
|
107
|
+
},
|
|
108
|
+
"nullifiers": {
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"type": "array"
|
|
113
|
+
},
|
|
114
|
+
"root": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": ["root", "commitments_and_ciphertexts", "nullifiers"],
|
|
119
|
+
"type": "object"
|
|
120
|
+
},
|
|
121
|
+
"unshieldTarget": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": ["ins", "outs", "contractAddress", "chainId", "stateDiff", "unshieldTarget"],
|
|
126
|
+
"type": "object"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"required": ["publicKey", "transaction"],
|
|
130
|
+
"type": "object"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UnsignedTezosTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"UnsignedTezosTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"callbackURL": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"publicKey": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"transaction": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"binaryTransaction": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["binaryTransaction"],
|
|
22
|
+
"type": "object"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["publicKey", "transaction"],
|
|
26
|
+
"type": "object"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SignedAeternityTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"SignedAeternityTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"accountIdentifier": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"transaction": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": ["accountIdentifier", "transaction"],
|
|
16
|
+
"type": "object"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SignedBitcoinSegwitTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"SignedBitcoinSegwitTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"accountIdentifier": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"transaction": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": ["accountIdentifier", "transaction"],
|
|
16
|
+
"type": "object"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SignedBitcoinTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"SignedBitcoinTransaction": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"accountIdentifier": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"amount": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"fee": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"from": {
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"type": "array"
|
|
22
|
+
},
|
|
23
|
+
"to": {
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"type": "array"
|
|
28
|
+
},
|
|
29
|
+
"transaction": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": ["accountIdentifier", "amount", "fee", "from", "to", "transaction"],
|
|
34
|
+
"type": "object"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SignedCosmosTransaction",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"IAirGapSignedTransaction": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"SignedCosmosTransaction": {
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"accountIdentifier": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"transaction": {
|
|
15
|
+
"$ref": "#/definitions/IAirGapSignedTransaction",
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": ["accountIdentifier", "transaction"],
|
|
20
|
+
"type": "object"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|