Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ameliatastic/seahorse-lang
/ functions
Functions
580 in github.com/ameliatastic/seahorse-lang
⨍
Functions
580
◇
Types & classes
238
Function
ix
(ctx: Context<Ix>)
tests/compiled-test-cases/account_key.rs:336
Method
key
Get this account's key.
data/const/seahorse_prelude.py:856
Method
leader_schedule_epoch
Get the future Epoch for which the leader schedule has most recently been calculated.
data/const/seahorse_prelude.py:964
Method
load
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-examples/fizzbuzz.rs:24
Method
load
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-examples/stored_mutables.rs:32
Method
load
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-examples/calculator.rs:23
Method
load
(stored: Self)
tests/compiled-examples/event.rs:52
Method
load
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-examples/hello.rs:22
Method
load
( account: &'entrypoint mut Box<Account<'info, Self>>, programs_map: &'entrypoint ProgramsMap<
tests/compiled-test-cases/account_key.rs:22
Function
main
()
build.rs:48
Function
main
()
src/bin/seahorse.rs:5
Method
make_raw
(header: H, footer: F)
src/core/util.rs:58
Method
mint
Get the mint that this token account corresponds to.
data/const/seahorse_prelude.py:983
Method
moved
Add a move to the expression, if appropriate to do so.
src/core/compile/ast.rs:304
Method
name
(&self)
src/core/compile/builtin/python.rs:77
Method
name
(&self)
src/core/compile/builtin/prelude.rs:94
Method
name
(&self)
src/core/compile/builtin/pyth.rs:46
Function
namespace
Create the Python builtins namespace.
src/core/compile/builtin/python.rs:41
Function
namespace
Create the seahorse.prelude namespace.
src/core/compile/builtin/prelude.rs:47
Method
new
(src: &Rc<String>, loc: SrcLocation)
src/core/util.rs:142
Method
new
()
src/core/compile/ast.rs:203
Method
new
(sign_output: &'a SignOutput, abs: &'a Vec<String>)
src/core/compile/check/mod.rs:551
Method
new
(src: &Rc<String>, obj: T)
src/core/clean/mod.rs:208
Method
new
(mut path: Vec<String>, fs_base: PathBuf)
src/core/preprocess/mod.rs:137
Method
new
(obj: T)
tests/compiled-examples/fizzbuzz.rs:118
Method
new
(obj: T)
tests/compiled-examples/stored_mutables.rs:484
Method
new
(obj: T)
tests/compiled-examples/calculator.rs:168
Method
new
(obj: T)
tests/compiled-examples/event.rs:109
Method
new
(obj: T)
tests/compiled-examples/pyth.rs:72
Method
new
(obj: T)
tests/compiled-examples/hello.rs:122
Method
new
(obj: T)
tests/compiled-examples/constants.rs:63
Method
new
(obj: T)
tests/compiled-test-cases/account_key.rs:127
Method
new_function
(params: Vec<(&'static str, Ty, ParamType)>, returns: Ty)
src/core/compile/check/mod.rs:181
Method
new_list
Create a List[`t`].
src/core/compile/check/mod.rs:192
Method
new_specific
Make a "specific" type (as opposed to a generic) - a type with no params.
src/core/compile/ast.rs:113
Function
path_to_string
(path: &Vec<String>)
src/core/compile/namespace/mod.rs:60
Method
prelude
(builtin: Prelude, params: Vec<Self>)
src/core/compile/check/mod.rs:173
Method
prune
Turn a tree of Option<T> into a tree of T by pruning `None` leaves.
src/core/util.rs:402
Method
pyth
(builtin: Pyth, params: Vec<Self>)
src/core/compile/check/mod.rs:177
Method
python
(builtin: Python, params: Vec<Self>)
src/core/compile/check/mod.rs:169
Function
reset_calculator
(ctx: Context<ResetCalculator>)
tests/compiled-examples/calculator.rs:436
Function
reset_calculator
(owner: Signer, calculator: Calculator)
examples/calculator.py:26
Function
say_hello
(ctx: Context<SayHello>)
tests/compiled-examples/hello.rs:382
Function
say_hello
(user_acc: TokenAccount, hello: Hello, mint: TokenMint)
examples/hello.py:35
Function
send_event
(ctx: Context<SendEvent>, data: u8, title: String)
tests/compiled-examples/event.rs:313
Function
send_event
( sender: Signer, data: u8, title: str )
examples/event.py:22
Function
size
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
Method
slot
Get the current network/bank Slot.
data/const/seahorse_prelude.py:955
Method
static_attr
(&self, attr: &String)
src/core/compile/builtin/python.rs:662
Method
static_attr
(&self, attr: &String)
src/core/compile/builtin/prelude.rs:1216
Method
static_attr
(&self, _attr: &String)
src/core/compile/builtin/pyth.rs:229
Method
store
(loaded: Mutable<LoadedFizzBuzz>)
tests/compiled-examples/fizzbuzz.rs:41
Method
store
(loaded: Mutable<LoadedData>)
tests/compiled-examples/stored_mutables.rs:89
Method
store
(loaded: Mutable<LoadedCalculator>)
tests/compiled-examples/calculator.rs:38
Method
store
(loaded: Self::Loaded)
tests/compiled-examples/event.rs:60
Method
store
(loaded: Mutable<LoadedHello>)
tests/compiled-examples/hello.rs:35
Method
store
(loaded: Mutable<LoadedAnother>)
tests/compiled-test-cases/account_key.rs:35
Method
supply
Get the amount of this token that exists.
data/const/seahorse_prelude.py:1008
Function
test_stored_mutables
(ctx: Context<TestStoredMutables>)
tests/compiled-examples/stored_mutables.rs:725
Function
test_stored_mutables
(signer: Signer, data: Data)
examples/stored_mutables.py:62
Method
to_tokens
(&self, tokens: &mut proc_macro2::TokenStream)
src/core/generate/mod.rs:41
Method
transfer
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
Method
transfer_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
Method
transfer_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
Method
try_from
(registry: pre::ModuleRegistry)
src/core/compile/namespace/mod.rs:209
Method
try_from
(namespace_output: NamespaceOutput)
src/core/compile/sign/mod.rs:208
Method
try_from
(sign_output: SignOutput)
src/core/compile/check/mod.rs:2234
Method
try_from
((build_output, program_name): (BuildOutput, String))
src/core/generate/mod.rs:1842
Method
ty
(&self)
src/core/compile/builtin/python.rs:105
Method
ty
(&self)
src/core/compile/builtin/prelude.rs:126
Method
ty
(&self)
src/core/compile/builtin/pyth.rs:55
Method
typecheck_constant
( constant: &ast::Expression, sign_output: &'a SignOutput, abs: &'a Vec<String>, )
src/core/compile/check/mod.rs:579
Method
typecheck_func
Typecheck a function from start to finish.
src/core/compile/check/mod.rs:565
Method
unix_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
Function
use_constants
(ctx: Context<UseConstants>)
tests/compiled-examples/constants.rs:266
Function
use_constants
(signer: Signer)
examples/constants.py:19
Function
use_sol_usd_price
(ctx: Context<UseSolUsdPrice>)
tests/compiled-examples/pyth.rs:276
Function
use_sol_usd_price
(price_account: PriceAccount)
examples/pyth.py:8
Function
wait
Helper function to wait for 1 second, in case debug output is going by too quickly.
src/core/util.rs:446
Method
with_src
(self, src: Rc<String>)
src/core/util.rs:51
← previous
501–580 of 580, ranked by callers