Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CityOfZion/neo-storm
/ functions
Functions
167 in github.com/CityOfZion/neo-storm
⨍
Functions
167
◇
Types & classes
21
↓ 69 callers
Function
emitOpcode
(w *bytes.Buffer, instr vm.Instruction)
compiler/emit.go:21
↓ 15 callers
Function
emitInt
(w *bytes.Buffer, i int64)
compiler/emit.go:32
↓ 8 callers
Function
Notify
Notify an event to the VM.
interop/runtime/runtime.go:15
↓ 8 callers
Method
emitStoreLocal
(pos int)
compiler/codegen.go:96
↓ 7 callers
Function
emitJmp
(w *bytes.Buffer, instr vm.Instruction, label int16)
compiler/emit.go:93
↓ 7 callers
Method
newLabel
newLabel creates a new label to jump to
compiler/codegen.go:42
↓ 7 callers
Method
setLabel
(l int)
compiler/codegen.go:48
↓ 6 callers
Method
String
()
vm/instruction_string.go:113
↓ 6 callers
Function
emit
(w *bytes.Buffer, instr vm.Instruction, b []byte)
compiler/emit.go:13
↓ 6 callers
Method
emitLoadConst
(t types.TypeAndValue)
compiler/codegen.go:57
↓ 5 callers
Function
Get
Get value matching given key
interop/storage/storage.go:18
↓ 5 callers
Function
emitBytes
(w *bytes.Buffer, b []byte)
compiler/emit.go:53
↓ 5 callers
Method
emitLoadLocal
(name string)
compiler/codegen.go:82
↓ 4 callers
Method
convertToken
(tok token.Token)
compiler/codegen.go:685
↓ 4 callers
Method
loadLocal
loadLocal loads the position of a local variable inside the scope of the function.
compiler/func_scope.go:110
↓ 4 callers
Method
newLocal
newLocal creates a new local variable into the scope of the function.
compiler/func_scope.go:103
↓ 3 callers
Function
Compile
Compile compiles a Go program into bytecode that can run on the NEO virtual machine.
compiler/compiler.go:42
↓ 3 callers
Function
GetContext
GetContext returns the storage context
interop/storage/storage.go:12
↓ 3 callers
Function
Put
Put value at given key
interop/storage/storage.go:15
↓ 3 callers
Function
indexOfStruct
indexOfStruct will return the index of the given field inside that struct. If the struct does not contain that field it will return -1.
compiler/analysis.go:111
↓ 3 callers
Function
isSyscall
(fun *funcScope)
compiler/analysis.go:197
↓ 2 callers
Function
CheckWitness
Package runtime provides function signatures that can be used inside smart contracts that are written in the neo-storm framework. CheckWitness verifie
interop/runtime/runtime.go:7
↓ 2 callers
Function
Delete
Delete key value pair from storage
interop/storage/storage.go:21
↓ 2 callers
Function
FromAddress
FromAddress is an utility function that converts an NEO address to its hash.
interop/util/util.go:4
↓ 2 callers
Function
GetCallingScriptHash
GetCallingScriptHash returns the script hash of the contract that started the execution of the current script.
interop/engine/engine.go:21
↓ 2 callers
Function
Log
Log instucts the VM to log the given message.
interop/runtime/runtime.go:12
↓ 2 callers
Function
arrayReverse
(b []byte)
compiler/emit.go:110
↓ 2 callers
Function
checkArgs
(args []interface{}, length int)
examples/storage/storage.go:40
↓ 2 callers
Method
convertFuncDecl
(file *ast.File, decl *ast.FuncDecl)
compiler/codegen.go:135
↓ 2 callers
Method
emitLoadField
(i int)
compiler/codegen.go:109
↓ 2 callers
Method
emitStoreStructField
(i int)
compiler/codegen.go:114
↓ 2 callers
Method
newFunc
(decl *ast.FuncDecl)
compiler/codegen.go:740
↓ 1 callers
Function
Application
Application returns the Application trigger type
interop/runtime/runtime.go:31
↓ 1 callers
Method
BalanceOf
BalanceOf gets the token balance of a specific address
examples/token/nep5/nep5.go:32
↓ 1 callers
Method
CanTransfer
CanTransfer returns the amount it can transfer
examples/token/nep5/nep5.go:60
↓ 1 callers
Function
CheckArgs
CheckArgs checks args array against a length indicator
examples/token/token.go:64
↓ 1 callers
Function
CodeGen
CodeGen is the function that compiles the program to bytecode.
compiler/codegen.go:747
↓ 1 callers
Function
CompileAndInspect
CompileAndInspect compiles the program and dumps the opcode in a user friendly format.
compiler/compiler.go:101
↓ 1 callers
Function
CompileAndSave
CompileAndSave will compile and save the file to disk.
compiler/compiler.go:74
↓ 1 callers
Function
CreateToken
CreateToken initializes the Token Interface for the Smart Contract to operate with
examples/token/token.go:18
↓ 1 callers
Function
Equals
Equals compares a with b and will return true whether a and b are equal.
interop/util/util.go:10
↓ 1 callers
Function
Find
Find returns an iterator.Iterator over the keys that matched the given key.
interop/storage/storage.go:24
↓ 1 callers
Function
GetEntryScriptHash
GetEntryScriptHash returns the script hash of the contract that started the execution from the start.
interop/engine/engine.go:27
↓ 1 callers
Function
GetExecutingScriptHash
GetExecutingScriptHash returns the script hash of the contract that is currently being executed.
interop/engine/engine.go:15
↓ 1 callers
Function
GetScriptContainer
Package engine provides function signatures that can be used inside smart contracts that are written in the neo-storm framework. GetScriptContainer re
interop/engine/engine.go:9
↓ 1 callers
Method
GetSupply
GetSupply gets the token totalSupply value from VM storage
examples/token/nep5/nep5.go:27
↓ 1 callers
Function
GetTrigger
GetTrigger returns the smart contract invoke trigger which can be either verification or application.
interop/runtime/runtime.go:26
↓ 1 callers
Function
IsUsableAddress
IsUsableAddress checks if the sender is either the correct NEO address or SC address
examples/token/nep5/nep5.go:80
↓ 1 callers
Function
Keys
Keys returns the iterator keys.
interop/iterator/iterator.go:21
↓ 1 callers
Method
Transfer
Transfer token from one user to another
examples/token/nep5/nep5.go:37
↓ 1 callers
Function
Values
Values returns the iterator values.
interop/iterator/iterator.go:26
↓ 1 callers
Function
Verification
Verification returns the Verification trigger type
interop/runtime/runtime.go:36
↓ 1 callers
Function
analyzeFuncUsage
(pkgs map[*types.Package]*loader.PackageInfo)
compiler/analysis.go:139
↓ 1 callers
Function
compileFile
(src string)
compiler/compiler_test.go:46
↓ 1 callers
Method
convertBuiltin
(expr *ast.CallExpr)
compiler/codegen.go:587
↓ 1 callers
Method
convertByteArray
(lit *ast.CompositeLit)
compiler/codegen.go:632
↓ 1 callers
Method
convertGlobals
convertGlobals will traverse the AST and only convert global declarations. If we call this in convertFuncDecl then it will load all global variables i
compiler/codegen.go:123
↓ 1 callers
Method
convertStruct
(lit *ast.CompositeLit)
compiler/codegen.go:642
↓ 1 callers
Method
convertSyscall
(api, name string)
compiler/codegen.go:575
↓ 1 callers
Function
countGlobals
countGlobals counts the global variables in the program to add them with the stacksize of the function.
compiler/analysis.go:50
↓ 1 callers
Function
emitBool
(w *bytes.Buffer, ok bool)
compiler/emit.go:25
↓ 1 callers
Function
emitCall
(w *bytes.Buffer, instr vm.Instruction, label int16)
compiler/emit.go:89
↓ 1 callers
Method
emitLoadLocalPos
(pos int)
compiler/codegen.go:90
↓ 1 callers
Function
emitString
(w *bytes.Buffer, s string)
compiler/emit.go:49
↓ 1 callers
Function
emitSyscall
(w *bytes.Buffer, api string)
compiler/emit.go:79
↓ 1 callers
Function
filterFilename
(infos []os.FileInfo)
compiler/compiler_test.go:37
↓ 1 callers
Method
funcUsed
(name string)
compiler/analysis.go:122
↓ 1 callers
Function
handleOperation
(operation string, args []interface{})
examples/runtime/runtime.go:30
↓ 1 callers
Function
hasReturnStmt
hasReturnStmt look if the given FuncDecl has a return statement.
compiler/analysis.go:128
↓ 1 callers
Function
isBuiltin
(expr ast.Expr)
compiler/analysis.go:161
↓ 1 callers
Function
isByteArray
(lit *ast.CompositeLit, tInfo *types.Info)
compiler/analysis.go:181
↓ 1 callers
Function
isIdentBool
isIdentBool looks if the given ident is a boolean.
compiler/analysis.go:67
↓ 1 callers
Function
isInstrJmp
(instr vm.Instruction)
compiler/emit.go:103
↓ 1 callers
Function
isStringType
(t types.Type)
compiler/analysis.go:205
↓ 1 callers
Function
makeBoolFromIdent
makeBoolFromIdent creates a bool type from an *ast.Ident.
compiler/analysis.go:72
↓ 1 callers
Function
newFuncScope
(decl *ast.FuncDecl, label int)
compiler/func_scope.go:38
↓ 1 callers
Function
parseContractDetails
()
cli/main.go:227
↓ 1 callers
Method
pc
pc return the program offset off the last instruction.
compiler/codegen.go:53
↓ 1 callers
Function
resolveEntryPoint
resolveEntryPoint returns the function declaration of the entrypoint and the corresponding file.
compiler/analysis.go:88
↓ 1 callers
Method
resolveFuncDecls
(f *ast.File)
compiler/codegen.go:798
↓ 1 callers
Method
stackSize
()
compiler/func_scope.go:74
↓ 1 callers
Method
toStormFile
()
cli/main.go:202
↓ 1 callers
Function
typeAndValueForField
typeAndValueForField returns a zero initialized typeAndValue for the given type.Var.
compiler/analysis.go:22
↓ 1 callers
Method
writeJumps
()
compiler/codegen.go:809
Function
Concat
Concat concats the 2 given enumerators.
interop/enumerator/enumerator.go:27
Function
Create
Create creates a new contract. @FIXME What is the type of the returnType here?
interop/contract/contract.go:28
Function
Create
Create creates an iterator from the given items.
interop/iterator/iterator.go:10
Function
Create
Create registers a new asset on the blockchain.
interop/asset/asset.go:50
Function
Create
Create creates a new enumerator from the given items.
interop/enumerator/enumerator.go:12
Function
Deserialize
Deserialize an item from a bytearray.
interop/runtime/runtime.go:46
Function
Destroy
Destroy deletes a contract that is registered on the blockchain.
interop/contract/contract.go:55
Function
GetAccount
GetAccount returns the account found by the given script hash.
interop/blockchain/blockchain.go:41
Function
GetAdmin
GetAdmin returns the admin of the given asset.
interop/asset/asset.go:40
Function
GetAmount
GetAmount returns the amount of the given asset.
interop/asset/asset.go:20
Function
GetAsset
GetAsset returns the asset found by the given asset id.
interop/blockchain/blockchain.go:51
Function
GetAssetID
GetAssetID returns the asset id of the given output.
interop/output/output.go:10
Function
GetAssetID
GetAssetID returns the id of the given asset.
interop/asset/asset.go:10
Function
GetAssetType
GetAssetType returns the type of the given asset.
interop/asset/asset.go:15
Function
GetAttributes
GetAttributes returns a slice of attributes for the given transaction.
interop/transaction/transaction.go:26
Function
GetAvailable
GetAvailable returns the available of the given asset.
interop/asset/asset.go:25
next →
1–100 of 167, ranked by callers