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
Method
__truediv__
(self, other: 'f64')
data/const/seahorse_prelude.py:397
Method
__truediv__
(self, other: 'f64')
data/const/seahorse_prelude.py:448
Method
__truediv__
(self, other: 'f64')
data/const/seahorse_prelude.py:517
Method
__truediv__
(self, other: 'f64')
data/const/seahorse_prelude.py:586
Method
__truediv__
(self, other: 'f64')
data/const/seahorse_prelude.py:655
Method
__truediv__
(self, other: 'f64')
data/const/seahorse_prelude.py:724
Method
amount
Get the amount of token stored in this account.
data/const/seahorse_prelude.py:980
Function
array
Create an array from a variadic list of elements. Example: ``` # Array[u64, 3] array(u64(0), 1, 2) # Array[str, 4] array('s
data/const/seahorse_prelude.py:803
Method
as_instance
(&self, params: &Vec<Ty>)
src/core/compile/builtin/python.rs:574
Method
as_instance
(&self, params: &Vec<Ty>)
src/core/compile/builtin/prelude.rs:340
Method
as_instance
(&self, params: &Vec<Ty>)
src/core/compile/builtin/pyth.rs:63
Method
attr
(&self, attr: &String)
src/core/compile/builtin/mod.rs:77
Method
attr
(&self, attr: &String)
src/core/compile/builtin/python.rs:583
Method
attr
(&self, attr: &String)
src/core/compile/builtin/prelude.rs:349
Method
attr
(&self, attr: &String)
src/core/compile/builtin/pyth.rs:70
Method
authority
Get the owner of this token account.
data/const/seahorse_prelude.py:977
Method
burn
Burn tokens from a token account. @param authority: The account that owns the `holder` TokenAccount. Must be an instruction signer o
data/const/seahorse_prelude.py:1021
Method
casted
(&self, ty: &Ty)
src/core/compile/builtin/python.rs:666
Method
casted
(&self, ty: &Ty)
src/core/compile/builtin/prelude.rs:1267
Method
casted
(&self, ty: &Ty)
src/core/compile/builtin/pyth.rs:233
Function
compile
TODO rename to something a bit clearer, reusing the name "compile" elsewhere
src/core/compiler.rs:10
Function
compile
(preprocessed: pre::ModuleRegistry)
src/core/compile/mod.rs:10
Method
contains_leaf
Return whether the tree contains a leaf at the given `path`.
src/core/util.rs:328
Function
dataclass
Decorator to create an automatic default class constructor.
data/const/seahorse_prelude.py:1045
Method
decimals
Get the number of decimals for this token.
data/const/seahorse_prelude.py:1005
Method
default
()
tests/compiled-examples/fizzbuzz.rs:144
Method
default
()
tests/compiled-examples/stored_mutables.rs:217
Method
default
()
tests/compiled-examples/calculator.rs:67
Method
default
()
tests/compiled-examples/event.rs:135
Method
default
()
tests/compiled-examples/pyth.rs:98
Method
default
()
tests/compiled-examples/hello.rs:148
Method
default
()
tests/compiled-examples/constants.rs:89
Method
default
()
tests/compiled-test-cases/account_key.rs:153
Method
deref
(&self)
tests/compiled-examples/fizzbuzz.rs:132
Method
deref
(&self)
tests/compiled-examples/stored_mutables.rs:498
Method
deref
(&self)
tests/compiled-examples/calculator.rs:182
Method
deref
(&self)
tests/compiled-examples/event.rs:123
Method
deref
(&self)
tests/compiled-examples/pyth.rs:86
Method
deref
(&self)
tests/compiled-examples/hello.rs:136
Method
deref
(&self)
tests/compiled-examples/constants.rs:77
Method
deref
(&self)
tests/compiled-test-cases/account_key.rs:141
Function
do_fizzbuzz
(ctx: Context<DoFizzbuzz>, n: u64)
tests/compiled-examples/fizzbuzz.rs:322
Function
do_fizzbuzz
(fizzbuzz: FizzBuzz, n: u64)
examples/fizzbuzz.py:20
Function
do_operation
(ctx: Context<DoOperation>, op: Operation, num: i64)
tests/compiled-examples/calculator.rs:374
Function
do_operation
(owner: Signer, calculator: Calculator, op: Operation, num: i64)
examples/calculator.py:34
Method
epoch
Get the bank Epoch.
data/const/seahorse_prelude.py:961
Method
epoch_start_timestamp
Get the timestamp of the first Slot in this Epoch.
data/const/seahorse_prelude.py:958
Method
find_program_address
Find a valid program derived address and its corresponding bump seed. Calls the same function from Solana's Pubkey struct - read more [here](
data/const/seahorse_prelude.py:844
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/core/util.rs:72
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/core/compile/check/mod.rs:268
Method
fmt
(&self, f: &mut Formatter<'_>)
src/core/preprocess/mod.rs:195
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/fizzbuzz.rs:138
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/stored_mutables.rs:504
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/calculator.rs:188
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/event.rs:129
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/pyth.rs:92
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/hello.rs:142
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/constants.rs:83
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-test-cases/account_key.rs:147
Method
freeze_authority
Get the freeze authority of this token mint.
data/const/seahorse_prelude.py:1002
Method
from
(obj: ExpressionObj)
src/core/compile/ast.rs:321
Method
from
(builtin: python::Python)
src/core/compile/builtin/mod.rs:48
Method
from
(context: Context<'_>)
src/core/compile/check/mod.rs:535
Method
get
(&self, name: &'static str)
tests/compiled-examples/event.rs:212
Method
get
(&self, name: &'static str)
tests/compiled-examples/pyth.rs:175
Method
get
(&self, name: &'static str)
tests/compiled-examples/constants.rs:166
Method
get_undeclared
Get the yet-to-be declared variables from a target.
src/core/compile/check/mod.rs:702
Method
has_info_lifetime
(&self)
src/core/compile/ast.rs:122
Method
index
(&self)
src/core/compile/builtin/python.rs:629
Method
index
(&self)
src/core/compile/builtin/prelude.rs:1181
Method
index
(&self)
src/core/compile/builtin/pyth.rs:225
Method
index_wrapped
(&self, mut index: i128)
tests/compiled-examples/fizzbuzz.rs:162
Method
index_wrapped
(&self, mut index: i128)
tests/compiled-examples/calculator.rs:212
Method
index_wrapped
(&self, mut index: i128)
tests/compiled-examples/event.rs:153
Method
index_wrapped
(&self, mut index: i128)
tests/compiled-examples/pyth.rs:116
Method
index_wrapped
(&self, mut index: i128)
tests/compiled-examples/hello.rs:166
Method
index_wrapped
(&self, mut index: i128)
tests/compiled-examples/constants.rs:107
Method
index_wrapped
(&self, mut index: i128)
tests/compiled-test-cases/account_key.rs:171
Method
index_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/fizzbuzz.rs:174
Method
index_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/stored_mutables.rs:540
Method
index_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/calculator.rs:224
Method
index_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/event.rs:165
Method
index_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/pyth.rs:128
Method
index_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/hello.rs:178
Method
index_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/constants.rs:119
Method
index_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-test-cases/account_key.rs:183
Function
init
(ctx: Context<Init>)
tests/compiled-examples/fizzbuzz.rs:344
Function
init
(ctx: Context<Init>)
tests/compiled-examples/stored_mutables.rs:691
Function
init
(ctx: Context<Init>)
tests/compiled-examples/hello.rs:332
Function
init
(signer: Signer, data: Empty[Data])
examples/stored_mutables.py:46
Function
init
(owner: Signer, hello: Empty[Hello], mint: Empty[TokenMint])
examples/hello.py:16
Function
init
(owner: Signer, fizzbuzz: Empty[FizzBuzz])
examples/fizzbuzz.py:16
Function
init_calculator
(ctx: Context<InitCalculator>)
tests/compiled-examples/calculator.rs:402
Function
init_calculator
(owner: Signer, calculator: Empty[Calculator])
examples/calculator.py:21
Function
instruction
Decorator to turn a function into a program instruction.
data/const/seahorse_prelude.py:1042
Function
int_bytes
Convenience method to turn an integer type into a little-endian (by default) list of bytes. @param n: The integer you wish to convert to
data/const/seahorse_prelude.py:1048
Method
invoke
Call this program in a cross-program invocation. Make sure you know what you're doing before you try using this - a poorly crafted data list
data/const/seahorse_prelude.py:933
Method
is_account
Returns whether this type represents an account. TODO this function is becoming a mess, could stand to refactor TyName to include the "is_account" inf
src/core/compile/check/mod.rs:247
Method
is_mut
Return whether this type is Python-mutable.
src/core/compile/check/mod.rs:197
Function
ix
(payer: Signer, user: User, another: Empty[Another])
tests/test-cases/account_key.py:18
← previous
next →
401–500 of 580, ranked by callers