This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
88 changed files
with
4,282 additions
and
11 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
Empty file.
Empty file.
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,5 @@ | ||
from boa.blockchain.vm.SmartContract import SmartContract | ||
|
||
class FunctionCode(SmartContract): | ||
|
||
pass |
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,19 @@ | ||
|
||
class Account(): | ||
pass | ||
|
||
|
||
def GetScriptHash(account): | ||
pass | ||
|
||
|
||
def GetVotes(account): | ||
pass | ||
|
||
|
||
def SetVotes(account, votes): | ||
pass | ||
|
||
|
||
def GetBalance(asset_id): | ||
pass |
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,44 @@ | ||
|
||
class Asset(): | ||
pass | ||
|
||
|
||
def GetAssetId(asset): | ||
pass | ||
|
||
|
||
def GetAssetType(asset): | ||
pass | ||
|
||
|
||
def GetAmount(asset): | ||
pass | ||
|
||
|
||
def GetAvailable(asset): | ||
pass | ||
|
||
|
||
def GetPrecision(asset): | ||
pass | ||
|
||
|
||
def GetOwner(asset): | ||
pass | ||
|
||
|
||
def GetAdmin(asset): | ||
pass | ||
|
||
|
||
def GetIssuer(asset): | ||
pass | ||
|
||
|
||
def Create(asset_type, name, amount, precision, owner, admin, issuer): | ||
pass | ||
|
||
|
||
def Renew(asset, years): | ||
pass | ||
|
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,18 @@ | ||
from boa.blockchain.vm.Neo.Transaction import Transaction | ||
|
||
class Block(): | ||
pass | ||
|
||
|
||
|
||
def GetTransactionCount(block) -> int: | ||
pass | ||
|
||
|
||
def GetTransactions(block) -> list: | ||
pass | ||
|
||
|
||
def GetTransaction(block, index) -> Transaction: | ||
pass | ||
|
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,39 @@ | ||
from boa.blockchain.vm.Neo.Header import Header | ||
from boa.blockchain.vm.Neo.Block import Block | ||
from boa.blockchain.vm.Neo.Transaction import Transaction | ||
from boa.blockchain.vm.Neo.Account import Account | ||
from boa.blockchain.vm.Neo.Asset import Asset | ||
from boa.blockchain.vm.Neo.Contract import Contract | ||
|
||
|
||
|
||
def GetHeight() -> int: | ||
pass | ||
|
||
|
||
def GetHeader(height_or_hash) -> Header: | ||
pass | ||
|
||
|
||
def GetBlock(height_or_hash) -> Block: | ||
pass | ||
|
||
|
||
def GetTransaction(hash) -> Transaction: | ||
pass | ||
|
||
|
||
def GetAccount(script_hash) -> Account: | ||
pass | ||
|
||
|
||
def GetValidators() -> []: | ||
pass | ||
|
||
|
||
def GetAsset(asset_id) -> Asset: | ||
pass | ||
|
||
|
||
def GetContract(script_hash) -> Contract: | ||
pass |
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,42 @@ | ||
|
||
class Contract(): | ||
pass | ||
|
||
|
||
def GetScript(contract): | ||
pass | ||
|
||
|
||
def GetStorageContext(contract): | ||
pass | ||
|
||
|
||
def Create(script, | ||
parameter_list, | ||
return_type, | ||
need_storage, | ||
version, | ||
author, | ||
email, | ||
description | ||
): | ||
|
||
pass | ||
|
||
|
||
def Migrate(script, | ||
parameter_list, | ||
return_type, | ||
need_storage, | ||
version, | ||
author, | ||
email, | ||
description | ||
): | ||
|
||
pass | ||
|
||
def Destroy(contract): | ||
pass | ||
|
||
|
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,26 @@ | ||
|
||
|
||
class Header(): | ||
pass | ||
|
||
|
||
def GetHash(header): | ||
pass | ||
|
||
def GetVersion(header): | ||
pass | ||
|
||
def GetPrevHash(header): | ||
pass | ||
|
||
def GetMerkleRoot(header): | ||
pass | ||
|
||
def GetTimestamp(header): | ||
pass | ||
|
||
def GetConsensusData(header): | ||
pass | ||
|
||
def GetNextConsensus(header): | ||
pass |
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,16 @@ | ||
|
||
class TransactionOutput(): | ||
pass | ||
|
||
|
||
def GetAssetId(output): | ||
pass | ||
|
||
|
||
def GetValue(output): | ||
pass | ||
|
||
|
||
def GetScriptHash(output): | ||
pass | ||
|
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 @@ | ||
|
||
class TransactionInput(): | ||
pass | ||
|
||
|
||
def GetHash(input): | ||
pass | ||
|
||
|
||
def GetIndex(input): | ||
pass |
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,6 @@ | ||
|
||
def Log(message): | ||
pass | ||
|
||
def Notify(arg): | ||
pass |
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,19 @@ | ||
|
||
|
||
|
||
def GetContext(): | ||
pass | ||
|
||
|
||
|
||
#def CurrentContext(): | ||
# return GetContext() | ||
|
||
def Get(context, key): | ||
pass | ||
|
||
def Put(context, key, value): | ||
pass | ||
|
||
def Delete(context, key, value): | ||
pass |
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,28 @@ | ||
|
||
class Transaction(): | ||
pass | ||
|
||
|
||
def GetHash(transaction): | ||
pass | ||
|
||
|
||
def GetType(transaction): | ||
pass | ||
|
||
|
||
def GetAttributes(transaction): | ||
pass | ||
|
||
|
||
def GetInputs(transaction): | ||
pass | ||
|
||
|
||
def GetOutputs(transaction): | ||
pass | ||
|
||
|
||
def GetReferences(transaction): | ||
pass | ||
|
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,12 @@ | ||
|
||
class TransactionAttribute(): | ||
pass | ||
|
||
|
||
def GetUsage(transaction_attr): | ||
pass | ||
|
||
|
||
def GetData(transaction_attr): | ||
pass | ||
|
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,6 @@ | ||
|
||
def Verification(): | ||
return b'\x00' | ||
|
||
def Application(): | ||
return b'\x10' |
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,7 @@ | ||
|
||
class Validator(): | ||
pass | ||
|
||
|
||
def Register(pubkey): | ||
pass |
Empty file.
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,18 @@ | ||
|
||
class SmartContract(): | ||
|
||
|
||
def Sha1(data): | ||
pass | ||
|
||
def Sha256(data): | ||
pass | ||
|
||
def Hash160(data): | ||
pass | ||
|
||
def Hash256(data): | ||
pass | ||
|
||
def VerifySignature(pubkey, signature): | ||
pass |
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,20 @@ | ||
|
||
|
||
class ExecutionEngine(): | ||
pass | ||
|
||
|
||
def GetScriptContainer(): | ||
pass | ||
|
||
|
||
def GetExecutingScriptHash(): | ||
pass | ||
|
||
|
||
def GetCallingScriptHash(): | ||
pass | ||
|
||
|
||
def GetEntryScriptHash(): | ||
pass |
Empty file.
Oops, something went wrong.