Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clockwork-xyz/examples
/ functions
Functions
209 in github.com/clockwork-xyz/examples
⨍
Functions
209
◇
Types & classes
80
↓ 11 callers
Function
print_address
(label, address)
utils/lib/index.ts:7
↓ 8 callers
Function
print_explorer_link
(address: Pubkey, label: String)
openbook_dca/client/src/utils.rs:110
↓ 8 callers
Function
print_explorer_link
(address: Pubkey, label: String)
orca_whirlpool_dca/client/src/utils.rs:55
↓ 8 callers
Method
process
(&mut self)
subscriptions/programs/subscriptions/src/contexts/withdraw.rs:34
↓ 7 callers
Function
send_and_confirm_tx
( client: &Client, ix: Vec<Instruction>, signers: Option<Vec<&Keypair>>, label: String, )
subscriptions/client/src/utils.rs:9
↓ 6 callers
Function
get_address_env
(address: String)
subscriptions/client/src/utils.rs:93
↓ 6 callers
Function
print_explorer_link
(address: Pubkey, label: String)
orca_dca/client/src/utils.rs:55
↓ 5 callers
Function
handler
(ctx: Context<'_, '_, '_, 'info, Swap<'info>>)
orca_whirlpool_dca/programs/orca_whirlpool_dca/src/instructions/swap.rs:84
↓ 5 callers
Function
verifyAmount
(connection, ata, expectedAmount)
utils/lib/index.ts:29
↓ 5 callers
Function
waitForThreadExec
(clockworkProvider, thread: PublicKey, maxWait: number = 60)
utils/lib/index.ts:36
↓ 4 callers
Function
handler
(ctx: Context<'_, '_, '_, 'info, ProxySwap<'info>>)
orca_dca/programs/orca_dca/src/instructions/proxy_swap.rs:70
↓ 4 callers
Function
handler
(ctx: Context<'_, '_, '_, 'info, Swap<'info>>)
openbook_dca/programs/openbook_dca/src/instructions/swap.rs:83
↓ 4 callers
Function
print_thread
(clockworkProvider, address)
utils/lib/index.ts:11
↓ 4 callers
Function
sign_send_and_confirm_tx
( client: &Client, ix: Vec<Instruction>, signers: Option<Vec<&Keypair>>, label: String, )
openbook_dca/client/src/utils.rs:18
↓ 3 callers
Function
handler
( ctx: Context<'_, '_, '_, 'info, Create<'info>>, mint_amount: u64, )
distributor/programs/distributor/src/instructions/create.rs:57
↓ 3 callers
Function
handler
(ctx: Context<Ping>)
event_stream/programs/event_stream/src/instructions/ping.rs:12
↓ 3 callers
Function
handler
(_ctx: Context<Delete>)
openbook_crank/programs/openbook_crank/src/instructions/delete.rs:25
↓ 3 callers
Function
handler
(ctx: Context<Calc<'info>>)
pyth_stats/programs/pyth_stats/src/instructions/calc.rs:65
↓ 3 callers
Function
handler
(ctx: Context<CreatePayment>, amount: u64)
payments/programs/payments/src/instructions/create_payment.rs:61
↓ 3 callers
Function
sign_send_and_confirm_tx
( client: &Client, ix: Vec<Instruction>, signers: Option<Vec<&Keypair>>, label: String, )
orca_dca/client/src/utils.rs:11
↓ 3 callers
Function
sign_send_and_confirm_tx
( client: &Client, ix: Vec<Instruction>, signers: Option<Vec<&Keypair>>, label: String, )
orca_whirlpool_dca/client/src/utils.rs:11
↓ 2 callers
Function
create_feed
( client: &Client, price_feed_pubkey: Pubkey, cluster: Cluster, thread_id: &str, )
pyth_stats/client/src/main.rs:60
↓ 2 callers
Function
handler
(ctx: Context<'_, '_, '_, 'info, CreateFeed<'info>>)
pyth_feed/programs/pyth_feed/src/instructions/create_feed.rs:45
↓ 2 callers
Method
new
( &mut self, owner: Pubkey, subscription: Pubkey, is_active: bool, bum
subscriptions/programs/subscriptions/src/state/subscriber.rs:44
↓ 2 callers
Function
print_explorer_link
(address: Pubkey, label: String, cluster: Cluster)
pyth_stats/client/src/main.rs:134
↓ 2 callers
Function
print_tx
(label, address)
event_stream/tests/event_stream.ts:128
↓ 2 callers
Method
pubkey
(authority: Pubkey, market: Pubkey)
openbook_dca/programs/openbook_dca/src/state/dca.rs:23
↓ 2 callers
Function
sign_send_and_confirm_tx
( client: &Client, ix: Vec<Instruction>, signers: Option<Vec<&Keypair>>, label: String, )
openbook_crank/client/src/utils.rs:15
↓ 2 callers
Function
sleep
(seconds)
event_stream/tests/event_stream.ts:118
↓ 1 callers
Function
consume_events
* crank open orders */
openbook_crank/programs/openbook_crank/src/lib.rs:25
↓ 1 callers
Function
createDisbursePaymentThread
( authority: Signer, authorityAta: PublicKey, payment: PublicKey, mint: PublicKey, recipie
payments/tests/payments.ts:174
↓ 1 callers
Function
createDistributor
( authority: Signer, distributor: PublicKey, amount: bigint, mint: PublicKey, recipient: P
distributor/tests/distributor.ts:137
↓ 1 callers
Function
createDistributorThread
( authority: Signer, distributor: PublicKey, mint: PublicKey, recipient: PublicKey, recipi
distributor/tests/distributor.ts:161
↓ 1 callers
Function
createPayment
( payment: PublicKey, amount: bigint, mint: PublicKey, authority: Signer, authorityAta: Pu
payments/tests/payments.ts:149
↓ 1 callers
Function
create_dex_account
( client: &Client, program_id: &Pubkey, payer: &Pubkey, unpadded_len: usize, )
openbook_dca/client/src/utils.rs:50
↓ 1 callers
Function
create_feed
(client: &Client)
pyth_feed/client/src/main.rs:31
↓ 1 callers
Function
create_mint
(client: &Client)
subscriptions/client/src/commands/create_mint.rs:6
↓ 1 callers
Function
create_subscriber
( client: &Client, subscriber: Pubkey, subscription: Pubkey, subscription_thread: Pubkey,
subscriptions/client/src/commands/create_subscriber.rs:13
↓ 1 callers
Function
create_subscription
( client: &Client, subscription_bank: Pubkey, mint: Pubkey, subscription: Pubkey, recurren
subscriptions/client/src/commands/create_subscription.rs:12
↓ 1 callers
Function
dca_create
( client: &Client, pool_params: &PoolParams, dca_thread_id: String, )
orca_dca/client/src/main.rs:47
↓ 1 callers
Function
dca_create
( client: &Client, market_keys: &MarketKeys, dca_thread_id: String, )
openbook_dca/client/src/main.rs:60
↓ 1 callers
Function
dca_create
( client: &Client, whirlpool_params: &WhirlpoolParams, dca_thread_id: String, )
orca_whirlpool_dca/client/src/main.rs:43
↓ 1 callers
Function
dca_delete
( client: &Client, whirlpool_params: &WhirlpoolParams, dca_thread_id: String, )
orca_whirlpool_dca/client/src/main.rs:176
↓ 1 callers
Function
deactivate_subscription
( client: &Client, subscription: Pubkey, mint: Pubkey, )
subscriptions/client/src/commands/deactivate_subscription.rs:8
↓ 1 callers
Function
default_client
()
orca_dca/client/src/utils.rs:43
↓ 1 callers
Function
default_client
()
openbook_dca/client/src/utils.rs:98
↓ 1 callers
Function
default_client
()
pyth_feed/client/src/main.rs:116
↓ 1 callers
Function
default_client
()
openbook_crank/client/src/utils.rs:57
↓ 1 callers
Function
default_client
()
orca_whirlpool_dca/client/src/utils.rs:43
↓ 1 callers
Function
div_floor
(a: i32, b: i32)
orca_whirlpool_dca/crates/whirlpool/src/utils.rs:54
↓ 1 callers
Function
fetchCounter
(counter)
2-counter/tests/counter.ts:22
↓ 1 callers
Function
fundSource
( connection: Connection, payer: Keypair, source: PublicKey )
1-spl_transfer/tests/main.ts:112
↓ 1 callers
Function
fundSource
( connection: Connection, payer: Keypair, source: PublicKey )
spl_transfer/tests/main.ts:123
↓ 1 callers
Function
get_client
()
subscriptions/client/src/utils.rs:102
↓ 1 callers
Function
get_env_vars
()
subscriptions/client/src/utils.rs:54
↓ 1 callers
Function
get_id
()
subscriptions/client/src/utils.rs:84
↓ 1 callers
Function
get_start_tick_index
(tick_current_index: i32, tick_spacing: u16, offset: i32)
orca_whirlpool_dca/crates/whirlpool/src/utils.rs:28
↓ 1 callers
Function
get_tick_array_pubkey
( program_id: &Pubkey, whirlpool_pubkey: &Pubkey, start_tick_index: i32, )
orca_whirlpool_dca/crates/whirlpool/src/utils.rs:38
↓ 1 callers
Function
get_tick_array_pubkeys
( tick_current_index: i32, tick_spacing: u16, a_to_b: bool, program_id: &Pubkey, whirlpool
orca_whirlpool_dca/crates/whirlpool/src/utils.rs:7
↓ 1 callers
Function
init_dex_account
(client: &Client, orders: &mut Option<Pubkey>)
openbook_dca/client/src/utils.rs:68
↓ 1 callers
Function
initializeThread
(event: PublicKey)
event_stream/tests/event_stream.ts:64
↓ 1 callers
Function
initialize_openbook_crank
( client: &Client, market_keys: &MarketKeys, id: String, )
openbook_crank/client/src/main.rs:76
↓ 1 callers
Function
keypairFromFile
(path: string)
1-spl_transfer/tests/utils.ts:4
↓ 1 callers
Function
keypairFromFile
(path: string)
spl_transfer/tests/utils.ts:4
↓ 1 callers
Method
new
( &mut self, authority: Pubkey, a_mint: Pubkey, b_mint: Pubkey, amount
orca_dca/programs/orca_dca/src/state/dca.rs:59
↓ 1 callers
Method
new
( &mut self, authority: Pubkey, market: Pubkey, pc_mint: Pubkey, coin_
openbook_dca/programs/openbook_dca/src/state/dca.rs:51
↓ 1 callers
Method
new
( &mut self, authority: Pubkey, recipient: Pubkey, recipient_token_account: Pu
distributor/programs/distributor/src/state/distributor.rs:50
↓ 1 callers
Method
new
(&mut self, authority: Pubkey, pyth_price_feed: Pubkey)
pyth_feed/programs/pyth_feed/src/state/feed.rs:39
↓ 1 callers
Method
new
(&mut self, authority: Pubkey, market: Pubkey, limit: u16)
openbook_crank/programs/openbook_crank/src/state/crank.rs:46
↓ 1 callers
Method
new
( &mut self, price_feed: Pubkey, authority: Pubkey, lookback_window: i64,
pyth_stats/programs/pyth_stats/src/state/stat.rs:46
↓ 1 callers
Method
new
( &mut self, authority: Pubkey, whirlpool: Pubkey, a_mint: Pubkey, b_m
orca_whirlpool_dca/programs/orca_whirlpool_dca/src/state/dca.rs:58
↓ 1 callers
Method
new
( &mut self, amount: u64, authority: Pubkey, mint: Pubkey, recipient:
payments/programs/payments/src/state/payment.rs:54
↓ 1 callers
Function
ping
(event: PublicKey)
event_stream/tests/event_stream.ts:106
↓ 1 callers
Function
prepareAccounts
()
distributor/tests/distributor.ts:121
↓ 1 callers
Function
prepareMints
()
payments/tests/payments.ts:114
↓ 1 callers
Function
print_address
(label, address)
event_stream/tests/event_stream.ts:124
↓ 1 callers
Function
print_explorer_link
(address: Pubkey, label: String)
openbook_crank/client/src/utils.rs:47
↓ 1 callers
Function
print_thread_address
(label, address)
event_stream/tests/event_stream.ts:132
↓ 1 callers
Function
print_tx
(label, address)
utils/lib/index.ts:18
↓ 1 callers
Method
pubkey
(authority: Pubkey, a_mint: Pubkey, b_mint: Pubkey)
orca_dca/programs/orca_dca/src/state/dca.rs:22
↓ 1 callers
Function
sign_send_and_confirm_tx
( client: &Client, ix: Vec<Instruction>, signers: Option<Vec<&Keypair>>, label: String, )
pyth_feed/client/src/main.rs:72
↓ 1 callers
Function
sign_send_and_confirm_tx
( client: &Client, ix: Vec<Instruction>, signers: Option<Vec<&Keypair>>, label: String, cl
pyth_stats/client/src/main.rs:145
↓ 1 callers
Function
stream_program_logs
(programId)
utils/lib/index.ts:22
↓ 1 callers
Function
subscribe
( client: &Client, subscriber: Pubkey, subscription: Pubkey, subscriber_token_account: Pubkey,
subscriptions/client/src/commands/subscribe.rs:10
↓ 1 callers
Function
swap
* swap on orca whirlpool */
orca_whirlpool_dca/programs/orca_whirlpool_dca/src/lib.rs:65
↓ 1 callers
Function
unsubscribe
(client: &Client, subscriber: Pubkey, subscription: Pubkey)
subscriptions/client/src/commands/unsubscribe.rs:8
↓ 1 callers
Function
updateDistributor
( authority: Signer, distributor: PublicKey, distributorThread: PublicKey, amount: bigint,
distributor/tests/distributor.ts:219
↓ 1 callers
Function
updatePayment
( payment: PublicKey, amount: bigint, )
payments/tests/payments.ts:237
↓ 1 callers
Function
update_auhority
( client: &Client, subscription: Pubkey, new_authority: Pubkey, )
subscriptions/client/src/commands/update_authority.rs:8
↓ 1 callers
Function
waitForThreadExec
( clockworkProvider: ClockworkProvider, thread: PublicKey, maxWait: number = 60 )
1-spl_transfer/tests/utils.ts:12
↓ 1 callers
Function
waitForThreadExec
( clockworkProvider: ClockworkProvider, thread: PublicKey, maxWait: number = 60 )
spl_transfer/tests/utils.ts:12
↓ 1 callers
Function
withdraw
( client: &Client, payer_token_account: Pubkey, subscription_bank: Pubkey, subscription: Pubke
subscriptions/client/src/commands/withdraw.rs:9
Function
_load_entries
(data: Ref<'a, &mut [u8]>)
pyth_stats/programs/pyth_stats/src/instructions/calc.rs:183
Method
bank_pda
(subscription: Pubkey, owner: Pubkey)
subscriptions/programs/subscriptions/src/state/subscription.rs:36
Function
calc
(ctx: Context<Calc>)
pyth_stats/programs/pyth_stats/src/lib.rs:19
Function
crank_delete
(client: &Client, market_keys: &MarketKeys, id: String)
openbook_crank/client/src/main.rs:146
Function
create
* initialize distributor account */
distributor/programs/distributor/src/lib.rs:18
Function
create_feed
(ctx: Context<'_, '_, '_, 'info, CreateFeed<'info>>)
pyth_feed/programs/pyth_feed/src/lib.rs:15
Function
create_payment
* Create Payment Approval */
payments/programs/payments/src/lib.rs:18
Function
create_subscriber
* create subscriber */
subscriptions/programs/subscriptions/src/lib.rs:64
next →
1–100 of 209, ranked by callers