MCPcopy Create free account
hub / github.com/diem/move / Script

Class Script

language/move-ir/types/src/ast.rs:52–65  ·  view source on GitHub ↗

The Move transaction script to be executed

Source from the content-addressed store, hash-verified

50#[derive(Debug, Clone)]
51/// The Move transaction script to be executed
52pub struct Script {
53 /// The source location for this script
54 pub loc: Loc,
55 /// The dependencies of `main`, i.e. of the transaction script
56 pub imports: Vec<ImportDefinition>,
57 /// Explicit declaration of dependencies. If not provided, will be inferred based on given
58 /// dependencies to the IR compiler
59 pub explicit_dependency_declarations: Vec<ModuleDependency>,
60 /// the constants that the module defines. Only a utility, the identifiers are not carried into
61 /// the Move bytecode
62 pub constants: Vec<Constant>,
63 /// The transaction script's `main` procedure
64 pub main: Function,
65}
66
67//**************************************************************************************************
68// Modules

Callers 13

decode_unitMethod · 0.50
mainFunction · 0.50
from_unitMethod · 0.50
view_bytecodeMethod · 0.50
verify_scriptMethod · 0.50
handle_commandMethod · 0.50
parse_script_or_moduleFunction · 0.50
test_empty_scriptFunction · 0.50
verify_script_implMethod · 0.50
verify_script_implMethod · 0.50
verify_script_implMethod · 0.50
scriptMethod · 0.50

Calls

no outgoing calls

Tested by 1

test_empty_scriptFunction · 0.40