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