Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change invoke v0: no nonce, add contract address #108

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 64 additions & 15 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1835,39 +1835,88 @@
"INVOKE_TXN_V0": {
"title": "Invoke transaction V0",
"description": "invokes a specific function in the desired contract (not necessarily an account)",
"$ref": "#/components/schemas/FUNCTION_CALL"
},
"INVOKE_TXN_V1": {
"title": "Invoke transaction V1",
"description": "initiates a transaction from a given account",
"type": "object",
"properties": {
"sender_address": {
"title": "sender 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",
"$ref": "#/components/schemas/NUM_AS_HEX"
},
"signature": {
"title": "Signature",
"$ref": "#/components/schemas/SIGNATURE"
},
"transaction_hash": {
"title": "Transaction hash",
"$ref": "#/components/schemas/TXN_HASH",
"description": "The hash identifying the transaction"
},
"contract_address": {
"title": "Contract address",
"$ref": "#/components/schemas/ADDRESS"
},
"entry_point_selector": {
"title": "Entry point selector",
"$ref": "#/components/schemas/FELT"
},
"calldata": {
"title": "Calldata",
"type": "array",
"title": "calldata",
"description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)",
"description": "The parameters passed to the function",
"items": {
"$ref": "#/components/schemas/FELT"
}
}
},
"required": [
"sender_address",
"calldata"
"contract_address",
"entry_point_selector",
"calldata",
"max_fee",
"version",
"signature",
"transaction_hash"
]
},
"INVOKE_TXN": {
"title": "Invoke transaction",
"description": "Initiate a transaction from an account",
"INVOKE_TXN_V1": {
"title": "Invoke transaction V1",
"description": "initiates a transaction from a given account",
"allOf": [
{
"title": "Common transaction properties",
"$ref": "#/components/schemas/COMMON_TXN_PROPERTIES"
},
{
"type": "object",
"properties": {
"sender_address": {
"title": "sender address",
"$ref": "#/components/schemas/ADDRESS"
},
"calldata": {
"type": "array",
"title": "calldata",
"description": "The data expected by the account's `execute` function (in most usecases, this includes the called contract address and a function selector)",
"items": {
"$ref": "#/components/schemas/FELT"
}
}
},
"required": [
"sender_address",
"calldata"
]
}
]
},
"INVOKE_TXN": {
"title": "Invoke transaction",
"description": "Initiate a transaction from an account",
"allOf": [
{
"type": "object",
"title": "Type",
Expand Down