-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for System.Runtime.CurrentSigners SYSCALL
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
boa3/internal/model/builtin/interop/runtime/getcurrentsignersmethod.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from boa3.internal.model.builtin.interop.blockchain import SignerType | ||
from boa3.internal.model.builtin.interop.interopmethod import InteropMethod | ||
from boa3.internal.model.variable import Variable | ||
|
||
class GetCurrentSignersMethod(InteropMethod): | ||
def __init__(self, signer_type: SignerType): | ||
from boa3.internal.model.type.type import Type | ||
identifier = 'get_current_signers' | ||
syscall = 'System.Runtime.CurrentSigners' | ||
args: dict[str, Variable] = {} | ||
super().__init__(identifier, syscall, args, return_type=Type.list.build([signer_type])) |