Skip to content

Commit 9c187c0

Browse files
authored
Add covenant changes to RPC stubs(#49)
1 parent 421f386 commit 9c187c0

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

kaspa_rpc.pyi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,19 @@ class RpcScriptPublicKey(TypedDict):
2626
script: str
2727

2828

29+
class RpcCovenantBinding(TypedDict):
30+
"""Binds a transaction output to the covenant and input authorizing its creation."""
31+
authorizingInput: int
32+
covenantId: str
33+
34+
2935
class RpcUtxoEntry(TypedDict):
3036
"""A UTXO entry."""
3137
amount: int
3238
scriptPublicKey: RpcScriptPublicKey
3339
blockDaaScore: int
3440
isCoinbase: bool
41+
covenantId: str | None
3542

3643

3744
class RpcUtxosByAddressesEntry(TypedDict):
@@ -71,6 +78,7 @@ class RpcTransactionInput(TypedDict):
7178
signatureScript: str
7279
sequence: int
7380
sigOpCount: int
81+
computeBudget: int
7482
verboseData: RpcVerboseData | None
7583

7684

@@ -85,6 +93,7 @@ class RpcTransactionOutput(TypedDict):
8593
value: int
8694
scriptPublicKey: str
8795
verboseData: RpcTransactionOutputVerboseData | None
96+
covenant: RpcCovenantBinding | None
8897

8998

9099
class RpcTransaction(TypedDict):

python/kaspa/__init__.pyi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5007,12 +5007,19 @@ class RpcScriptPublicKey(TypedDict):
50075007
script: str
50085008

50095009

5010+
class RpcCovenantBinding(TypedDict):
5011+
"""Binds a transaction output to the covenant and input authorizing its creation."""
5012+
authorizingInput: int
5013+
covenantId: str
5014+
5015+
50105016
class RpcUtxoEntry(TypedDict):
50115017
"""A UTXO entry."""
50125018
amount: int
50135019
scriptPublicKey: RpcScriptPublicKey
50145020
blockDaaScore: int
50155021
isCoinbase: bool
5022+
covenantId: str | None
50165023

50175024

50185025
class RpcUtxosByAddressesEntry(TypedDict):
@@ -5052,6 +5059,7 @@ class RpcTransactionInput(TypedDict):
50525059
signatureScript: str
50535060
sequence: int
50545061
sigOpCount: int
5062+
computeBudget: int
50555063
verboseData: RpcVerboseData | None
50565064

50575065

@@ -5066,6 +5074,7 @@ class RpcTransactionOutput(TypedDict):
50665074
value: int
50675075
scriptPublicKey: str
50685076
verboseData: RpcTransactionOutputVerboseData | None
5077+
covenant: RpcCovenantBinding | None
50695078

50705079

50715080
class RpcTransaction(TypedDict):

0 commit comments

Comments
 (0)