MCPcopy Create free account

hub / github.com/FuelLabs/sway-applications / functions

Functions887 in github.com/FuelLabs/sway-applications

↓ 8 callersFunctionwithdraw_collateral
(caller: &User, identifier: u64)
escrow/escrow-contract/tests/utils/interface/core.rs:153
↓ 7 callersFunctionburn
( contract: &NFT<WalletUnlocked>, asset_id: AssetId, sub_id: Bits256, amount: u64, )
NFT/NFT-contract/tests/utils/interface.rs:61
↓ 7 callersFunctioncampaign_info
( contract: &Fundraiser<WalletUnlocked>, id: u64, )
fundraiser/fundraiser-contract/tests/utils/interface/info.rs:44
↓ 7 callersFunctionclawback
( contract: &AirdropDistributor<WalletUnlocked>, )
airdrop/airdrop-contract/tests/utils/interface/core.rs:24
↓ 7 callersFunctionescrows
(caller: &User, identifier: u64)
escrow/escrow-contract/tests/utils/interface/info.rs:25
↓ 7 callersFunctionpool
( contract: &AMM<WalletUnlocked>, asset_pair: (AssetId, AssetId), )
AMM/test-utils/src/interface.rs:61
↓ 7 callersFunctionunlock_votes
( contract: &DaoVoting<WalletUnlocked>, id: u64, )
DAO/DAO-contract/tests/utils/interface/core.rs:75
↓ 7 callersFunctionwithdraw
( contract: &F_NFT<WalletUnlocked>, share_asset: AssetId, amount: u64, reciever: Identity,
fractional-NFT/f-NFT-contract/tests/utils/interface.rs:28
↓ 6 callersFunctionaccept_arbiter
(caller: &User, identifier: u64)
escrow/escrow-contract/tests/utils/interface/core.rs:8
↓ 6 callersFunctionbuild_tree_manual
( leaves: Vec<(Identity, u64)>, height: u64, key: u64, )
airdrop/airdrop-contract/tests/utils/setup.rs:98
↓ 6 callersFunctioncall_parameters
( deployer: &Caller, nonce: u64, target_contract: &TargetContract<WalletUnlocked>, with_value:
multisig-wallet/multisig-contract/tests/utils/setup.rs:219
↓ 6 callersMethodconnect
( id: string | AbstractAddress, accountOrProvider: Account | Provider )
TicTacToe/src/contract-types/factories/TictactoeContractAbi__factory.ts:530
↓ 6 callersFunctiondeploy_target_contract
( deployer_wallet: WalletUnlocked, )
multisig-wallet/multisig-contract/tests/utils/setup.rs:67
↓ 6 callersFunctionexecute
(contract: &DaoVoting<WalletUnlocked>, id: u64)
DAO/DAO-contract/tests/utils/interface/core.rs:71
↓ 6 callersFunctionsetup
Initialize and return objects for use in main
oracle/oracle-node/src/main.rs:24
↓ 6 callersFunctionsetup_wallet_and_provider
( asset_parameters: &WalletAssetConfiguration, )
AMM/test-utils/src/setup.rs:161
↓ 6 callersFunctiontransfer_parameters
( deployer: &Caller, nonce: u64, )
multisig-wallet/multisig-contract/tests/utils/setup.rs:199
↓ 6 callersFunctionwithdraw
( contract: &Exchange<WalletUnlocked>, amount: u64, asset: AssetId, )
AMM/test-utils/src/interface.rs:222
↓ 5 callersFunctionbalance
( contract: &MultiSig<WalletUnlocked>, asset_id: AssetId, )
multisig-wallet/multisig-contract/tests/utils/interface/info.rs:20
↓ 5 callersFunctionconstructor
( contract: &Exchange<WalletUnlocked>, asset_pair: (AssetId, AssetId), )
AMM/test-utils/src/interface.rs:107
↓ 5 callersFunctionexpiry
( instance: &NameRegistry<WalletUnlocked>, name: String, )
name-registry/registry-contract/tests/utils/interface/info.rs:12
↓ 5 callersFunctionidentity
( instance: &NameRegistry<WalletUnlocked>, name: String, )
name-registry/registry-contract/tests/utils/interface/info.rs:19
↓ 5 callersFunctionowner
( instance: &NameRegistry<WalletUnlocked>, name: String, )
name-registry/registry-contract/tests/utils/interface/info.rs:26
↓ 5 callersFunctionset_threshold
( contract: &MultiSig<WalletUnlocked>, signatures_data: Vec<SignatureInfo>, threshold: u64, )
multisig-wallet/multisig-contract/tests/utils/interface/core.rs:41
↓ 5 callersFunctionuseAppContext
()
TicTacToe/src/components/AppContextProvider.tsx:19
↓ 4 callersFunctionapproval_weight
( contract: &MultiSig<WalletUnlocked>, user: Bits256, )
multisig-wallet/multisig-contract/tests/utils/interface/info.rs:8
↓ 4 callersFunctioncount
( contract: &TargetContract<WalletUnlocked>, address: Address, )
multisig-wallet/multisig-contract/tests/utils/interface/target_contract.rs:7
↓ 4 callersFunctionget_asset_id
(sub_id: Bytes32, contract: ContractId)
fractional-NFT/f-NFT-contract/tests/utils/setup.rs:118
↓ 4 callersFunctionmaximum_input_for_exact_output
( output_amount: u64, input_reserve: u64, output_reserve: u64, liquidity_miner_fee: u64, )
AMM/exchange-contract/tests/utils/mod.rs:40
↓ 4 callersFunctionset_weight
( contract: &MultiSig<WalletUnlocked>, signatures_data: Vec<SignatureInfo>, user: User, )
multisig-wallet/multisig-contract/tests/utils/interface/core.rs:54
↓ 4 callersFunctionsetup
()
AMM/swap-exact-output/tests/utils/mod.rs:73
↓ 4 callersFunctionsetup
()
AMM/swap-exact-input/tests/utils/mod.rs:67
↓ 4 callersFunctionspawn_oracle_updater_job
Spawns a thread to periodically fetch the price of an asset and update the oracle smart contract with that price # Arguments - `price_updater` - upda
oracle/oracle-node/src/lib.rs:26
↓ 4 callersFunctiontest_predicate_spend_with_parameters
Tests that the predicate can be spent. Parameterized by test cases
OTC-swap-predicate/swap-predicate/tests/utils/mod.rs:49
↓ 4 callersFunctionuseGetPlayers
()
TicTacToe/src/hooks/useGetPlayers.ts:6
↓ 4 callersFunctionuser
(user_wallet: WalletUnlocked, auction_id: Bech32ContractId)
english-auction/auction-contract/tests/utils/setup.rs:135
↓ 3 callersFunctionadd_liquidity
( contract: &Exchange<WalletUnlocked>, desired_liquidity: u64, deadline: u64,
AMM/test-utils/src/interface.rs:79
↓ 3 callersFunctionasset_amount
(asset: &AssetId, user: &User)
escrow/escrow-contract/tests/utils/setup.rs:33
↓ 3 callersFunctionasset_info_by_id
( contract: &Fundraiser<WalletUnlocked>, asset: &AssetId, )
fundraiser/fundraiser-contract/tests/utils/interface/info.rs:12
↓ 3 callersFunctiondeploy_and_initialize_amm
(wallet: &WalletUnlocked)
AMM/test-utils/src/setup.rs:74
↓ 3 callersFunctiondeposit_and_add_liquidity_with_response
( liquidity_parameters: &LiquidityParameters, exchange: &ExchangeContract, override_ga
AMM/test-utils/src/setup.rs:115
↓ 3 callersFunctionexchange_bytecode_root
()
AMM/test-utils/src/setup.rs:154
↓ 3 callersFunctionexpected_swap_input
( amm: &AMMContract, output_amount: u64, route: &Vec<AssetId>, )
AMM/swap-exact-output/tests/utils/mod.rs:19
↓ 3 callersFunctionexpected_swap_output
( amm: &AMMContract, input_amount: u64, route: &Vec<AssetId>, )
AMM/swap-exact-input/tests/utils/mod.rs:18
↓ 3 callersFunctionextend
( instance: &NameRegistry<WalletUnlocked>, name: String, duration: u64, payment_asset: AssetId
name-registry/registry-contract/tests/utils/interface/core.rs:8
↓ 3 callersFunctionget_asset_id
(sub_id: Bytes32, contract: ContractId)
NFT/NFT-contract/tests/utils/setup.rs:92
↓ 3 callersFunctioninitialize
( contract: &AMM<WalletUnlocked>, exchange_bytecode_root: ContractId, )
AMM/test-utils/src/interface.rs:35
↓ 3 callersFunctionleaves_with_depth
( depth: u64, identities: Vec<Identity>, )
airdrop/airdrop-contract/tests/utils/setup.rs:243
↓ 3 callersFunctionprice
(contract: &Oracle<WalletUnlocked>)
oracle/utils/src/lib.rs:33
↓ 3 callersFunctionset_identity
( instance: &NameRegistry<WalletUnlocked>, name: String, identity: Identity, )
name-registry/registry-contract/tests/utils/interface/core.rs:94
↓ 3 callersFunctionset_owner
( instance: &NameRegistry<WalletUnlocked>, name: String, new_owner: Identity, )
name-registry/registry-contract/tests/utils/interface/core.rs:107
↓ 3 callersMethodset_price
Set the price for the oracle contract and return the log receipts
oracle/oracle-node/src/lib.rs:96
↓ 3 callersFunctionshortAddress
(address: string)
TicTacToe/src/utils/address.ts:1
↓ 3 callersFunctiontransaction_inputs_outputs
( wallet: &WalletUnlocked, provider: &Provider, assets: &[AssetId], amounts: O
AMM/test-utils/src/setup.rs:293
↓ 3 callersFunctionwithdraw
( contract: &DaoVoting<WalletUnlocked>, amount: u64, )
DAO/DAO-contract/tests/utils/interface/core.rs:44
↓ 2 callersFunctionconfigure_wallets
Create wallet config for two wallets with base, offered, and ask assets
OTC-swap-predicate/swap-predicate/tests/utils/mod.rs:33
↓ 2 callersFunctiondeploy_amm
(wallet: &WalletUnlocked)
AMM/test-utils/src/setup.rs:31
↓ 2 callersFunctiondeploy_exchange
( wallet: &WalletUnlocked, config: &ExchangeContractConfiguration, )
AMM/test-utils/src/setup.rs:80
↓ 2 callersFunctiondeposit
( contract: &TargetContract<WalletUnlocked>, address: Address, )
multisig-wallet/multisig-contract/tests/utils/interface/target_contract.rs:14
↓ 2 callersFunctionformat_and_sign
( private_key: SecretKey, message_hash: Message, message_format: MessageFormat, message_prefix
multisig-wallet/multisig-contract/tests/utils/setup.rs:105
↓ 2 callersFunctionget_share_sub_id
(vault_sub_id: Bytes32, nft: AssetId)
fractional-NFT/f-NFT-contract/tests/utils/setup.rs:125
↓ 2 callersFunctionget_timestamp_and_call
( handler: ContractCallHandler<T, D>, )
name-registry/registry-contract/tests/utils/setup.rs:84
↓ 2 callersMethodinvocations
(&self)
oracle/oracle-node/tests/functions/mod.rs:30
↓ 2 callersFunctionkeccak_hash
(data: B)
multisig-wallet/multisig-contract/tests/utils/setup.rs:139
↓ 2 callersFunctionminimum_output_given_exact_input
( input_amount: u64, input_reserve: u64, output_reserve: u64, liquidity_miner_fee: u64, )
AMM/exchange-contract/tests/utils/mod.rs:51
↓ 2 callersFunctionrate
(instance: &NameRegistry<WalletUnlocked>, id: AssetId)
name-registry/registry-contract/tests/utils/interface/info.rs:8
↓ 2 callersFunctionrecover_predicate_as_owner
Tests that the predicate can be recovered by the owner `correct_owner` is a boolean flag to set in order to test passing and failing conditions
OTC-swap-predicate/swap-predicate/tests/utils/mod.rs:171
↓ 2 callersFunctionsetEnvVar
(key, value)
scripts/build-website/utils.mjs:10
↓ 2 callersFunctionset_price
( contract: &Oracle<WalletUnlocked>, new_price: u64, )
oracle/utils/src/lib.rs:37
↓ 2 callersFunctionsetup
This function will setup the test environment for you. It will return a tuple containing the contract instance and the script instance.
counter-script/interaction_script/tests/harness.rs:28
↓ 2 callersFunctionsetup_exchange_contracts
( wallet: &WalletUnlocked, provider: &Provider, amm: &mut AMMContract, asset_i
AMM/test-utils/src/setup.rs:214
↓ 2 callersFunctionuseGetGameBoard
()
TicTacToe/src/hooks/useGetGameBoard.ts:8
↓ 2 callersFunctionuseGetGameState
()
TicTacToe/src/hooks/useGetGameState.ts:8
↓ 1 callersFunctionarbiter_proposal
(caller: &User, identifier: u64)
escrow/escrow-contract/tests/utils/interface/info.rs:3
↓ 1 callersFunctionbuildWebsite
()
scripts/build-website/utils.mjs:36
↓ 1 callersFunctioncampaign
( contract: &Fundraiser<WalletUnlocked>, id: u64, user: Identity, )
fundraiser/fundraiser-contract/tests/utils/interface/info.rs:36
↓ 1 callersFunctioneip_191_personal_sign_format
(message_hash: Message)
multisig-wallet/multisig-contract/tests/utils/setup.rs:83
↓ 1 callersFunctionethereum_prefix
(formatted_message: Message)
multisig-wallet/multisig-contract/tests/utils/setup.rs:94
↓ 1 callersFunctionextend_with_time
( instance: &NameRegistry<WalletUnlocked>, name: String, duration: u64, payment_asset: AssetId
name-registry/registry-contract/tests/utils/interface/core.rs:27
↓ 1 callersFunctiongetButtonText
()
TicTacToe/src/components/ConnectButton.tsx:12
↓ 1 callersMethodget_price
Get the latest price from an api endpoint and return it as an u64
oracle/oracle-node/src/lib.rs:77
↓ 1 callersFunctiongovernance_asset_id
(contract: &DaoVoting<WalletUnlocked>)
DAO/DAO-contract/tests/utils/interface/info.rs:42
↓ 1 callersMethodleft
(mut self, node: usize)
airdrop/airdrop-contract/tests/utils/setup.rs:44
↓ 1 callersFunctionowner
(contract: &Oracle<WalletUnlocked>)
oracle/utils/src/lib.rs:29
↓ 1 callersFunctionproposal
(contract: &DaoVoting<WalletUnlocked>, id: u64)
DAO/DAO-contract/tests/utils/interface/info.rs:38
↓ 1 callersFunctionregister_with_time
( instance: &NameRegistry<WalletUnlocked>, name: String, duration: u64, owner: &Identity,
name-registry/registry-contract/tests/utils/interface/core.rs:66
↓ 1 callersMethodright
(mut self, node: usize)
airdrop/airdrop-contract/tests/utils/setup.rs:49
↓ 1 callersFunctionrunPnpmCommand
(commands)
scripts/build-website/utils.mjs:32
↓ 1 callersFunctionsetEnv
()
scripts/build-website/utils.mjs:15
↓ 1 callersFunctionset_decimals
( contract: &NFT<WalletUnlocked>, asset: AssetId, decimals: u8, )
NFT/NFT-contract/tests/utils/interface.rs:110
↓ 1 callersFunctionsetup_exchange_contract
( wallet: &WalletUnlocked, exchange_config: &ExchangeContractConfiguration, liquidity_
AMM/test-utils/src/setup.rs:202
↓ 1 callersFunctiontransaction_input_coin
( provider: &Provider, from: &Bech32Address, asset_id: AssetId, amount: u64,
AMM/test-utils/src/setup.rs:258
↓ 1 callersFunctiontransaction_output_variable
()
AMM/test-utils/src/setup.rs:285
↓ 1 callersFunctionuseGetCurrentPlayer
()
TicTacToe/src/hooks/useGetCurrentPlayer.ts:8
↓ 1 callersFunctionuseGetMoveCounter
()
TicTacToe/src/hooks/useGetMoveCounter.ts:8
↓ 1 callersFunctionuseMakeMove
(position: number)
TicTacToe/src/hooks/useMakeMove.ts:8
↓ 1 callersFunctionuseNewGame
(player1Address: string, player2Address: string)
TicTacToe/src/hooks/useNewGame.ts:8
↓ 1 callersFunctionuser_votes
( contract: &DaoVoting<WalletUnlocked>, user_identity: &Bech32Address, id: u64, )
DAO/DAO-contract/tests/utils/interface/info.rs:24
FunctionApp
()
TicTacToe/src/App.tsx:9
FunctionAppContextProvider
({ children }: AppContextProviderProps)
TicTacToe/src/components/AppContextProvider.tsx:27
← previousnext →101–200 of 887, ranked by callers