MCPcopy Create free account

hub / github.com/CityOfZion/neo-storm / functions

Functions167 in github.com/CityOfZion/neo-storm

↓ 69 callersFunctionemitOpcode
(w *bytes.Buffer, instr vm.Instruction)
compiler/emit.go:21
↓ 15 callersFunctionemitInt
(w *bytes.Buffer, i int64)
compiler/emit.go:32
↓ 8 callersFunctionNotify
Notify an event to the VM.
interop/runtime/runtime.go:15
↓ 8 callersMethodemitStoreLocal
(pos int)
compiler/codegen.go:96
↓ 7 callersFunctionemitJmp
(w *bytes.Buffer, instr vm.Instruction, label int16)
compiler/emit.go:93
↓ 7 callersMethodnewLabel
newLabel creates a new label to jump to
compiler/codegen.go:42
↓ 7 callersMethodsetLabel
(l int)
compiler/codegen.go:48
↓ 6 callersMethodString
()
vm/instruction_string.go:113
↓ 6 callersFunctionemit
(w *bytes.Buffer, instr vm.Instruction, b []byte)
compiler/emit.go:13
↓ 6 callersMethodemitLoadConst
(t types.TypeAndValue)
compiler/codegen.go:57
↓ 5 callersFunctionGet
Get value matching given key
interop/storage/storage.go:18
↓ 5 callersFunctionemitBytes
(w *bytes.Buffer, b []byte)
compiler/emit.go:53
↓ 5 callersMethodemitLoadLocal
(name string)
compiler/codegen.go:82
↓ 4 callersMethodconvertToken
(tok token.Token)
compiler/codegen.go:685
↓ 4 callersMethodloadLocal
loadLocal loads the position of a local variable inside the scope of the function.
compiler/func_scope.go:110
↓ 4 callersMethodnewLocal
newLocal creates a new local variable into the scope of the function.
compiler/func_scope.go:103
↓ 3 callersFunctionCompile
Compile compiles a Go program into bytecode that can run on the NEO virtual machine.
compiler/compiler.go:42
↓ 3 callersFunctionGetContext
GetContext returns the storage context
interop/storage/storage.go:12
↓ 3 callersFunctionPut
Put value at given key
interop/storage/storage.go:15
↓ 3 callersFunctionindexOfStruct
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 callersFunctionisSyscall
(fun *funcScope)
compiler/analysis.go:197
↓ 2 callersFunctionCheckWitness
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 callersFunctionDelete
Delete key value pair from storage
interop/storage/storage.go:21
↓ 2 callersFunctionFromAddress
FromAddress is an utility function that converts an NEO address to its hash.
interop/util/util.go:4
↓ 2 callersFunctionGetCallingScriptHash
GetCallingScriptHash returns the script hash of the contract that started the execution of the current script.
interop/engine/engine.go:21
↓ 2 callersFunctionLog
Log instucts the VM to log the given message.
interop/runtime/runtime.go:12
↓ 2 callersFunctionarrayReverse
(b []byte)
compiler/emit.go:110
↓ 2 callersFunctioncheckArgs
(args []interface{}, length int)
examples/storage/storage.go:40
↓ 2 callersMethodconvertFuncDecl
(file *ast.File, decl *ast.FuncDecl)
compiler/codegen.go:135
↓ 2 callersMethodemitLoadField
(i int)
compiler/codegen.go:109
↓ 2 callersMethodemitStoreStructField
(i int)
compiler/codegen.go:114
↓ 2 callersMethodnewFunc
(decl *ast.FuncDecl)
compiler/codegen.go:740
↓ 1 callersFunctionApplication
Application returns the Application trigger type
interop/runtime/runtime.go:31
↓ 1 callersMethodBalanceOf
BalanceOf gets the token balance of a specific address
examples/token/nep5/nep5.go:32
↓ 1 callersMethodCanTransfer
CanTransfer returns the amount it can transfer
examples/token/nep5/nep5.go:60
↓ 1 callersFunctionCheckArgs
CheckArgs checks args array against a length indicator
examples/token/token.go:64
↓ 1 callersFunctionCodeGen
CodeGen is the function that compiles the program to bytecode.
compiler/codegen.go:747
↓ 1 callersFunctionCompileAndInspect
CompileAndInspect compiles the program and dumps the opcode in a user friendly format.
compiler/compiler.go:101
↓ 1 callersFunctionCompileAndSave
CompileAndSave will compile and save the file to disk.
compiler/compiler.go:74
↓ 1 callersFunctionCreateToken
CreateToken initializes the Token Interface for the Smart Contract to operate with
examples/token/token.go:18
↓ 1 callersFunctionEquals
Equals compares a with b and will return true whether a and b are equal.
interop/util/util.go:10
↓ 1 callersFunctionFind
Find returns an iterator.Iterator over the keys that matched the given key.
interop/storage/storage.go:24
↓ 1 callersFunctionGetEntryScriptHash
GetEntryScriptHash returns the script hash of the contract that started the execution from the start.
interop/engine/engine.go:27
↓ 1 callersFunctionGetExecutingScriptHash
GetExecutingScriptHash returns the script hash of the contract that is currently being executed.
interop/engine/engine.go:15
↓ 1 callersFunctionGetScriptContainer
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 callersMethodGetSupply
GetSupply gets the token totalSupply value from VM storage
examples/token/nep5/nep5.go:27
↓ 1 callersFunctionGetTrigger
GetTrigger returns the smart contract invoke trigger which can be either verification or application.
interop/runtime/runtime.go:26
↓ 1 callersFunctionIsUsableAddress
IsUsableAddress checks if the sender is either the correct NEO address or SC address
examples/token/nep5/nep5.go:80
↓ 1 callersFunctionKeys
Keys returns the iterator keys.
interop/iterator/iterator.go:21
↓ 1 callersMethodTransfer
Transfer token from one user to another
examples/token/nep5/nep5.go:37
↓ 1 callersFunctionValues
Values returns the iterator values.
interop/iterator/iterator.go:26
↓ 1 callersFunctionVerification
Verification returns the Verification trigger type
interop/runtime/runtime.go:36
↓ 1 callersFunctionanalyzeFuncUsage
(pkgs map[*types.Package]*loader.PackageInfo)
compiler/analysis.go:139
↓ 1 callersFunctioncompileFile
(src string)
compiler/compiler_test.go:46
↓ 1 callersMethodconvertBuiltin
(expr *ast.CallExpr)
compiler/codegen.go:587
↓ 1 callersMethodconvertByteArray
(lit *ast.CompositeLit)
compiler/codegen.go:632
↓ 1 callersMethodconvertGlobals
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 callersMethodconvertStruct
(lit *ast.CompositeLit)
compiler/codegen.go:642
↓ 1 callersMethodconvertSyscall
(api, name string)
compiler/codegen.go:575
↓ 1 callersFunctioncountGlobals
countGlobals counts the global variables in the program to add them with the stacksize of the function.
compiler/analysis.go:50
↓ 1 callersFunctionemitBool
(w *bytes.Buffer, ok bool)
compiler/emit.go:25
↓ 1 callersFunctionemitCall
(w *bytes.Buffer, instr vm.Instruction, label int16)
compiler/emit.go:89
↓ 1 callersMethodemitLoadLocalPos
(pos int)
compiler/codegen.go:90
↓ 1 callersFunctionemitString
(w *bytes.Buffer, s string)
compiler/emit.go:49
↓ 1 callersFunctionemitSyscall
(w *bytes.Buffer, api string)
compiler/emit.go:79
↓ 1 callersFunctionfilterFilename
(infos []os.FileInfo)
compiler/compiler_test.go:37
↓ 1 callersMethodfuncUsed
(name string)
compiler/analysis.go:122
↓ 1 callersFunctionhandleOperation
(operation string, args []interface{})
examples/runtime/runtime.go:30
↓ 1 callersFunctionhasReturnStmt
hasReturnStmt look if the given FuncDecl has a return statement.
compiler/analysis.go:128
↓ 1 callersFunctionisBuiltin
(expr ast.Expr)
compiler/analysis.go:161
↓ 1 callersFunctionisByteArray
(lit *ast.CompositeLit, tInfo *types.Info)
compiler/analysis.go:181
↓ 1 callersFunctionisIdentBool
isIdentBool looks if the given ident is a boolean.
compiler/analysis.go:67
↓ 1 callersFunctionisInstrJmp
(instr vm.Instruction)
compiler/emit.go:103
↓ 1 callersFunctionisStringType
(t types.Type)
compiler/analysis.go:205
↓ 1 callersFunctionmakeBoolFromIdent
makeBoolFromIdent creates a bool type from an *ast.Ident.
compiler/analysis.go:72
↓ 1 callersFunctionnewFuncScope
(decl *ast.FuncDecl, label int)
compiler/func_scope.go:38
↓ 1 callersFunctionparseContractDetails
()
cli/main.go:227
↓ 1 callersMethodpc
pc return the program offset off the last instruction.
compiler/codegen.go:53
↓ 1 callersFunctionresolveEntryPoint
resolveEntryPoint returns the function declaration of the entrypoint and the corresponding file.
compiler/analysis.go:88
↓ 1 callersMethodresolveFuncDecls
(f *ast.File)
compiler/codegen.go:798
↓ 1 callersMethodstackSize
()
compiler/func_scope.go:74
↓ 1 callersMethodtoStormFile
()
cli/main.go:202
↓ 1 callersFunctiontypeAndValueForField
typeAndValueForField returns a zero initialized typeAndValue for the given type.Var.
compiler/analysis.go:22
↓ 1 callersMethodwriteJumps
()
compiler/codegen.go:809
FunctionConcat
Concat concats the 2 given enumerators.
interop/enumerator/enumerator.go:27
FunctionCreate
Create creates a new contract. @FIXME What is the type of the returnType here?
interop/contract/contract.go:28
FunctionCreate
Create creates an iterator from the given items.
interop/iterator/iterator.go:10
FunctionCreate
Create registers a new asset on the blockchain.
interop/asset/asset.go:50
FunctionCreate
Create creates a new enumerator from the given items.
interop/enumerator/enumerator.go:12
FunctionDeserialize
Deserialize an item from a bytearray.
interop/runtime/runtime.go:46
FunctionDestroy
Destroy deletes a contract that is registered on the blockchain.
interop/contract/contract.go:55
FunctionGetAccount
GetAccount returns the account found by the given script hash.
interop/blockchain/blockchain.go:41
FunctionGetAdmin
GetAdmin returns the admin of the given asset.
interop/asset/asset.go:40
FunctionGetAmount
GetAmount returns the amount of the given asset.
interop/asset/asset.go:20
FunctionGetAsset
GetAsset returns the asset found by the given asset id.
interop/blockchain/blockchain.go:51
FunctionGetAssetID
GetAssetID returns the asset id of the given output.
interop/output/output.go:10
FunctionGetAssetID
GetAssetID returns the id of the given asset.
interop/asset/asset.go:10
FunctionGetAssetType
GetAssetType returns the type of the given asset.
interop/asset/asset.go:15
FunctionGetAttributes
GetAttributes returns a slice of attributes for the given transaction.
interop/transaction/transaction.go:26
FunctionGetAvailable
GetAvailable returns the available of the given asset.
interop/asset/asset.go:25
next →1–100 of 167, ranked by callers