Initialize the contract
admin - The admin of the lockup contractowner - The owner of the lockup contracttoken - The token to lock upunlocks - A vector of unlocks. Percentages represent the portion of the lockups token balance can be claimed
at the given unlock time. If multiple unlocks are claimed at once, the percentages are applied in order.fn initialize(
env: soroban_sdk::Env,
admin: soroban_sdk::Address,
owner: soroban_sdk::Address,
unlocks: soroban_sdk::Vec,
)
Get unlocks for the lockup
fn unlocks(env: soroban_sdk::Env) -> soroban_sdk::Vec
Get the admin address
fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address
Get the owner address
fn owner(env: soroban_sdk::Env) -> soroban_sdk::Address
(Only admin) Set new unlocks for the lockup. The new unlocks must retain any existing unlocks that have already passed their unlock time.
new_unlocks - The new unlocks to setfn set_unlocks(env: soroban_sdk::Env, new_unlocks: soroban_sdk::Vec)
(Only owner) Claim the unlocked tokens. The tokens are transferred to the owner.
tokens - A vector of tokens to claimfn claim(env: soroban_sdk::Env, tokens: soroban_sdk::Vec)