Skip to content

Build

2 min read

Program

Move objects, transactions, ownership and settlement.

On this page

Move package

The source lives in move/kondora. Deployment object IDs and the publication digest are recorded in deployments/testnet.json. The package has two modules: kusd for the valueless test coin and market for trading and resolution.

Object model

ObjectPurpose
RegistryAdmin, oracle, market IDs and address-to-account table
AccountOwner, kUSD balance, positions and realized profit/loss
MarketMetadata, reserves, liabilities, vault, debt and resolution state
FaucetShared TreasuryCap for freely mintable test collateral
DailyFaucetDedicated sponsor and per-address claim timestamps for 100-kUSD daily grants

Trading functions

create_account, deposit, withdraw, create_market, open_position, close_position, liquidate and claim are public Move functions. The module checks account ownership and registry authority. Liquidation is permissionless only when the position fails the maintenance check.

Resolution functions

propose requires the configured oracle. challenge is open during the dispute window. finalize and timeout are permissionless with clock constraints. rule and set_oracle require the registry admin. There is no arbitrary admin withdrawal function.

Validation

The compatible v3 upgrade adds claim_daily without replacing existing accounts, markets or the kUSD coin type. The registry admin creates the DailyFaucet for a dedicated sponsor. Only that signer can pay the first 100 kUSD and repeat daily claims. Backend keys never enter the browser. The original developer mint remains available for CLI/soak funding; the 24-hour rule applies to this deployed daily faucet, rather than imposing a global supply restriction on valueless kUSD.

Run npm run move:test and npm test. Run npm run sui:smoke -- --settlement for real testnet lifecycle receipts. The SDK uses gRPC; the old public JSON-RPC interface is not required.

KONDORA / 02
One protocol. Shared objects.

Follow wallet authorization through Sui Move objects.

Explore
Swipe or scroll horizontally to explore the full diagram
SUI / TESTNETCUSTODY + SETTLEMENTCOLLATERALkUSD vaultDeposits · withdrawalsOwner-authorized fundingON-CHAIN STATEMarket accountQuestion · rules · final markCommitted account stateORACLE + AUDITResolutionEvidence hash · outcomeFinalization and payoutsDEPOSIT ↓↑ CLAIM + WITHDRAWSUI MOVE / SHARED OBJECTSWALLET-SIGNED EXECUTIONOWNER-CHECKED ACCOUNTTrading accountBalance · positions · debtSui shared account stateEXECUTION ENGINEBinary AMM poolOpen · close · liquidateLive quotes and risk limitsTRANSACTION AUTHORITYWallet signerApprove each transactionOwner check on withdrawals
02
Shared account

The owner-controlled shared Account stores available kUSD and positions. Owner checks protect every funding and trading action.

Sui Move enforces ownership, full reserves, trading and settlement.
View this page on GitHub ↗