IRandomnessDispatcherImpl
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl
Part of the group: dispatchers
impl IRandomnessDispatcherImpl of IRandomnessDispatcherTrait<IRandomnessDispatcher>;
Impl functions
update_status
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::update_status
fn update_status(
self: IRandomnessDispatcher,
requestor_address: ContractAddress,
request_id: u64,
new_status: RequestStatus,
)
request_random
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::request_random
fn request_random(
self: IRandomnessDispatcher,
seed: u64,
callback_address: ContractAddress,
callback_fee_limit: u128,
publish_delay: u64,
num_words: u64,
calldata: Array<felt252>,
) -> u64
cancel_random_request
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::cancel_random_request
fn cancel_random_request(
self: IRandomnessDispatcher,
request_id: u64,
requestor_address: ContractAddress,
seed: u64,
minimum_block_number: u64,
callback_address: ContractAddress,
callback_fee_limit: u128,
num_words: u64,
)
submit_random
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::submit_random
fn submit_random(
self: IRandomnessDispatcher,
request_id: u64,
requestor_address: ContractAddress,
seed: u64,
minimum_block_number: u64,
callback_address: ContractAddress,
callback_fee_limit: u128,
callback_fee: u128,
random_words: Span<felt252>,
proof: Span<felt252>,
calldata: Array<felt252>,
)
get_pending_requests
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::get_pending_requests
fn get_pending_requests(
self: IRandomnessDispatcher, requestor_address: ContractAddress, offset: u64, max_len: u64,
) -> Span<felt252>
get_request_status
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::get_request_status
fn get_request_status(
self: IRandomnessDispatcher, requestor_address: ContractAddress, request_id: u64,
) -> RequestStatus
requestor_current_index
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::requestor_current_index
fn requestor_current_index(self: IRandomnessDispatcher, requestor_address: ContractAddress) -> u64
get_public_key
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::get_public_key
fn get_public_key(self: IRandomnessDispatcher, requestor_address: ContractAddress) -> felt252
get_payment_token
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::get_payment_token
fn get_payment_token(self: IRandomnessDispatcher) -> ContractAddress
set_payment_token
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::set_payment_token
fn set_payment_token(self: IRandomnessDispatcher, token_contract: ContractAddress)
upgrade
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::upgrade
fn upgrade(self: IRandomnessDispatcher, impl_hash: ClassHash)
refund_operation
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::refund_operation
fn refund_operation(self: IRandomnessDispatcher, caller_address: ContractAddress, request_id: u64)
get_total_fees
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::get_total_fees
fn get_total_fees(
self: IRandomnessDispatcher, caller_address: ContractAddress, request_id: u64,
) -> u256
get_out_of_gas_requests
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::get_out_of_gas_requests
fn get_out_of_gas_requests(
self: IRandomnessDispatcher, requestor_address: ContractAddress,
) -> Span<u64>
withdraw_funds
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::withdraw_funds
fn withdraw_funds(self: IRandomnessDispatcher, receiver_address: ContractAddress)
get_contract_balance
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::get_contract_balance
fn get_contract_balance(self: IRandomnessDispatcher) -> u256
compute_premium_fee
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::compute_premium_fee
fn compute_premium_fee(self: IRandomnessDispatcher, caller_address: ContractAddress) -> u128
get_admin_address
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::get_admin_address
fn get_admin_address(self: IRandomnessDispatcher) -> ContractAddress
set_admin_address
Fully qualified path: pragma_lib::abi::IRandomnessDispatcherImpl::set_admin_address
fn set_admin_address(self: IRandomnessDispatcher, new_admin_address: ContractAddress)