export declare const tongoAbi: readonly [{ readonly type: "impl"; readonly name: "TongoImpl"; readonly interface_name: "tongo::tongo::ITongo::ITongo"; }, { readonly type: "struct"; readonly name: "core::integer::u256"; readonly members: readonly [{ readonly name: "low"; readonly type: "core::integer::u128"; }, { readonly name: "high"; readonly type: "core::integer::u128"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::common::pubkey::PubKey"; readonly members: readonly [{ readonly name: "x"; readonly type: "core::felt252"; }, { readonly name: "y"; readonly type: "core::felt252"; }]; }, { readonly type: "struct"; readonly name: "core::integer::u512"; readonly members: readonly [{ readonly name: "limb0"; readonly type: "core::integer::u128"; }, { readonly name: "limb1"; readonly type: "core::integer::u128"; }, { readonly name: "limb2"; readonly type: "core::integer::u128"; }, { readonly name: "limb3"; readonly type: "core::integer::u128"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::aecipher::AEBalance"; readonly members: readonly [{ readonly name: "ciphertext"; readonly type: "core::integer::u512"; }, { readonly name: "nonce"; readonly type: "core::integer::u256"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::common::starkpoint::StarkPoint"; readonly members: readonly [{ readonly name: "x"; readonly type: "core::felt252"; }, { readonly name: "y"; readonly type: "core::felt252"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::fund::ProofOfFund"; readonly members: readonly [{ readonly name: "Ax"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "sx"; readonly type: "core::felt252"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::common::cipherbalance::CipherBalance"; readonly members: readonly [{ readonly name: "L"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "R"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::audit::ProofOfAudit"; readonly members: readonly [{ readonly name: "Ax"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "AL0"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "AL1"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "AR1"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "sx"; readonly type: "core::felt252"; }, { readonly name: "sb"; readonly type: "core::felt252"; }, { readonly name: "sr"; readonly type: "core::felt252"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::audit::Audit"; readonly members: readonly [{ readonly name: "auditedBalance"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }, { readonly name: "hint"; readonly type: "tongo::structs::aecipher::AEBalance"; }, { readonly name: "proof"; readonly type: "tongo::structs::operations::audit::ProofOfAudit"; }]; }, { readonly type: "enum"; readonly name: "core::option::Option::"; readonly variants: readonly [{ readonly name: "Some"; readonly type: "tongo::structs::operations::audit::Audit"; }, { readonly name: "None"; readonly type: "()"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::fund::Fund"; readonly members: readonly [{ readonly name: "to"; readonly type: "tongo::structs::common::pubkey::PubKey"; }, { readonly name: "amount"; readonly type: "core::integer::u128"; }, { readonly name: "hint"; readonly type: "tongo::structs::aecipher::AEBalance"; }, { readonly name: "proof"; readonly type: "tongo::structs::operations::fund::ProofOfFund"; }, { readonly name: "auditPart"; readonly type: "core::option::Option::"; }]; }, { readonly type: "struct"; readonly name: "core::array::Span::"; readonly members: readonly [{ readonly name: "snapshot"; readonly type: "@core::array::Array::"; }]; }, { readonly type: "struct"; readonly name: "tongo::verifier::range::bitProof"; readonly members: readonly [{ readonly name: "A0"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A1"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "c0"; readonly type: "core::felt252"; }, { readonly name: "s0"; readonly type: "core::felt252"; }, { readonly name: "s1"; readonly type: "core::felt252"; }]; }, { readonly type: "struct"; readonly name: "core::array::Span::"; readonly members: readonly [{ readonly name: "snapshot"; readonly type: "@core::array::Array::"; }]; }, { readonly type: "struct"; readonly name: "tongo::verifier::range::Range"; readonly members: readonly [{ readonly name: "commitments"; readonly type: "core::array::Span::"; }, { readonly name: "proofs"; readonly type: "core::array::Span::"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::withdraw::ProofOfWithdraw"; readonly members: readonly [{ readonly name: "A_x"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A_r"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A_v"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "sx"; readonly type: "core::felt252"; }, { readonly name: "sb"; readonly type: "core::felt252"; }, { readonly name: "sr"; readonly type: "core::felt252"; }, { readonly name: "range"; readonly type: "tongo::verifier::range::Range"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::withdraw::Withdraw"; readonly members: readonly [{ readonly name: "from"; readonly type: "tongo::structs::common::pubkey::PubKey"; }, { readonly name: "to"; readonly type: "core::starknet::contract_address::ContractAddress"; }, { readonly name: "amount"; readonly type: "core::integer::u128"; }, { readonly name: "hint"; readonly type: "tongo::structs::aecipher::AEBalance"; }, { readonly name: "auxiliarCipher"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }, { readonly name: "proof"; readonly type: "tongo::structs::operations::withdraw::ProofOfWithdraw"; }, { readonly name: "auditPart"; readonly type: "core::option::Option::"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::ragequit::ProofOfRagequit"; readonly members: readonly [{ readonly name: "Ax"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "AR"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "sx"; readonly type: "core::felt252"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::ragequit::Ragequit"; readonly members: readonly [{ readonly name: "from"; readonly type: "tongo::structs::common::pubkey::PubKey"; }, { readonly name: "to"; readonly type: "core::starknet::contract_address::ContractAddress"; }, { readonly name: "amount"; readonly type: "core::integer::u128"; }, { readonly name: "hint"; readonly type: "tongo::structs::aecipher::AEBalance"; }, { readonly name: "proof"; readonly type: "tongo::structs::operations::ragequit::ProofOfRagequit"; }, { readonly name: "auditPart"; readonly type: "core::option::Option::"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::transfer::ProofOfTransfer"; readonly members: readonly [{ readonly name: "A_x"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A_r"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A_r2"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A_b"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A_b2"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A_v"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A_v2"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "A_bar"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "s_x"; readonly type: "core::felt252"; }, { readonly name: "s_r"; readonly type: "core::felt252"; }, { readonly name: "s_b"; readonly type: "core::felt252"; }, { readonly name: "s_b2"; readonly type: "core::felt252"; }, { readonly name: "s_r2"; readonly type: "core::felt252"; }, { readonly name: "range"; readonly type: "tongo::verifier::range::Range"; }, { readonly name: "range2"; readonly type: "tongo::verifier::range::Range"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::transfer::Transfer"; readonly members: readonly [{ readonly name: "from"; readonly type: "tongo::structs::common::pubkey::PubKey"; }, { readonly name: "to"; readonly type: "tongo::structs::common::pubkey::PubKey"; }, { readonly name: "transferBalance"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }, { readonly name: "transferBalanceSelf"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }, { readonly name: "hintTransfer"; readonly type: "tongo::structs::aecipher::AEBalance"; }, { readonly name: "hintLeftover"; readonly type: "tongo::structs::aecipher::AEBalance"; }, { readonly name: "auxiliarCipher"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }, { readonly name: "auxiliarCipher2"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }, { readonly name: "proof"; readonly type: "tongo::structs::operations::transfer::ProofOfTransfer"; }, { readonly name: "auditPart"; readonly type: "core::option::Option::"; }, { readonly name: "auditPartTransfer"; readonly type: "core::option::Option::"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::rollover::ProofOfRollOver"; readonly members: readonly [{ readonly name: "Ax"; readonly type: "tongo::structs::common::starkpoint::StarkPoint"; }, { readonly name: "sx"; readonly type: "core::felt252"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::operations::rollover::Rollover"; readonly members: readonly [{ readonly name: "to"; readonly type: "tongo::structs::common::pubkey::PubKey"; }, { readonly name: "hint"; readonly type: "tongo::structs::aecipher::AEBalance"; }, { readonly name: "proof"; readonly type: "tongo::structs::operations::rollover::ProofOfRollOver"; }]; }, { readonly type: "enum"; readonly name: "core::option::Option::"; readonly variants: readonly [{ readonly name: "Some"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }, { readonly name: "None"; readonly type: "()"; }]; }, { readonly type: "enum"; readonly name: "core::option::Option::"; readonly variants: readonly [{ readonly name: "Some"; readonly type: "tongo::structs::aecipher::AEBalance"; }, { readonly name: "None"; readonly type: "()"; }]; }, { readonly type: "struct"; readonly name: "tongo::structs::common::state::State"; readonly members: readonly [{ readonly name: "balance"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }, { readonly name: "pending"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }, { readonly name: "nonce"; readonly type: "core::integer::u64"; }, { readonly name: "audit"; readonly type: "core::option::Option::"; }, { readonly name: "ae_balance"; readonly type: "core::option::Option::"; }, { readonly name: "ae_audit_balance"; readonly type: "core::option::Option::"; }]; }, { readonly type: "enum"; readonly name: "core::option::Option::"; readonly variants: readonly [{ readonly name: "Some"; readonly type: "tongo::structs::common::pubkey::PubKey"; }, { readonly name: "None"; readonly type: "()"; }]; }, { readonly type: "interface"; readonly name: "tongo::tongo::ITongo::ITongo"; readonly items: readonly [{ readonly type: "function"; readonly name: "ERC20"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly type: "core::starknet::contract_address::ContractAddress"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "get_rate"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly type: "core::integer::u256"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "get_bit_size"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly type: "core::integer::u32"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "get_owner"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly type: "core::starknet::contract_address::ContractAddress"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "fund"; readonly inputs: readonly [{ readonly name: "fund"; readonly type: "tongo::structs::operations::fund::Fund"; }]; readonly outputs: readonly []; readonly state_mutability: "external"; }, { readonly type: "function"; readonly name: "withdraw"; readonly inputs: readonly [{ readonly name: "withdraw"; readonly type: "tongo::structs::operations::withdraw::Withdraw"; }]; readonly outputs: readonly []; readonly state_mutability: "external"; }, { readonly type: "function"; readonly name: "ragequit"; readonly inputs: readonly [{ readonly name: "ragequit"; readonly type: "tongo::structs::operations::ragequit::Ragequit"; }]; readonly outputs: readonly []; readonly state_mutability: "external"; }, { readonly type: "function"; readonly name: "transfer"; readonly inputs: readonly [{ readonly name: "transfer"; readonly type: "tongo::structs::operations::transfer::Transfer"; }]; readonly outputs: readonly []; readonly state_mutability: "external"; }, { readonly type: "function"; readonly name: "rollover"; readonly inputs: readonly [{ readonly name: "rollover"; readonly type: "tongo::structs::operations::rollover::Rollover"; }]; readonly outputs: readonly []; readonly state_mutability: "external"; }, { readonly type: "function"; readonly name: "get_balance"; readonly inputs: readonly [{ readonly name: "y"; readonly type: "tongo::structs::common::pubkey::PubKey"; }]; readonly outputs: readonly [{ readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "get_pending"; readonly inputs: readonly [{ readonly name: "y"; readonly type: "tongo::structs::common::pubkey::PubKey"; }]; readonly outputs: readonly [{ readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "get_audit"; readonly inputs: readonly [{ readonly name: "y"; readonly type: "tongo::structs::common::pubkey::PubKey"; }]; readonly outputs: readonly [{ readonly type: "core::option::Option::"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "get_nonce"; readonly inputs: readonly [{ readonly name: "y"; readonly type: "tongo::structs::common::pubkey::PubKey"; }]; readonly outputs: readonly [{ readonly type: "core::integer::u64"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "get_state"; readonly inputs: readonly [{ readonly name: "y"; readonly type: "tongo::structs::common::pubkey::PubKey"; }]; readonly outputs: readonly [{ readonly type: "tongo::structs::common::state::State"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "auditor_key"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly type: "core::option::Option::"; }]; readonly state_mutability: "view"; }, { readonly type: "function"; readonly name: "change_auditor_key"; readonly inputs: readonly [{ readonly name: "new_auditor_key"; readonly type: "tongo::structs::common::pubkey::PubKey"; }]; readonly outputs: readonly []; readonly state_mutability: "external"; }]; }, { readonly type: "constructor"; readonly name: "constructor"; readonly inputs: readonly [{ readonly name: "owner"; readonly type: "core::starknet::contract_address::ContractAddress"; }, { readonly name: "ERC20"; readonly type: "core::starknet::contract_address::ContractAddress"; }, { readonly name: "rate"; readonly type: "core::integer::u256"; }, { readonly name: "bit_size"; readonly type: "core::integer::u32"; }, { readonly name: "auditor_key"; readonly type: "core::option::Option::"; }]; }, { readonly type: "event"; readonly name: "tongo::structs::events::TransferEvent"; readonly kind: "struct"; readonly members: readonly [{ readonly name: "to"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "key"; }, { readonly name: "from"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "key"; }, { readonly name: "nonce"; readonly type: "core::integer::u64"; readonly kind: "key"; }, { readonly name: "transferBalance"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; readonly kind: "data"; }, { readonly name: "transferBalanceSelf"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; readonly kind: "data"; }, { readonly name: "hintTransfer"; readonly type: "tongo::structs::aecipher::AEBalance"; readonly kind: "data"; }, { readonly name: "hintLeftover"; readonly type: "tongo::structs::aecipher::AEBalance"; readonly kind: "data"; }]; }, { readonly type: "event"; readonly name: "tongo::structs::events::FundEvent"; readonly kind: "struct"; readonly members: readonly [{ readonly name: "to"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "key"; }, { readonly name: "nonce"; readonly type: "core::integer::u64"; readonly kind: "key"; }, { readonly name: "amount"; readonly type: "core::integer::u128"; readonly kind: "data"; }]; }, { readonly type: "event"; readonly name: "tongo::structs::events::RolloverEvent"; readonly kind: "struct"; readonly members: readonly [{ readonly name: "to"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "key"; }, { readonly name: "nonce"; readonly type: "core::integer::u64"; readonly kind: "key"; }, { readonly name: "rollovered"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; readonly kind: "data"; }]; }, { readonly type: "event"; readonly name: "tongo::structs::events::WithdrawEvent"; readonly kind: "struct"; readonly members: readonly [{ readonly name: "from"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "key"; }, { readonly name: "nonce"; readonly type: "core::integer::u64"; readonly kind: "key"; }, { readonly name: "amount"; readonly type: "core::integer::u128"; readonly kind: "data"; }, { readonly name: "to"; readonly type: "core::starknet::contract_address::ContractAddress"; readonly kind: "data"; }]; }, { readonly type: "event"; readonly name: "tongo::structs::events::RagequitEvent"; readonly kind: "struct"; readonly members: readonly [{ readonly name: "from"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "key"; }, { readonly name: "nonce"; readonly type: "core::integer::u64"; readonly kind: "key"; }, { readonly name: "amount"; readonly type: "core::integer::u128"; readonly kind: "data"; }, { readonly name: "to"; readonly type: "core::starknet::contract_address::ContractAddress"; readonly kind: "data"; }]; }, { readonly type: "event"; readonly name: "tongo::structs::events::BalanceDeclared"; readonly kind: "struct"; readonly members: readonly [{ readonly name: "from"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "key"; }, { readonly name: "nonce"; readonly type: "core::integer::u64"; readonly kind: "key"; }, { readonly name: "auditorPubKey"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "data"; }, { readonly name: "declaredCipherBalance"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; readonly kind: "data"; }, { readonly name: "hint"; readonly type: "tongo::structs::aecipher::AEBalance"; readonly kind: "data"; }]; }, { readonly type: "event"; readonly name: "tongo::structs::events::TransferDeclared"; readonly kind: "struct"; readonly members: readonly [{ readonly name: "from"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "key"; }, { readonly name: "to"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "key"; }, { readonly name: "nonce"; readonly type: "core::integer::u64"; readonly kind: "key"; }, { readonly name: "auditorPubKey"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "data"; }, { readonly name: "declaredCipherBalance"; readonly type: "tongo::structs::common::cipherbalance::CipherBalance"; readonly kind: "data"; }, { readonly name: "hint"; readonly type: "tongo::structs::aecipher::AEBalance"; readonly kind: "data"; }]; }, { readonly type: "event"; readonly name: "tongo::structs::events::AuditorPubKeySet"; readonly kind: "struct"; readonly members: readonly [{ readonly name: "keyNumber"; readonly type: "core::integer::u128"; readonly kind: "key"; }, { readonly name: "AuditorPubKey"; readonly type: "tongo::structs::common::pubkey::PubKey"; readonly kind: "data"; }]; }, { readonly type: "event"; readonly name: "tongo::tongo::Tongo::Tongo::Event"; readonly kind: "enum"; readonly variants: readonly [{ readonly name: "TransferEvent"; readonly type: "tongo::structs::events::TransferEvent"; readonly kind: "nested"; }, { readonly name: "FundEvent"; readonly type: "tongo::structs::events::FundEvent"; readonly kind: "nested"; }, { readonly name: "RolloverEvent"; readonly type: "tongo::structs::events::RolloverEvent"; readonly kind: "nested"; }, { readonly name: "WithdrawEvent"; readonly type: "tongo::structs::events::WithdrawEvent"; readonly kind: "nested"; }, { readonly name: "RagequitEvent"; readonly type: "tongo::structs::events::RagequitEvent"; readonly kind: "nested"; }, { readonly name: "BalanceDeclared"; readonly type: "tongo::structs::events::BalanceDeclared"; readonly kind: "nested"; }, { readonly name: "TransferDeclared"; readonly type: "tongo::structs::events::TransferDeclared"; readonly kind: "nested"; }, { readonly name: "AuditorPubKeySet"; readonly type: "tongo::structs::events::AuditorPubKeySet"; readonly kind: "nested"; }]; }];