Skip to content

Commit

Permalink
feat: rpc 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Nov 11, 2022
1 parent 35a880c commit ed17f63
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/types/api/openrpcv2.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Starknet RPC version 0.2.0
*
* StarkNet Node API 0.45.0
* StarkNet Node Write API 0.3.0 - rpc 0.2.0
* StarkNet Trace API 0.3.0 - rpc 0.2.0
* StarkNet Node API 0.45.0 - rpc 0.2.1
* StarkNet Node Write API 0.3.0 - rpc 0.2.1
* StarkNet Trace API 0.4.0 - rpc 0.2.1
*
* TypeScript Representation of OpenRpc protocol types
*/
Expand All @@ -18,7 +18,7 @@ type BLOCK_HASH = FELT;
type TXN_HASH = FELT;
type PROTOCOL_VERSION = string;
type TXN_STATUS = 'PENDING' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1' | 'REJECTED';
type TXN_TYPE = 'DECLARE' | 'DEPLOY' | 'INVOKE' | 'L1_HANDLER' | 'DEPLOY_ACCOUNT'; // DEPLOY_ACCOUNT Missing in RPC 0.2.1rc
type TXN_TYPE = 'DECLARE' | 'DEPLOY' | 'DEPLOY_ACCOUNT' | 'INVOKE' | 'L1_HANDLER';
type BLOCK_STATUS = 'PENDING' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1' | 'REJECTED';
enum BLOCK_TAG {
'latest',
Expand Down Expand Up @@ -74,8 +74,8 @@ type TXN_RECEIPT =
| L1_HANDLER_TXN_RECEIPT
| DECLARE_TXN_RECEIPT
| DEPLOY_TXN_RECEIPT
| PENDING_TXN_RECEIPT
| DEPLOY_ACCOUNT_TXN_RECEIPT;
| DEPLOY_ACCOUNT_TXN_RECEIPT
| PENDING_TXN_RECEIPT;

type BLOCK_HEADER = {
block_hash: BLOCK_HASH;
Expand Down Expand Up @@ -217,6 +217,7 @@ enum EVENT_ABI_TYPE {
enum FUNCTION_ABI_TYPE {
'function',
'l1_handler',
'constructor',
}

type STRUCT_ABI_ENTRY = STRUCT_ABI_TYPE & {
Expand Down

0 comments on commit ed17f63

Please sign in to comment.