MCPcopy Create free account

hub / github.com/ameliatastic/seahorse-lang / functions

Functions580 in github.com/ameliatastic/seahorse-lang

Functionix
(ctx: Context<Ix>)
tests/compiled-test-cases/account_key.rs:336
Methodkey
Get this account's key.
data/const/seahorse_prelude.py:856
Methodleader_schedule_epoch
Get the future Epoch for which the leader schedule has most recently been calculated.
data/const/seahorse_prelude.py:964
Methodload
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-examples/fizzbuzz.rs:24
Methodload
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-examples/stored_mutables.rs:32
Methodload
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-examples/calculator.rs:23
Methodload
(stored: Self)
tests/compiled-examples/event.rs:52
Methodload
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-examples/hello.rs:22
Methodload
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-test-cases/account_key.rs:22
Functionmain
()
build.rs:48
Functionmain
()
src/bin/seahorse.rs:5
Methodmake_raw
(header: H, footer: F)
src/core/util.rs:58
Methodmint
Get the mint that this token account corresponds to.
data/const/seahorse_prelude.py:983
Methodmoved
Add a move to the expression, if appropriate to do so.
src/core/compile/ast.rs:304
Methodname
(&self)
src/core/compile/builtin/python.rs:77
Methodname
(&self)
src/core/compile/builtin/prelude.rs:94
Methodname
(&self)
src/core/compile/builtin/pyth.rs:46
Functionnamespace
Create the Python builtins namespace.
src/core/compile/builtin/python.rs:41
Functionnamespace
Create the seahorse.prelude namespace.
src/core/compile/builtin/prelude.rs:47
Methodnew
(src: &Rc<String>, loc: SrcLocation)
src/core/util.rs:142
Methodnew
()
src/core/compile/ast.rs:203
Methodnew
(sign_output: &'a SignOutput, abs: &'a Vec<String>)
src/core/compile/check/mod.rs:551
Methodnew
(src: &Rc<String>, obj: T)
src/core/clean/mod.rs:208
Methodnew
(mut path: Vec<String>, fs_base: PathBuf)
src/core/preprocess/mod.rs:137
Methodnew
(obj: T)
tests/compiled-examples/fizzbuzz.rs:118
Methodnew
(obj: T)
tests/compiled-examples/stored_mutables.rs:484
Methodnew
(obj: T)
tests/compiled-examples/calculator.rs:168
Methodnew
(obj: T)
tests/compiled-examples/event.rs:109
Methodnew
(obj: T)
tests/compiled-examples/pyth.rs:72
Methodnew
(obj: T)
tests/compiled-examples/hello.rs:122
Methodnew
(obj: T)
tests/compiled-examples/constants.rs:63
Methodnew
(obj: T)
tests/compiled-test-cases/account_key.rs:127
Methodnew_function
(params: Vec<(&'static str, Ty, ParamType)>, returns: Ty)
src/core/compile/check/mod.rs:181
Methodnew_list
Create a List[`t`].
src/core/compile/check/mod.rs:192
Methodnew_specific
Make a "specific" type (as opposed to a generic) - a type with no params.
src/core/compile/ast.rs:113
Functionpath_to_string
(path: &Vec<String>)
src/core/compile/namespace/mod.rs:60
Methodprelude
(builtin: Prelude, params: Vec<Self>)
src/core/compile/check/mod.rs:173
Methodprune
Turn a tree of Option<T> into a tree of T by pruning `None` leaves.
src/core/util.rs:402
Methodpyth
(builtin: Pyth, params: Vec<Self>)
src/core/compile/check/mod.rs:177
Methodpython
(builtin: Python, params: Vec<Self>)
src/core/compile/check/mod.rs:169
Functionreset_calculator
(ctx: Context<ResetCalculator>)
tests/compiled-examples/calculator.rs:436
Functionreset_calculator
(owner: Signer, calculator: Calculator)
examples/calculator.py:26
Functionsay_hello
(ctx: Context<SayHello>)
tests/compiled-examples/hello.rs:382
Functionsay_hello
(user_acc: TokenAccount, hello: Hello, mint: TokenMint)
examples/hello.py:35
Functionsend_event
(ctx: Context<SendEvent>, data: u8, title: String)
tests/compiled-examples/event.rs:313
Functionsend_event
( sender: Signer, data: u8, title: str )
examples/event.py:22
Functionsize
Get the size of an object in bytes. Currently this is only supported for strings. @param ob: The object to get the size of.
data/const/seahorse_prelude.py:1056
Methodslot
Get the current network/bank Slot.
data/const/seahorse_prelude.py:955
Methodstatic_attr
(&self, attr: &String)
src/core/compile/builtin/python.rs:662
Methodstatic_attr
(&self, attr: &String)
src/core/compile/builtin/prelude.rs:1216
Methodstatic_attr
(&self, _attr: &String)
src/core/compile/builtin/pyth.rs:229
Methodstore
(loaded: Mutable<LoadedFizzBuzz>)
tests/compiled-examples/fizzbuzz.rs:41
Methodstore
(loaded: Mutable<LoadedData>)
tests/compiled-examples/stored_mutables.rs:89
Methodstore
(loaded: Mutable<LoadedCalculator>)
tests/compiled-examples/calculator.rs:38
Methodstore
(loaded: Self::Loaded)
tests/compiled-examples/event.rs:60
Methodstore
(loaded: Mutable<LoadedHello>)
tests/compiled-examples/hello.rs:35
Methodstore
(loaded: Mutable<LoadedAnother>)
tests/compiled-test-cases/account_key.rs:35
Methodsupply
Get the amount of this token that exists.
data/const/seahorse_prelude.py:1008
Functiontest_stored_mutables
(ctx: Context<TestStoredMutables>)
tests/compiled-examples/stored_mutables.rs:725
Functiontest_stored_mutables
(signer: Signer, data: Data)
examples/stored_mutables.py:62
Methodto_tokens
(&self, tokens: &mut proc_macro2::TokenStream)
src/core/generate/mod.rs:41
Methodtransfer
Transfer funds from this SPL token account to another. @param authority: The account that owns this TokenAccount. Must be an
data/const/seahorse_prelude.py:986
Methodtransfer_lamports
Transfer some SOL directly to another account. Since this account is program-owned, this transfer does not require a CPI. @param to:
data/const/seahorse_prelude.py:862
Methodtransfer_lamports
Transfer some SOL directly to another account. Unlike using transfer_lamports from a program account, this transfer will require a CPI.
data/const/seahorse_prelude.py:881
Methodtry_from
(registry: pre::ModuleRegistry)
src/core/compile/namespace/mod.rs:209
Methodtry_from
(namespace_output: NamespaceOutput)
src/core/compile/sign/mod.rs:208
Methodtry_from
(sign_output: SignOutput)
src/core/compile/check/mod.rs:2234
Methodtry_from
((build_output, program_name): (BuildOutput, String))
src/core/generate/mod.rs:1842
Methodty
(&self)
src/core/compile/builtin/python.rs:105
Methodty
(&self)
src/core/compile/builtin/prelude.rs:126
Methodty
(&self)
src/core/compile/builtin/pyth.rs:55
Methodtypecheck_constant
( constant: &ast::Expression, sign_output: &'a SignOutput, abs: &'a Vec<String>, )
src/core/compile/check/mod.rs:579
Methodtypecheck_func
Typecheck a function from start to finish.
src/core/compile/check/mod.rs:565
Methodunix_timestamp
Get the estimated current UNIX timestamp. Originally computed from genesis creation time and network time in slots (drifty);
data/const/seahorse_prelude.py:967
Functionuse_constants
(ctx: Context<UseConstants>)
tests/compiled-examples/constants.rs:266
Functionuse_constants
(signer: Signer)
examples/constants.py:19
Functionuse_sol_usd_price
(ctx: Context<UseSolUsdPrice>)
tests/compiled-examples/pyth.rs:276
Functionuse_sol_usd_price
(price_account: PriceAccount)
examples/pyth.py:8
Functionwait
Helper function to wait for 1 second, in case debug output is going by too quickly.
src/core/util.rs:446
Methodwith_src
(self, src: Rc<String>)
src/core/util.rs:51
← previous501–580 of 580, ranked by callers