| binver | 1.0.0 |
| desc | Rain Card Collateral Contract |
| rssdkver | 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8 |
| rsver | 1.85.1 |
fn upgrade(
env: soroban_sdk::Env,
new_wasm_hash: soroban_sdk::BytesN<32>,
operator: soroban_sdk::Address,
)
Initializes the Collateral contract by setting the Coordinator that created the collateral, the Beacon that the collateral uses, the initial admin and the name of the collateral.
env: The environment of the contract.coordinator: The address of the Coordinator that created the collateral.beacon: The address of the Beacon that the collateral uses.admin: The initial admin of the Collateral.name: The name of the Collateral.fn __constructor(
env: soroban_sdk::Env,
coordinator: soroban_sdk::Address,
beacon: soroban_sdk::Address,
admin: soroban_sdk::Address,
name: soroban_sdk::String,
)
Transfers the team of the Collateral contract.
env: The environment of the contract.new_admin: The address of the new admin.new_name: The new name of the Collateral.CollateralError::NewAdminIsCurrentAdmin]: If the new admin is the same as the current admin.CollateralError::NameIsEmpty]: If the new name is empty.fn transfer_team(
env: soroban_sdk::Env,
new_admin: soroban_sdk::Address,
new_name: soroban_sdk::String,
)
Withdraws an asset from the Collateral contract.
env: The environment of the contract.coordinator: The address of the Coordinator that is invoking the function.asset: The address of the asset to withdraw.amount: The amount of the asset to withdraw.recipient: The address of the recipient of the asset.CollateralError::Unauthorized]: If the coordinator is not supported by the beacon or
the access to the collateral in the beacon is paused.fn withdraw(
env: soroban_sdk::Env,
coordinator: soroban_sdk::Address,
asset: soroban_sdk::Address,
amount: i128,
recipient: soroban_sdk::Address,
)
Gets the address of the Beacon associated to the Collateral contract.
env: The environment of the contract.The address of the Beacon associated to the Collateral contract.
fn get_beacon(env: soroban_sdk::Env) -> soroban_sdk::Address
Gets the address of the Coordinator associated to the Collateral contract.
env: The environment of the contract.The address of the Coordinator associated to the Collateral contract.
fn get_coordinator(env: soroban_sdk::Env) -> soroban_sdk::Address
Gets the name of the Collateral contract.
env: The environment of the contract.The name of the Collateral contract.
fn get_name(env: soroban_sdk::Env) -> soroban_sdk::String
Gets the admin of the Collateral contract.
env: The environment of the contract.The admin of the Collateral contract.
fn get_admin(env: soroban_sdk::Env) -> soroban_sdk::Address
fn get_owner(env: soroban_sdk::Env) -> Option
fn transfer_ownership(
env: soroban_sdk::Env,
new_owner: soroban_sdk::Address,
live_until_ledger: u32,
)
fn accept_ownership(env: soroban_sdk::Env)
fn renounce_ownership(env: soroban_sdk::Env)