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
↓ 1 callers
Method
__emit__
(&self)
tests/compiled-examples/event.rs:30
↓ 1 callers
Method
_advance_path
( &self, mut rel: VecDeque<String>, abs: &Vec<String>, )
src/core/compile/namespace/mod.rs:123
↓ 1 callers
Function
_flatten
(tree: &Tree<String>, path: &mut Vec<String>)
src/bin/cli/compile.rs:29
↓ 1 callers
Method
_insert
( &mut self, mut path: I, last: String, tree: Self, allow_overwrite: b
src/core/util.rs:297
↓ 1 callers
Method
_map
(self, f: Rc<F>)
src/core/util.rs:174
↓ 1 callers
Method
_map_with_path
(self, f: Rc<F>, path: &mut Vec<String>)
src/core/util.rs:194
↓ 1 callers
Function
add_mods
Add mod.rs content.
src/core/generate/mod.rs:1754
↓ 1 callers
Method
advance_path
Advance a relative path as far as possible. Two paths are returned: the resulting absolute path and the remainder of the relative path, which may be
src/core/compile/namespace/mod.rs:115
↓ 1 callers
Method
as_instance
(&self, params: &Vec<Ty>)
src/core/compile/builtin/mod.rs:73
↓ 1 callers
Method
authority
Get the owner of this token mint.
data/const/seahorse_prelude.py:999
↓ 1 callers
Function
beautify_impl
Make a `TokenStream` look nice.
src/core/generate/mod.rs:1776
↓ 1 callers
Function
build_pyth_table
(out_dir: &OsString)
build.rs:11
↓ 1 callers
Function
build_python_namespace
Build the namespace for a Python module at `path`.
src/core/compile/namespace/mod.rs:338
↓ 1 callers
Function
build_signature
( def: &ca::TopLevelStatement, // TODO: fairly common pattern to pass around an absolute path to a lea
src/core/compile/sign/mod.rs:285
↓ 1 callers
Method
bump
Get this account's bump, needed if you want to use this account to sign CPI calls. If you've initialized an account without
data/const/seahorse_prelude.py:907
↓ 1 callers
Function
check
(signed: SignOutput)
src/core/compile/check/mod.rs:2348
↓ 1 callers
Method
check_expr_independent
Check an expression indepedently. Works with a fresh copies of `types`, `scopes`, and `expr_order` to keep this typecheck independent from everything
src/core/compile/check/mod.rs:1659
↓ 1 callers
Method
check_func
Typecheck a function.
src/core/compile/check/mod.rs:1032
↓ 1 callers
Method
check_statement
Typecheck a statement.
src/core/compile/check/mod.rs:1088
↓ 1 callers
Method
defined_static_attr
(&self, path: &Vec<String>, attr: &String)
src/core/compile/check/mod.rs:997
↓ 1 callers
Function
do_fizzbuzz_handler
( mut fizzbuzz: Mutable<LoadedFizzBuzz<'info, '_>>, mut n: u64, )
tests/compiled-examples/fizzbuzz.rs:66
↓ 1 callers
Function
do_operation_handler
( mut owner: SeahorseSigner<'info, '_>, mut calculator: Mutable<LoadedCalculator<'info, '_>>, mut
tests/compiled-examples/calculator.rs:72
↓ 1 callers
Method
emit
Emit the event to the blockchain
data/const/seahorse_prelude.py:873
↓ 1 callers
Function
flatten
Flatten a generated filetree into a single string with filename headers.
src/bin/cli/compile.rs:25
↓ 1 callers
Function
from_os_string
(os: &OsStr)
src/core/preprocess/mod.rs:107
↓ 1 callers
Function
generate
(build_output: BuildOutput, program_name: String)
src/core/generate/mod.rs:1886
↓ 1 callers
Method
get
(&self, name: &'static str)
tests/compiled-examples/fizzbuzz.rs:221
↓ 1 callers
Method
get
(&self, name: &'static str)
tests/compiled-examples/stored_mutables.rs:587
↓ 1 callers
Method
get
(&self, name: &'static str)
tests/compiled-examples/calculator.rs:271
↓ 1 callers
Method
get
(&self, name: &'static str)
tests/compiled-test-cases/account_key.rs:230
↓ 1 callers
Method
get_price
Get the price. Throws an error if the product is not currently trading.
data/const/seahorse_pyth.py:36
↓ 1 callers
Method
index_wrapped
(&self, mut index: i128)
tests/compiled-examples/stored_mutables.rs:528
↓ 1 callers
Function
init
Initializes a new Seahorse project.
src/bin/cli/init.rs:58
↓ 1 callers
Function
init_calculator_handler
( mut owner: SeahorseSigner<'info, '_>, mut calculator: Empty<Mutable<LoadedCalculator<'info, '_>>>, )
tests/compiled-examples/calculator.rs:111
↓ 1 callers
Function
init_handler
( mut owner: SeahorseSigner<'info, '_>, mut fizzbuzz: Empty<Mutable<LoadedFizzBuzz<'info, '_>>>, )
tests/compiled-examples/fizzbuzz.rs:81
↓ 1 callers
Function
init_handler
( mut signer: SeahorseSigner<'info, '_>, mut data: Empty<Mutable<LoadedData<'info, '_>>>, )
tests/compiled-examples/stored_mutables.rs:321
↓ 1 callers
Function
init_handler
( mut owner: SeahorseSigner<'info, '_>, mut hello: Empty<Mutable<LoadedHello<'info, '_>>>, mut min
tests/compiled-examples/hello.rs:50
↓ 1 callers
Method
is_owned
Return whether this expression refers to some owned data. This is true when we're referring directly to a variable (`Id`), or some part of a value (at
src/core/compile/ast.rs:413
↓ 1 callers
Method
is_program
(&self)
src/core/compile/ast.rs:178
↓ 1 callers
Function
ix_handler
( mut payer: SeahorseSigner<'info, '_>, mut user: Mutable<LoadedUser<'info, '_>>, mut another: Emp
tests/compiled-test-cases/account_key.rs:85
↓ 1 callers
Function
make_lib
( origin: &Artifact, path: &Vec<String>, program_name: &String, features: &BTreeSet<Feature>,
src/core/generate/mod.rs:1303
↓ 1 callers
Method
mint
Mint new tokens to a token account. @param authority: The account that owns this TokenMint. Must be an instruction signer or the acc
data/const/seahorse_prelude.py:1011
↓ 1 callers
Method
name
(&self)
src/core/compile/builtin/mod.rs:65
↓ 1 callers
Method
name
(&self)
src/core/generate/mod.rs:26
↓ 1 callers
Function
namespace
Create the seahorse.pyth namespace.
src/core/compile/builtin/pyth.rs:27
↓ 1 callers
Method
num
Simply get price as a floating-point number. Does not take confidence into account, instead reporting the average estimated price.
data/const/seahorse_pyth.py:25
↓ 1 callers
Function
preprocess
Preprocess the source module by loading its dependencies and packaging them into a registry.
src/core/preprocess/mod.rs:375
↓ 1 callers
Function
reset_calculator_handler
( mut owner: SeahorseSigner<'info, '_>, mut calculator: Mutable<LoadedCalculator<'info, '_>>, )
tests/compiled-examples/calculator.rs:120
↓ 1 callers
Function
run
Run the CLI.
src/bin/cli/cli.rs:29
↓ 1 callers
Function
say_hello_handler
( mut user_acc: SeahorseAccount<'info, '_, TokenAccount>, mut hello: Mutable<LoadedHello<'info, '_>>,
tests/compiled-examples/hello.rs:63
↓ 1 callers
Function
send_event_handler
( mut sender: SeahorseSigner<'info, '_>, mut data: u8, mut title: String, )
tests/compiled-examples/event.rs:69
↓ 1 callers
Function
sign
(registry: NamespaceOutput)
src/core/compile/sign/mod.rs:521
↓ 1 callers
Function
test_stored_mutables_handler
( mut signer: SeahorseSigner<'info, '_>, mut data: Mutable<LoadedData<'info, '_>>, )
tests/compiled-examples/stored_mutables.rs:352
↓ 1 callers
Method
unify_cast
(&mut self, ty_cast: Ty, ty_actual: Ty, loc: &Location)
src/core/compile/check/mod.rs:2169
↓ 1 callers
Function
update
(args: UpdateArgs)
src/bin/cli/update.rs:28
↓ 1 callers
Function
update_prelude
(root: PathBuf)
src/bin/cli/update.rs:16
↓ 1 callers
Function
use_constants_handler
(mut signer: SeahorseSigner<'info, '_>)
tests/compiled-examples/constants.rs:23
↓ 1 callers
Function
use_sol_usd_price_handler
(mut price_account: UncheckedAccount<'info>)
tests/compiled-examples/pyth.rs:15
↓ 1 callers
Function
validate_constant
(constant: &py::Expression)
src/core/clean/mod.rs:364
↓ 1 callers
Method
validate_price_feed
Validate the price account - checks the pubkey against the known Pyth price pubkey list. Without checking the account key against a
data/const/seahorse_pyth.py:44
↓ 1 callers
Function
write_src_tree
Write a source code tree to the filesystem.
src/bin/cli/build.rs:23
Method
__add__
(self, other: 'u8')
data/const/seahorse_prelude.py:24
Method
__add__
(self, other: 'u16')
data/const/seahorse_prelude.py:94
Method
__add__
(self, other: 'u32')
data/const/seahorse_prelude.py:163
Method
__add__
(self, other: 'u64')
data/const/seahorse_prelude.py:232
Method
__add__
(self, other: 'u128')
data/const/seahorse_prelude.py:301
Method
__add__
(self, other: 'i8')
data/const/seahorse_prelude.py:370
Method
__add__
(self, other: 'i16')
data/const/seahorse_prelude.py:421
Method
__add__
(self, other: 'i32')
data/const/seahorse_prelude.py:490
Method
__add__
(self, other: 'i64')
data/const/seahorse_prelude.py:559
Method
__add__
(self, other: 'i128')
data/const/seahorse_prelude.py:628
Method
__add__
(self, other: 'f64')
data/const/seahorse_prelude.py:697
Method
__emit__
(&self)
tests/compiled-examples/stored_mutables.rs:233
Method
__eq__
(self, other: 'u8')
data/const/seahorse_prelude.py:75
Method
__eq__
(self, other: 'u16')
data/const/seahorse_prelude.py:145
Method
__eq__
(self, other: 'u32')
data/const/seahorse_prelude.py:214
Method
__eq__
(self, other: 'u64')
data/const/seahorse_prelude.py:283
Method
__eq__
(self, other: 'u128')
data/const/seahorse_prelude.py:352
Method
__eq__
(self, other: 'i16')
data/const/seahorse_prelude.py:472
Method
__eq__
(self, other: 'i32')
data/const/seahorse_prelude.py:541
Method
__eq__
(self, other: 'i64')
data/const/seahorse_prelude.py:610
Method
__eq__
(self, other: 'i128')
data/const/seahorse_prelude.py:679
Method
__eq__
(self, other: 'f64')
data/const/seahorse_prelude.py:748
Method
__floordiv__
(self, other: 'u8')
data/const/seahorse_prelude.py:60
Method
__floordiv__
(self, other: 'u16')
data/const/seahorse_prelude.py:130
Method
__floordiv__
(self, other: 'u32')
data/const/seahorse_prelude.py:199
Method
__floordiv__
(self, other: 'u64')
data/const/seahorse_prelude.py:268
Method
__floordiv__
(self, other: 'u128')
data/const/seahorse_prelude.py:337
Method
__floordiv__
(self, other: 'i8')
data/const/seahorse_prelude.py:406
Method
__floordiv__
(self, other: 'i16')
data/const/seahorse_prelude.py:457
Method
__floordiv__
(self, other: 'i32')
data/const/seahorse_prelude.py:526
Method
__floordiv__
(self, other: 'i64')
data/const/seahorse_prelude.py:595
Method
__floordiv__
(self, other: 'i128')
data/const/seahorse_prelude.py:664
Method
__floordiv__
(self, other: 'f64')
data/const/seahorse_prelude.py:733
Method
__ge__
(self, other: 'u8')
data/const/seahorse_prelude.py:81
Method
__ge__
(self, other: 'u16')
data/const/seahorse_prelude.py:151
Method
__ge__
(self, other: 'u32')
data/const/seahorse_prelude.py:220
Method
__ge__
(self, other: 'u64')
data/const/seahorse_prelude.py:289
Method
__ge__
(self, other: 'u128')
data/const/seahorse_prelude.py:358
Method
__ge__
(self, other: 'i16')
data/const/seahorse_prelude.py:478
← previous
next →
101–200 of 580, ranked by callers