MCPcopy Create free account

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

Functions580 in github.com/ameliatastic/seahorse-lang

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
Methodamount
Get the amount of token stored in this account.
data/const/seahorse_prelude.py:980
Functionarray
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
Methodas_instance
(&self, params: &Vec<Ty>)
src/core/compile/builtin/python.rs:574
Methodas_instance
(&self, params: &Vec<Ty>)
src/core/compile/builtin/prelude.rs:340
Methodas_instance
(&self, params: &Vec<Ty>)
src/core/compile/builtin/pyth.rs:63
Methodattr
(&self, attr: &String)
src/core/compile/builtin/mod.rs:77
Methodattr
(&self, attr: &String)
src/core/compile/builtin/python.rs:583
Methodattr
(&self, attr: &String)
src/core/compile/builtin/prelude.rs:349
Methodattr
(&self, attr: &String)
src/core/compile/builtin/pyth.rs:70
Methodauthority
Get the owner of this token account.
data/const/seahorse_prelude.py:977
Methodburn
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
Methodcasted
(&self, ty: &Ty)
src/core/compile/builtin/python.rs:666
Methodcasted
(&self, ty: &Ty)
src/core/compile/builtin/prelude.rs:1267
Methodcasted
(&self, ty: &Ty)
src/core/compile/builtin/pyth.rs:233
Functioncompile
TODO rename to something a bit clearer, reusing the name "compile" elsewhere
src/core/compiler.rs:10
Functioncompile
(preprocessed: pre::ModuleRegistry)
src/core/compile/mod.rs:10
Methodcontains_leaf
Return whether the tree contains a leaf at the given `path`.
src/core/util.rs:328
Functiondataclass
Decorator to create an automatic default class constructor.
data/const/seahorse_prelude.py:1045
Methoddecimals
Get the number of decimals for this token.
data/const/seahorse_prelude.py:1005
Methoddefault
()
tests/compiled-examples/fizzbuzz.rs:144
Methoddefault
()
tests/compiled-examples/stored_mutables.rs:217
Methoddefault
()
tests/compiled-examples/calculator.rs:67
Methoddefault
()
tests/compiled-examples/event.rs:135
Methoddefault
()
tests/compiled-examples/pyth.rs:98
Methoddefault
()
tests/compiled-examples/hello.rs:148
Methoddefault
()
tests/compiled-examples/constants.rs:89
Methoddefault
()
tests/compiled-test-cases/account_key.rs:153
Methodderef
(&self)
tests/compiled-examples/fizzbuzz.rs:132
Methodderef
(&self)
tests/compiled-examples/stored_mutables.rs:498
Methodderef
(&self)
tests/compiled-examples/calculator.rs:182
Methodderef
(&self)
tests/compiled-examples/event.rs:123
Methodderef
(&self)
tests/compiled-examples/pyth.rs:86
Methodderef
(&self)
tests/compiled-examples/hello.rs:136
Methodderef
(&self)
tests/compiled-examples/constants.rs:77
Methodderef
(&self)
tests/compiled-test-cases/account_key.rs:141
Functiondo_fizzbuzz
(ctx: Context<DoFizzbuzz>, n: u64)
tests/compiled-examples/fizzbuzz.rs:322
Functiondo_fizzbuzz
(fizzbuzz: FizzBuzz, n: u64)
examples/fizzbuzz.py:20
Functiondo_operation
(ctx: Context<DoOperation>, op: Operation, num: i64)
tests/compiled-examples/calculator.rs:374
Functiondo_operation
(owner: Signer, calculator: Calculator, op: Operation, num: i64)
examples/calculator.py:34
Methodepoch
Get the bank Epoch.
data/const/seahorse_prelude.py:961
Methodepoch_start_timestamp
Get the timestamp of the first Slot in this Epoch.
data/const/seahorse_prelude.py:958
Methodfind_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
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/core/util.rs:72
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/core/compile/check/mod.rs:268
Methodfmt
(&self, f: &mut Formatter<'_>)
src/core/preprocess/mod.rs:195
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/fizzbuzz.rs:138
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/stored_mutables.rs:504
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/calculator.rs:188
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/event.rs:129
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/pyth.rs:92
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/hello.rs:142
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-examples/constants.rs:83
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
tests/compiled-test-cases/account_key.rs:147
Methodfreeze_authority
Get the freeze authority of this token mint.
data/const/seahorse_prelude.py:1002
Methodfrom
(obj: ExpressionObj)
src/core/compile/ast.rs:321
Methodfrom
(builtin: python::Python)
src/core/compile/builtin/mod.rs:48
Methodfrom
(context: Context<'_>)
src/core/compile/check/mod.rs:535
Methodget
(&self, name: &'static str)
tests/compiled-examples/event.rs:212
Methodget
(&self, name: &'static str)
tests/compiled-examples/pyth.rs:175
Methodget
(&self, name: &'static str)
tests/compiled-examples/constants.rs:166
Methodget_undeclared
Get the yet-to-be declared variables from a target.
src/core/compile/check/mod.rs:702
Methodhas_info_lifetime
(&self)
src/core/compile/ast.rs:122
Methodindex
(&self)
src/core/compile/builtin/python.rs:629
Methodindex
(&self)
src/core/compile/builtin/prelude.rs:1181
Methodindex
(&self)
src/core/compile/builtin/pyth.rs:225
Methodindex_wrapped
(&self, mut index: i128)
tests/compiled-examples/fizzbuzz.rs:162
Methodindex_wrapped
(&self, mut index: i128)
tests/compiled-examples/calculator.rs:212
Methodindex_wrapped
(&self, mut index: i128)
tests/compiled-examples/event.rs:153
Methodindex_wrapped
(&self, mut index: i128)
tests/compiled-examples/pyth.rs:116
Methodindex_wrapped
(&self, mut index: i128)
tests/compiled-examples/hello.rs:166
Methodindex_wrapped
(&self, mut index: i128)
tests/compiled-examples/constants.rs:107
Methodindex_wrapped
(&self, mut index: i128)
tests/compiled-test-cases/account_key.rs:171
Methodindex_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/fizzbuzz.rs:174
Methodindex_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/stored_mutables.rs:540
Methodindex_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/calculator.rs:224
Methodindex_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/event.rs:165
Methodindex_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/pyth.rs:128
Methodindex_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/hello.rs:178
Methodindex_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-examples/constants.rs:119
Methodindex_wrapped_mut
(&mut self, mut index: i128)
tests/compiled-test-cases/account_key.rs:183
Functioninit
(ctx: Context<Init>)
tests/compiled-examples/fizzbuzz.rs:344
Functioninit
(ctx: Context<Init>)
tests/compiled-examples/stored_mutables.rs:691
Functioninit
(ctx: Context<Init>)
tests/compiled-examples/hello.rs:332
Functioninit
(signer: Signer, data: Empty[Data])
examples/stored_mutables.py:46
Functioninit
(owner: Signer, hello: Empty[Hello], mint: Empty[TokenMint])
examples/hello.py:16
Functioninit
(owner: Signer, fizzbuzz: Empty[FizzBuzz])
examples/fizzbuzz.py:16
Functioninit_calculator
(ctx: Context<InitCalculator>)
tests/compiled-examples/calculator.rs:402
Functioninit_calculator
(owner: Signer, calculator: Empty[Calculator])
examples/calculator.py:21
Functioninstruction
Decorator to turn a function into a program instruction.
data/const/seahorse_prelude.py:1042
Functionint_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
Methodinvoke
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
Methodis_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
Methodis_mut
Return whether this type is Python-mutable.
src/core/compile/check/mod.rs:197
Functionix
(payer: Signer, user: User, another: Empty[Another])
tests/test-cases/account_key.py:18
← previousnext →401–500 of 580, ranked by callers