Skip to content

Commit

Permalink
Merge pull request #269 from starkware-libs/remove_old_txs
Browse files Browse the repository at this point in the history
Remove old transaction support from the write api (#269)
  • Loading branch information
ArielElp authored Jan 19, 2025
2 parents 85811f9 + e765cbe commit 28ad3f5
Showing 1 changed file with 3 additions and 123 deletions.
126 changes: 3 additions & 123 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2163,135 +2163,15 @@
},
"BROADCASTED_INVOKE_TXN": {
"title": "Broadcasted invoke transaction",
"$ref": "#/components/schemas/INVOKE_TXN"
"$ref": "#/components/schemas/INVOKE_TXN_V3"
},
"BROADCASTED_DEPLOY_ACCOUNT_TXN": {
"title": "Broadcasted deploy account transaction",
"$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN"
"$ref": "#/components/schemas/DEPLOY_ACCOUNT_TXN_V3"
},
"BROADCASTED_DECLARE_TXN": {
"title": "Broadcasted declare transaction",
"oneOf": [
{
"title": "Broadcasted declare transaction V1",
"$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V1"
},
{
"title": "Broadcasted declare transaction V2",
"$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V2"
},
{
"title": "Broadcasted declare transaction V3",
"$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V3"
}
]
},
"BROADCASTED_DECLARE_TXN_V1": {
"title": "Broadcasted declare contract transaction V1",
"allOf": [
{
"type": "object",
"title": "Declare txn v1",
"properties": {
"type": {
"title": "Declare",
"type": "string",
"enum": ["DECLARE"]
},
"sender_address": {
"title": "Sender address",
"description": "The address of the account contract sending the declaration transaction",
"$ref": "#/components/schemas/ADDRESS"
},
"max_fee": {
"title": "Max fee",
"$ref": "#/components/schemas/FELT",
"description": "The maximal fee that can be charged for including the transaction"
},
"version": {
"title": "Version",
"description": "Version of the transaction scheme",
"type": "string",
"enum": ["0x1", "0x100000000000000000000000000000001"]
},
"signature": {
"title": "Signature",
"$ref": "#/components/schemas/SIGNATURE"
},
"nonce": {
"title": "Nonce",
"$ref": "#/components/schemas/FELT"
},
"contract_class": {
"title": "Contract class",
"description": "The class to be declared",
"$ref": "#/components/schemas/DEPRECATED_CONTRACT_CLASS"
}
},
"required": ["type", "sender_address", "max_fee", "version", "signature", "nonce", "contract_class"]
}
]
},
"BROADCASTED_DECLARE_TXN_V2": {
"title": "Broadcasted declare Transaction V2",
"description": "Broadcasted declare Contract Transaction V2",
"allOf": [
{
"type": "object",
"title": "Declare txn v2",
"properties": {
"type": {
"title": "Declare",
"type": "string",
"enum": ["DECLARE"]
},
"sender_address": {
"title": "Sender address",
"description": "The address of the account contract sending the declaration transaction",
"$ref": "#/components/schemas/ADDRESS"
},
"compiled_class_hash": {
"title": "Compiled class hash",
"description": "The hash of the Cairo assembly resulting from the Sierra compilation",
"$ref": "#/components/schemas/FELT"
},
"max_fee": {
"title": "Max fee",
"$ref": "#/components/schemas/FELT",
"description": "The maximal fee that can be charged for including the transaction"
},
"version": {
"title": "Version",
"description": "Version of the transaction scheme",
"type": "string",
"enum": ["0x2", "0x100000000000000000000000000000002"]
},
"signature": {
"title": "Signature",
"$ref": "#/components/schemas/SIGNATURE"
},
"nonce": {
"title": "Nonce",
"$ref": "#/components/schemas/FELT"
},
"contract_class": {
"title": "Contract class",
"description": "The class to be declared",
"$ref": "#/components/schemas/CONTRACT_CLASS"
}
},
"required": [
"type",
"sender_address",
"compiled_class_hash",
"max_fee",
"version",
"signature",
"nonce",
"contract_class"
]
}
]
"$ref": "#/components/schemas/BROADCASTED_DECLARE_TXN_V3"
},
"BROADCASTED_DECLARE_TXN_V3": {
"title": "Broadcasted declare Transaction V3",
Expand Down

0 comments on commit 28ad3f5

Please sign in to comment.