MCPcopy Create free account

hub / github.com/Emurgo/age-usd / functions

Functions105 in github.com/Emurgo/age-usd

↓ 13 callersMethodnum_circulating_stablecoins
(&self)
ageusd-headless/src/bank.rs:98
↓ 11 callersFunctionget_protocol_scans
Small error checking function for acquiring `Scan`s by using the IDs from a local file.
ageusd-cli/src/main.rs:592
↓ 10 callersMethodbase_reserves
(&self)
ageusd-headless/src/bank.rs:61
↓ 5 callersMethodbase_cost_to_mint_reservecoin
( &self, amount_to_mint: u64, oracle_box: &ErgUsdOraclePoolBox, )
ageusd-headless/src/bank.rs:423
↓ 5 callersFunctionreserve_ratio
Calculates the Reserve Ratio based on provided inputs.
ageusd-headless/src/equations.rs:4
↓ 4 callersMethodbase_cost_to_mint_stablecoin
( &self, amount_to_mint: u64, oracle_box: &ErgUsdOraclePoolBox, )
ageusd-headless/src/bank.rs:373
↓ 4 callersMethodliabilities
(&self, oracle_box: &ErgUsdOraclePoolBox)
ageusd-headless/src/bank.rs:72
↓ 4 callersMethodmin_box_value
(&self)
ageusd-headless/src/protocol.rs:37
↓ 4 callersMethodnum_circulating_reservecoins
(&self)
ageusd-headless/src/bank.rs:108
↓ 4 callersMethodreservecoin_nominal_price
(&self, oracle_box: &ErgUsdOraclePoolBox)
ageusd-headless/src/bank.rs:130
↓ 4 callersMethodstablecoin_nominal_price
(&self, oracle_box: &ErgUsdOraclePoolBox)
ageusd-headless/src/bank.rs:117
↓ 3 callersMethodaction_mint_reservecoin
Action: Mint ReserveCoin by providing Ergs
ageusd-headless/src/protocol.rs:352
↓ 3 callersMethodaction_mint_stablecoin
Action: Mint StableCoin by providing Ergs
ageusd-headless/src/protocol.rs:487
↓ 3 callersMethodaction_redeem_reservecoin
Action: Redeem ReserveCoin for Ergs
ageusd-headless/src/protocol.rs:624
↓ 3 callersMethodaction_redeem_stablecoin
Action: Redeem StableCoin for Ergs
ageusd-headless/src/protocol.rs:772
↓ 3 callersMethodbase_amount_from_redeeming_reservecoin
( &self, amount_to_redeem: u64, oracle_box: &ErgUsdOraclePoolBox, )
ageusd-headless/src/bank.rs:478
↓ 3 callersMethodbase_amount_from_redeeming_stablecoin
( &self, amount_to_redeem: u64, oracle_box: &ErgUsdOraclePoolBox, )
ageusd-headless/src/bank.rs:533
↓ 3 callersMethodequity
(&self, oracle_box: &ErgUsdOraclePoolBox)
ageusd-headless/src/bank.rs:88
↓ 3 callersMethodredeem_reservecoin_reserve_ratio
( &self, oracle_box: &ErgUsdOraclePoolBox, num_to_redeem: u64, )
ageusd-headless/src/bank.rs:319
↓ 2 callersMethodable_to_mint_reservecoin_amount
( &self, oracle_box: &ErgUsdOraclePoolBox, amount: u64, current_height: BlockH
ageusd-headless/src/bank.rs:199
↓ 2 callersMethodable_to_mint_stablecoin_amount
( &self, oracle_box: &ErgUsdOraclePoolBox, amount: u64, )
ageusd-headless/src/bank.rs:139
↓ 2 callersMethodcreate_update_protocol_candidate
Create an `ErgoBoxCandidate` for the output Update box for the `Update Protocol` Action
ageusd-headless/src/update.rs:163
↓ 2 callersFunctionget_ergs_boxes_to_cover
Wrapper function to acquire boxes to cover a given NanoErg amount already wrapped as `ErgsBox`
ageusd-cli/src/main.rs:644
↓ 2 callersFunctionget_reservecoin_boxes
Acquire all of the boxes holding ReserveCoins
ageusd-cli/src/main.rs:615
↓ 2 callersFunctionget_stablecoin_boxes
Acquire all of the boxes holding StableCoins
ageusd-cli/src/main.rs:629
↓ 2 callersMethodmint_reservecoin_reserve_ratio
( &self, oracle_box: &ErgUsdOraclePoolBox, num_to_mint: u64, )
ageusd-headless/src/bank.rs:256
↓ 2 callersMethodmint_stablecoin_reserve_ratio
( &self, oracle_box: &ErgUsdOraclePoolBox, num_to_mint: u64, )
ageusd-headless/src/bank.rs:183
↓ 2 callersFunctionnew_reservecoin_token
Creates a new ReserveCoin token with a custom amount
ageusd-headless/src/receipt.rs:212
↓ 2 callersFunctionnew_stablecoin_token
Creates a new StableCoin token with a custom amount
ageusd-headless/src/receipt.rs:207
↓ 2 callersMethodtoken_amount
(&self)
ageusd-headless/src/input_boxes.rs:29
↓ 1 callersMethodable_to_redeem_reservecoin_amount
( &self, oracle_box: &ErgUsdOraclePoolBox, amount: u64, )
ageusd-headless/src/bank.rs:272
↓ 1 callersMethodaction_collect_votes
Action: Collect Votes
ageusd-headless/src/update.rs:239
↓ 1 callersMethodaction_update_protocol
Action: Update Protocol
ageusd-headless/src/update.rs:314
↓ 1 callersMethodaction_vote_for_update
Action: Vote For Update
ageusd-headless/src/update.rs:185
↓ 1 callersMethodaddress_hash_voted_for
The hash of the address which is being voted for in the Ballot Box
ageusd-headless/src/update.rs:45
↓ 1 callersFunctioncollect_votes_for_update
Collect Votes for an Update
ageusd-cli/src/main.rs:315
↓ 1 callersMethodcreate_collect_votes_candidate
Create an `ErgoBoxCandidate` for the output Update box for the `Collect Votes` Action
ageusd-headless/src/update.rs:134
↓ 1 callersMethodcreate_mint_reservecoin_candidate
Create an `ErgoBoxCandidate` for the output Bank box for the `Mint ReserveCoin` action
ageusd-headless/src/bank.rs:549
↓ 1 callersMethodcreate_mint_stablecoin_candidate
Create an `ErgoBoxCandidate` for the output Bank box for the `Mint StableCoin` action
ageusd-headless/src/bank.rs:590
↓ 1 callersMethodcreate_redeem_reservecoin_candidate
Create an `ErgoBoxCandidate` for the output Bank box for the `Redeem ReserveCoin` action
ageusd-headless/src/bank.rs:629
↓ 1 callersMethodcreate_redeem_stablecoin_candidate
Create an `ErgoBoxCandidate` for the output Bank box for the `Redeem StableCoin` action
ageusd-headless/src/bank.rs:670
↓ 1 callersMethodcreate_vote_for_update_candidate
Create an `ErgoBoxCandidate` for the output Ballot box for the `Vote For Update` action
ageusd-headless/src/update.rs:78
↓ 1 callersFunctionget_node_interface
Small error checking function for acquiring data for a `NodeInterface` / from a local file.
ageusd-cli/src/main.rs:571
↓ 1 callersMethodis_voting_for_address
Verify that the `BallotBox` is voting for a given P2S address
ageusd-headless/src/update.rs:66
↓ 1 callersMethodmax_reserve_ratio
(&self)
ageusd-headless/src/protocol.rs:52
↓ 1 callersMethodmin_reserve_ratio
(&self)
ageusd-headless/src/protocol.rs:47
↓ 1 callersFunctionmint_reservecoins
Mint ReserveCoins
ageusd-cli/src/main.rs:410
↓ 1 callersFunctionmint_stablecoins
Mint StableCoins
ageusd-cli/src/main.rs:452
↓ 1 callersFunctionredeem_reservecoins
Redeem ReserveCoins
ageusd-cli/src/main.rs:494
↓ 1 callersFunctionredeem_stablecoins
Redeem StableCoins
ageusd-cli/src/main.rs:532
↓ 1 callersFunctionregister_all_ballot_tokens_scan
Register to find all boxes that hold ballot tokens
ageusd-cli/src/scan.rs:115
↓ 1 callersFunctionregister_bank_scan
Register the scan to find the `Bank` box via the provided `NodeInterface`
ageusd-cli/src/scan.rs:6
↓ 1 callersFunctionregister_oracle_pool_scan
Register to find the Oracle Pool Box
ageusd-cli/src/scan.rs:74
↓ 1 callersFunctionregister_reservecoin_scan
Register to find the ReserveCoins that the user owns in the very first address of their Ergo node wallet via the provided `NodeInterface`
ageusd-cli/src/scan.rs:48
↓ 1 callersFunctionregister_stablecoin_scan
Register to find the StableCoins that the user owns in the very first address of their Ergo node wallet via the provided `NodeInterface`
ageusd-cli/src/scan.rs:21
↓ 1 callersFunctionregister_update_box_scan
Register to find the Update box
ageusd-cli/src/scan.rs:129
↓ 1 callersFunctionregister_user_ballot_token_scan
Register to find the user's vote token. (Must be held by the first address in the Ergo Node wallet)
ageusd-cli/src/scan.rs:89
↓ 1 callersMethodtotal_cost_to_mint_reservecoin
( &self, amount_to_mint: u64, oracle_box: &ErgUsdOraclePoolBox, transaction_fe
ageusd-headless/src/bank.rs:390
↓ 1 callersMethodtotal_cost_to_mint_stablecoin
( &self, amount_to_mint: u64, oracle_box: &ErgUsdOraclePoolBox, transaction_fe
ageusd-headless/src/bank.rs:341
↓ 1 callersMethodupdate_box_id
The box id of the Update Box when the vote was cast
ageusd-headless/src/update.rs:50
↓ 1 callersFunctionupdate_protocol
Update Protocol
ageusd-cli/src/main.rs:274
↓ 1 callersFunctionvote_for_update
Vote for an Update
ageusd-cli/src/main.rs:364
Methodbank_nft_id
(&self)
ageusd-headless/src/protocol.rs:67
Methodbox_spec
A `BoxSpec` that checks that the box is a valid BankBox via looking that it holds the correct StableCoin/ReserveCoin tokens and the Bank NFT.
ageusd-headless/src/bank.rs:35
Methodbox_spec
A `BoxSpec` that checks that ReserveCoins are in the box via a predicate.
ageusd-headless/src/input_boxes.rs:38
Methodbox_spec
A `BoxSpec` that checks that the box is a valid BallotBox
ageusd-headless/src/update.rs:34
Methodconvert_from_ergo_boxes
Converts from the WASM wrapper `ErgoBoxes`.
ageusd-headless/src/input_boxes.rs:74
Methodcreate_mint_reservecoin_candidate
Create an `ErgoBoxCandidate` for an output Receipt box for the `Mint ReserveCoin` action
ageusd-headless/src/receipt.rs:23
Methodcreate_mint_stablecoin_candidate
Create an `ErgoBoxCandidate` for an output Receipt box for the `Mint StableCoin` action
ageusd-headless/src/receipt.rs:61
Methodcreate_placeholder_box
Create a placeholder box. This is useful for using with protocols as a placeholder so that an assembler spec can be created (and this placeholder box
ageusd-headless/src/input_boxes.rs:87
Methodcreate_redeem_reservecoin_candidate
Create an `ErgoBoxCandidate` for an output Receipt box for the `Redeem ReserveCoin` action
ageusd-headless/src/receipt.rs:99
Methodcreate_redeem_stablecoin_candidate
Create an `ErgoBoxCandidate` for an output Receipt box for the `Redeem StableCoin` action
ageusd-headless/src/receipt.rs:153
Methodcreate_update_protocol_candidate
Create an `ErgoBoxCandidate` for the output Bank Box for the `Update Protocol` Action
ageusd-headless/src/bank.rs:709
Methodcurrent_reserve_ratio
(&self, oracle_box: &ErgUsdOraclePoolBox)
ageusd-headless/src/bank.rs:49
Methodextract_token_amount
Acquires the token amount
ageusd-headless/src/input_boxes.rs:51
Methodfees_from_minting_reservecoin
( &self, amount_to_mint: u64, oracle_box: &ErgUsdOraclePoolBox, transaction_fe
ageusd-headless/src/bank.rs:406
Methodfees_from_minting_stablecoin
( &self, amount_to_mint: u64, oracle_box: &ErgUsdOraclePoolBox, transaction_fe
ageusd-headless/src/bank.rs:357
Methodfees_from_redeeming_reservecoin
( &self, amount_to_redeem: u64, oracle_box: &ErgUsdOraclePoolBox, transaction_
ageusd-headless/src/bank.rs:460
Methodfees_from_redeeming_stablecoin
( &self, amount_to_redeem: u64, oracle_box: &ErgUsdOraclePoolBox, transaction_
ageusd-headless/src/bank.rs:515
Functionfetch_all_ballot_boxes
Fetch all `BallotBox`es from the public Ergo Explorer API
ageusd-cli/src/fetch_boxes.rs:21
Functionfetch_update_box
Fetch the `UpdateBox` from the public Ergo Explorer API
ageusd-cli/src/fetch_boxes.rs:30
Functionfetch_user_ballot_box
Fetch the user's `BallotBox` from the public Ergo Explorer API
ageusd-cli/src/fetch_boxes.rs:6
Functionmain
()
ageusd-cli/src/main.rs:74
Methodnew
()
ageusd-headless/src/protocol.rs:32
Methodnum_able_to_mint_reservecoin
( &self, oracle_box: &ErgUsdOraclePoolBox, current_height: BlockHeight, )
ageusd-headless/src/bank.rs:218
Methodnum_able_to_mint_stablecoin
(&self, oracle_box: &ErgUsdOraclePoolBox)
ageusd-headless/src/bank.rs:153
Methodnum_able_to_redeem_reservecoin
(&self, oracle_box: &ErgUsdOraclePoolBox)
ageusd-headless/src/bank.rs:288
Methodpredicate
Predicate to check that the box has ReserveCoins in it
ageusd-headless/src/input_boxes.rs:46
Methodpredicate
A simple predicate to check the registers
ageusd-headless/src/update.rs:61
Methodreservecoin_default_price
(&self)
ageusd-headless/src/protocol.rs:42
Methodreservecoin_token_id
(&self)
ageusd-headless/src/protocol.rs:62
Methodstablecoin_token_id
(&self)
ageusd-headless/src/protocol.rs:57
Methodsum_nano_ergs_value
Sums the nanoErg value of a list of `ReserveCoinBox`es
ageusd-headless/src/input_boxes.rs:64
Methodsum_token_amount
Sums the token amount of a list of `ReserveCoinBox`es
ageusd-headless/src/input_boxes.rs:69
Methodtotal_amount_from_redeeming_reservecoin
( &self, amount_to_redeem: u64, oracle_box: &ErgUsdOraclePoolBox, transaction_
ageusd-headless/src/bank.rs:441
Methodtotal_amount_from_redeeming_stablecoin
( &self, amount_to_redeem: u64, oracle_box: &ErgUsdOraclePoolBox, transaction_
ageusd-headless/src/bank.rs:496
Methodvoting_power
(&self)
ageusd-headless/src/update.rs:54
Methodw_action_mint_reservecoin
Action: Mint ReserveCoin by providing Ergs. This is the WASM wrapper function for said Action.
ageusd-headless/src/protocol.rs:219
Methodw_action_mint_stablecoin
Action: Mint StableCoins by providing Ergs. This is the WASM wrapper function for said Action.
ageusd-headless/src/protocol.rs:252
Methodw_action_redeem_reservecoin
Action: Redeem ReserveCoins for Ergs. This is the WASM wrapper function for said Action.
ageusd-headless/src/protocol.rs:285
next →1–100 of 105, ranked by callers