import { AutoWithdrawPause, AutoWithdrawPreviewStatus, AutoWithdrawSchedule } from "../../../chain/withdraw/v1/auto_withdraw_pb.js"; import { ChargedFee, QuickSwap, QuickSwapReason, QuickSwapStatus, QuickSwapTerms, RequestedFees, TokenAmount } from "./quickswap_pb.js"; import { Message } from "@bufbuild/protobuf"; import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { Timestamp } from "@bufbuild/protobuf/wkt"; declare namespace quickswap_broker_pb_d_exports { export { AffiliateVault, AffiliateVaultSchema, AssetVolume, AssetVolumeSchema, AssetWithoutDestination, AssetWithoutDestinationSchema, Broker, BrokerKey, BrokerKeySchema, BrokerRole, BrokerRoleSchema, BrokerSchema, BrokerStatsPeriod, BrokerStatsPeriodSchema, BrokerUsage, BrokerUsageSchema, CreateAffiliateVaultRequest, CreateAffiliateVaultRequestSchema, CreateAffiliateVaultResponse, CreateAffiliateVaultResponseSchema, CreateKeyRequest, CreateKeyRequestSchema, CreateKeyResponse, CreateKeyResponseSchema, FeeSplit, FeeSplitSchema, FeeTotal, FeeTotalSchema, FeeTotalsGrouping, FeeTotalsGroupingSchema, GetBrokerRequest, GetBrokerRequestSchema, GetBrokerResponse, GetBrokerResponseSchema, GetBrokerStatsRequest, GetBrokerStatsRequestSchema, GetBrokerStatsResponse, GetBrokerStatsResponseSchema, GetFeeTotalsRequest, GetFeeTotalsRequestSchema, GetFeeTotalsResponse, GetFeeTotalsResponseSchema, GetPayoutRequest, GetPayoutRequestSchema, GetPayoutResponse, GetPayoutResponseSchema, GetVaultRequest, GetVaultRequestSchema, GetVaultResponse, GetVaultResponseSchema, Invite, InviteMemberRequest, InviteMemberRequestSchema, InviteMemberResponse, InviteMemberResponseSchema, InviteSchema, ListKeysRequest, ListKeysRequestSchema, ListKeysResponse, ListKeysResponseSchema, ListMembersRequest, ListMembersRequestSchema, ListMembersResponse, ListMembersResponseSchema, ListMyBrokersRequest, ListMyBrokersRequestSchema, ListMyBrokersResponse, ListMyBrokersResponseSchema, ListPayoutsRequest, ListPayoutsRequestSchema, ListPayoutsResponse, ListPayoutsResponseSchema, ListQuickSwapsRequest, ListQuickSwapsRequestSchema, ListQuickSwapsResponse, ListQuickSwapsResponseSchema, ListUpcomingPayoutsRequest, ListUpcomingPayoutsRequestSchema, ListUpcomingPayoutsResponse, ListUpcomingPayoutsResponseSchema, ListVaultBalancesRequest, ListVaultBalancesRequestSchema, ListVaultBalancesResponse, ListVaultBalancesResponseSchema, ListVaultPayoutRulesRequest, ListVaultPayoutRulesRequestSchema, ListVaultPayoutRulesResponse, ListVaultPayoutRulesResponseSchema, ListVaultsRequest, ListVaultsRequestSchema, ListVaultsResponse, ListVaultsResponseSchema, Member, MemberSchema, Membership, MembershipSchema, Payout, PayoutRuleDestination, PayoutRuleDestinationSchema, PayoutSchema, PayoutStage, PayoutStageSchema, PayoutStatus, PayoutStatusSchema, PayoutStep, PayoutStepSchema, PayoutStepState, PayoutStepStateSchema, QuickSwapBrokerService, QuickSwapBrokerServiceGetQuickSwapRequest, QuickSwapBrokerServiceGetQuickSwapRequestSchema, QuickSwapBrokerServiceGetQuickSwapResponse, QuickSwapBrokerServiceGetQuickSwapResponseSchema, QuickSwapSummary, QuickSwapSummarySchema, RemoveMemberRequest, RemoveMemberRequestSchema, RemoveMemberResponse, RemoveMemberResponseSchema, RespondToInviteRequest, RespondToInviteRequestSchema, RespondToInviteResponse, RespondToInviteResponseSchema, RevokeKeyRequest, RevokeKeyRequestSchema, RevokeKeyResponse, RevokeKeyResponseSchema, RotateKeyRequest, RotateKeyRequestSchema, RotateKeyResponse, RotateKeyResponseSchema, SetMemberRoleRequest, SetMemberRoleRequestSchema, SetMemberRoleResponse, SetMemberRoleResponseSchema, SetVaultStatusRequest, SetVaultStatusRequestSchema, SetVaultStatusResponse, SetVaultStatusResponseSchema, StatsPeriod, StatsPeriodSchema, StatusCount, StatusCountSchema, TransferOwnershipRequest, TransferOwnershipRequestSchema, TransferOwnershipResponse, TransferOwnershipResponseSchema, UpcomingPayout, UpcomingPayoutAsset, UpcomingPayoutAssetSchema, UpcomingPayoutSchema, VaultAssetBalance, VaultAssetBalanceSchema, VaultBalance, VaultBalanceSchema, VaultPayoutRule, VaultPayoutRuleSchema, VaultStatus, VaultStatusSchema, file_swap_quickswap_v1_quickswap_broker }; } /** * Describes the file swap/quickswap/v1/quickswap_broker.proto. */ declare const file_swap_quickswap_v1_quickswap_broker: GenFile; /** * Broker is a broker org. * * @generated from message swap.quickswap.v1.Broker */ type Broker = Message<"swap.quickswap.v1.Broker"> & { /** * Broker name: the immutable identifier used in every request. * * @generated from field: string name = 1; */ name: string; /** * Display name. * * @generated from field: string display_name = 2; */ displayName: string; /** * Whether the broker may quote and create QuickSwaps. A disabled broker * keeps reads, vaults, keys and members. * * @generated from field: bool enabled = 3; */ enabled: boolean; /** * Public account ID of the broker's root account. * * @generated from field: fixed64 root_account_id = 4; */ rootAccountId: bigint; /** * Public sub-account ID of the default vault, credited with broker fees * that name no affiliate. * * @generated from field: fixed64 default_vault_account_id = 5; */ defaultVaultAccountId: bigint; /** * Affiliate vaults the broker may create, active and disabled together. * At the limit, CreateAffiliateVault fails with RESOURCE_EXHAUSTED / * BROKER_LIMIT. * * @generated from field: uint32 max_affiliate_vaults = 6; */ maxAffiliateVaults: number; /** * The caller's role; BROKER_ROLE_UNSPECIFIED for a broker API key. * * @generated from field: swap.quickswap.v1.BrokerRole role = 7; */ role: BrokerRole; /** * Quote requests per second allowed for each API key of the broker, which * is also the burst. Over the rate, QuoteQuickSwap fails with * RESOURCE_EXHAUSTED / BROKER_LIMIT and a Retry-After header. * * @generated from field: uint32 quote_rps = 8; */ quoteRps: number; /** * Create requests per second allowed for each API key of the broker, which * is also the burst. Over the rate, CreateQuickSwap fails with * RESOURCE_EXHAUSTED / BROKER_LIMIT and a Retry-After header. * * @generated from field: uint32 create_rps = 9; */ createRps: number; /** * Read requests per second allowed for each API key of the broker, which is * also the burst. GetQuickSwap and every QuickSwapBrokerService call by an * API key count as reads. Over the rate, the call fails with * RESOURCE_EXHAUSTED / BROKER_LIMIT and a Retry-After header. * * @generated from field: uint32 read_rps = 10; */ readRps: number; /** * Unfunded Quick Swaps the broker may hold at once: Quick Swaps whose * deposit address is being issued or is still awaiting a deposit within * its funding window. At the limit, CreateQuickSwap fails with * RESOURCE_EXHAUSTED / BROKER_LIMIT; a deposit or the end of a funding * window frees a slot. * * @generated from field: uint32 max_unfunded_addresses = 11; */ maxUnfundedAddresses: number; /** * Quick Swaps the broker may create in any rolling hour. At the limit, * CreateQuickSwap fails with RESOURCE_EXHAUSTED / BROKER_LIMIT until the * oldest create of the hour is more than an hour old. * * @generated from field: uint32 max_creates_per_hour = 12; */ maxCreatesPerHour: number; }; /** * Describes the message swap.quickswap.v1.Broker. * Use `create(BrokerSchema)` to create a new message. */ declare const BrokerSchema: GenMessage; /** * BrokerUsage is the broker's current use of its limits, counted exactly as * the limits are enforced: the next create is refused while a count is at or * above its limit on Broker. A count can be above its limit after the limit * is lowered. The counts are read when the request is served and can change * right after with concurrent creates, deposits and expiring funding windows. * * @generated from message swap.quickswap.v1.BrokerUsage */ type BrokerUsage = Message<"swap.quickswap.v1.BrokerUsage"> & { /** * Unfunded Quick Swaps held now, counted against * Broker.max_unfunded_addresses. * * @generated from field: uint32 unfunded_addresses = 1; */ unfundedAddresses: number; /** * Quick Swaps created in the last hour, counted against * Broker.max_creates_per_hour. * * @generated from field: uint32 creates_last_hour = 2; */ createsLastHour: number; /** * Affiliate vaults created, active and disabled together, counted against * Broker.max_affiliate_vaults. * * @generated from field: uint32 affiliate_vaults = 3; */ affiliateVaults: number; }; /** * Describes the message swap.quickswap.v1.BrokerUsage. * Use `create(BrokerUsageSchema)` to create a new message. */ declare const BrokerUsageSchema: GenMessage; /** * AffiliateVault is a sub-account of the broker root, owned by the broker, * credited with the fees of one affiliate. Affiliate vaults are never * deleted. * * @generated from message swap.quickswap.v1.AffiliateVault */ type AffiliateVault = Message<"swap.quickswap.v1.AffiliateVault"> & { /** * Public sub-account ID of the vault; name it in AffiliateShare.account_id. * * @generated from field: fixed64 account_id = 1; */ accountId: bigint; /** * Broker-chosen label, unique per broker. * * @generated from field: string label = 2; */ label: string; /** * Whether new QuickSwaps can name the vault. * * @generated from field: swap.quickswap.v1.VaultStatus status = 3; */ status: VaultStatus; /** * When the vault was created. * * @generated from field: google.protobuf.Timestamp created_at = 4; */ createdAt?: Timestamp | undefined; /** * When the vault was last changed. * * @generated from field: google.protobuf.Timestamp updated_at = 5; */ updatedAt?: Timestamp | undefined; }; /** * Describes the message swap.quickswap.v1.AffiliateVault. * Use `create(AffiliateVaultSchema)` to create a new message. */ declare const AffiliateVaultSchema: GenMessage; /** * BrokerKey is a broker API key, without its secret. * * @generated from message swap.quickswap.v1.BrokerKey */ type BrokerKey = Message<"swap.quickswap.v1.BrokerKey"> & { /** * Public key ID: the part of the token between "qsk_" and the second "_". * * @generated from field: string key_id = 1; */ keyId: string; /** * Label given at creation; empty for a key created by rotation. * * @generated from field: string label = 2; */ label: string; /** * When the key was created. * * @generated from field: google.protobuf.Timestamp created_at = 3; */ createdAt?: Timestamp | undefined; /** * Public account ID of the member who created the key; 0 for a key that a * key created by rotating itself. * * @generated from field: fixed64 created_by_account_id = 4; */ createdByAccountId: bigint; /** * Key this key replaced by rotation; empty otherwise. * * @generated from field: string rotated_from = 5; */ rotatedFrom: string; /** * End of the key's rotation overlap; the key stops working then. Unset * while the key works until revoked. * * @generated from field: google.protobuf.Timestamp expires_at = 6; */ expiresAt?: Timestamp | undefined; /** * When the key was revoked; unset while not revoked. * * @generated from field: google.protobuf.Timestamp revoked_at = 7; */ revokedAt?: Timestamp | undefined; /** * Whether the key works now: neither revoked nor past expires_at. * * @generated from field: bool active = 8; */ active: boolean; }; /** * Describes the message swap.quickswap.v1.BrokerKey. * Use `create(BrokerKeySchema)` to create a new message. */ declare const BrokerKeySchema: GenMessage; /** * Member is a person with a role in the broker org. * * @generated from message swap.quickswap.v1.Member */ type Member = Message<"swap.quickswap.v1.Member"> & { /** * Public account ID of the person's own account. * * @generated from field: fixed64 account_id = 1; */ accountId: bigint; /** * Role. * * @generated from field: swap.quickswap.v1.BrokerRole role = 2; */ role: BrokerRole; /** * When the person got this role. * * @generated from field: google.protobuf.Timestamp since = 3; */ since?: Timestamp | undefined; }; /** * Describes the message swap.quickswap.v1.Member. * Use `create(MemberSchema)` to create a new message. */ declare const MemberSchema: GenMessage; /** * Invite is a pending invitation to join a broker org. * * @generated from message swap.quickswap.v1.Invite */ type Invite = Message<"swap.quickswap.v1.Invite"> & { /** * Public invite ID. * * @generated from field: fixed64 invite_id = 1; */ inviteId: bigint; /** * Broker name. * * @generated from field: string broker = 2; */ broker: string; /** * Broker display name. * * @generated from field: string broker_display_name = 3; */ brokerDisplayName: string; /** * Public account ID of the invited person. * * @generated from field: fixed64 account_id = 4; */ accountId: bigint; /** * Role the person gets on accepting. * * @generated from field: swap.quickswap.v1.BrokerRole role = 5; */ role: BrokerRole; /** * Public account ID of the member who invited them. * * @generated from field: fixed64 invited_by_account_id = 6; */ invitedByAccountId: bigint; /** * When the invite was sent. * * @generated from field: google.protobuf.Timestamp created_at = 7; */ createdAt?: Timestamp | undefined; }; /** * Describes the message swap.quickswap.v1.Invite. * Use `create(InviteSchema)` to create a new message. */ declare const InviteSchema: GenMessage; /** * Membership is the caller's role in one broker org. * * @generated from message swap.quickswap.v1.Membership */ type Membership = Message<"swap.quickswap.v1.Membership"> & { /** * Broker name. * * @generated from field: string broker = 1; */ broker: string; /** * Broker display name. * * @generated from field: string broker_display_name = 2; */ brokerDisplayName: string; /** * The caller's role. * * @generated from field: swap.quickswap.v1.BrokerRole role = 3; */ role: BrokerRole; }; /** * Describes the message swap.quickswap.v1.Membership. * Use `create(MembershipSchema)` to create a new message. */ declare const MembershipSchema: GenMessage; /** * GetBrokerRequest names a broker. * * @generated from message swap.quickswap.v1.GetBrokerRequest */ type GetBrokerRequest = Message<"swap.quickswap.v1.GetBrokerRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; }; /** * Describes the message swap.quickswap.v1.GetBrokerRequest. * Use `create(GetBrokerRequestSchema)` to create a new message. */ declare const GetBrokerRequestSchema: GenMessage; /** * GetBrokerResponse returns the broker, with its limits, and its current * usage of them. * * @generated from message swap.quickswap.v1.GetBrokerResponse */ type GetBrokerResponse = Message<"swap.quickswap.v1.GetBrokerResponse"> & { /** * The broker, with its limits. * * @generated from field: swap.quickswap.v1.Broker broker = 1; */ broker?: Broker | undefined; /** * Current usage of the broker's limits. * * @generated from field: swap.quickswap.v1.BrokerUsage usage = 2; */ usage?: BrokerUsage | undefined; }; /** * Describes the message swap.quickswap.v1.GetBrokerResponse. * Use `create(GetBrokerResponseSchema)` to create a new message. */ declare const GetBrokerResponseSchema: GenMessage; /** * ListMyBrokersRequest lists the caller's broker memberships and invites. * * @generated from message swap.quickswap.v1.ListMyBrokersRequest */ type ListMyBrokersRequest = Message<"swap.quickswap.v1.ListMyBrokersRequest"> & {}; /** * Describes the message swap.quickswap.v1.ListMyBrokersRequest. * Use `create(ListMyBrokersRequestSchema)` to create a new message. */ declare const ListMyBrokersRequestSchema: GenMessage; /** * ListMyBrokersResponse lists every membership and pending invite of the * caller, by broker name. Both lists are naturally bounded. * * @generated from message swap.quickswap.v1.ListMyBrokersResponse */ type ListMyBrokersResponse = Message<"swap.quickswap.v1.ListMyBrokersResponse"> & { /** * Brokers the caller is a member of. * * @generated from field: repeated swap.quickswap.v1.Membership memberships = 1; */ memberships: Membership[]; /** * Pending invites addressed to the caller. * * @generated from field: repeated swap.quickswap.v1.Invite invites = 2; */ invites: Invite[]; }; /** * Describes the message swap.quickswap.v1.ListMyBrokersResponse. * Use `create(ListMyBrokersResponseSchema)` to create a new message. */ declare const ListMyBrokersResponseSchema: GenMessage; /** * RespondToInviteRequest accepts or declines a pending invite addressed to * the caller. * * @generated from message swap.quickswap.v1.RespondToInviteRequest */ type RespondToInviteRequest = Message<"swap.quickswap.v1.RespondToInviteRequest"> & { /** * Public invite ID. * * @generated from field: fixed64 invite_id = 1; */ inviteId: bigint; /** * True to accept, false to decline. * * @generated from field: bool accept = 2; */ accept: boolean; }; /** * Describes the message swap.quickswap.v1.RespondToInviteRequest. * Use `create(RespondToInviteRequestSchema)` to create a new message. */ declare const RespondToInviteRequestSchema: GenMessage; /** * RespondToInviteResponse returns the caller's new membership. * * @generated from message swap.quickswap.v1.RespondToInviteResponse */ type RespondToInviteResponse = Message<"swap.quickswap.v1.RespondToInviteResponse"> & { /** * The membership; unset when the invite was declined. * * @generated from field: swap.quickswap.v1.Membership membership = 1; */ membership?: Membership | undefined; }; /** * Describes the message swap.quickswap.v1.RespondToInviteResponse. * Use `create(RespondToInviteResponseSchema)` to create a new message. */ declare const RespondToInviteResponseSchema: GenMessage; /** * ListMembersRequest lists a broker's members. * * @generated from message swap.quickswap.v1.ListMembersRequest */ type ListMembersRequest = Message<"swap.quickswap.v1.ListMembersRequest"> & { /** * Broker name. * * @generated from field: string broker = 1; */ broker: string; }; /** * Describes the message swap.quickswap.v1.ListMembersRequest. * Use `create(ListMembersRequestSchema)` to create a new message. */ declare const ListMembersRequestSchema: GenMessage; /** * ListMembersResponse lists every member and pending invite of the broker, * Owner first, then by account ID. Both lists are naturally bounded. * * @generated from message swap.quickswap.v1.ListMembersResponse */ type ListMembersResponse = Message<"swap.quickswap.v1.ListMembersResponse"> & { /** * Members. * * @generated from field: repeated swap.quickswap.v1.Member members = 1; */ members: Member[]; /** * Pending invites, newest first. * * @generated from field: repeated swap.quickswap.v1.Invite invites = 2; */ invites: Invite[]; }; /** * Describes the message swap.quickswap.v1.ListMembersResponse. * Use `create(ListMembersResponseSchema)` to create a new message. */ declare const ListMembersResponseSchema: GenMessage; /** * InviteMemberRequest invites a person to the broker. * * @generated from message swap.quickswap.v1.InviteMemberRequest */ type InviteMemberRequest = Message<"swap.quickswap.v1.InviteMemberRequest"> & { /** * Broker name. * * @generated from field: string broker = 1; */ broker: string; /** * Public account ID of the person's own account. * * @generated from field: fixed64 account_id = 2; */ accountId: bigint; /** * Role the person gets on accepting; never OWNER. * * @generated from field: swap.quickswap.v1.BrokerRole role = 3; */ role: BrokerRole; }; /** * Describes the message swap.quickswap.v1.InviteMemberRequest. * Use `create(InviteMemberRequestSchema)` to create a new message. */ declare const InviteMemberRequestSchema: GenMessage; /** * InviteMemberResponse returns the pending invite. * * @generated from message swap.quickswap.v1.InviteMemberResponse */ type InviteMemberResponse = Message<"swap.quickswap.v1.InviteMemberResponse"> & { /** * The invite. * * @generated from field: swap.quickswap.v1.Invite invite = 1; */ invite?: Invite | undefined; }; /** * Describes the message swap.quickswap.v1.InviteMemberResponse. * Use `create(InviteMemberResponseSchema)` to create a new message. */ declare const InviteMemberResponseSchema: GenMessage; /** * SetMemberRoleRequest changes a member's role. * * @generated from message swap.quickswap.v1.SetMemberRoleRequest */ type SetMemberRoleRequest = Message<"swap.quickswap.v1.SetMemberRoleRequest"> & { /** * Broker name. * * @generated from field: string broker = 1; */ broker: string; /** * Public account ID of the member. * * @generated from field: fixed64 account_id = 2; */ accountId: bigint; /** * New role; never OWNER. * * @generated from field: swap.quickswap.v1.BrokerRole role = 3; */ role: BrokerRole; }; /** * Describes the message swap.quickswap.v1.SetMemberRoleRequest. * Use `create(SetMemberRoleRequestSchema)` to create a new message. */ declare const SetMemberRoleRequestSchema: GenMessage; /** * SetMemberRoleResponse is empty. * * @generated from message swap.quickswap.v1.SetMemberRoleResponse */ type SetMemberRoleResponse = Message<"swap.quickswap.v1.SetMemberRoleResponse"> & {}; /** * Describes the message swap.quickswap.v1.SetMemberRoleResponse. * Use `create(SetMemberRoleResponseSchema)` to create a new message. */ declare const SetMemberRoleResponseSchema: GenMessage; /** * RemoveMemberRequest removes a member, or cancels the person's pending * invite. * * @generated from message swap.quickswap.v1.RemoveMemberRequest */ type RemoveMemberRequest = Message<"swap.quickswap.v1.RemoveMemberRequest"> & { /** * Broker name. * * @generated from field: string broker = 1; */ broker: string; /** * Public account ID of the member or invited person. * * @generated from field: fixed64 account_id = 2; */ accountId: bigint; }; /** * Describes the message swap.quickswap.v1.RemoveMemberRequest. * Use `create(RemoveMemberRequestSchema)` to create a new message. */ declare const RemoveMemberRequestSchema: GenMessage; /** * RemoveMemberResponse is empty. * * @generated from message swap.quickswap.v1.RemoveMemberResponse */ type RemoveMemberResponse = Message<"swap.quickswap.v1.RemoveMemberResponse"> & {}; /** * Describes the message swap.quickswap.v1.RemoveMemberResponse. * Use `create(RemoveMemberResponseSchema)` to create a new message. */ declare const RemoveMemberResponseSchema: GenMessage; /** * TransferOwnershipRequest makes another member the Owner. * * @generated from message swap.quickswap.v1.TransferOwnershipRequest */ type TransferOwnershipRequest = Message<"swap.quickswap.v1.TransferOwnershipRequest"> & { /** * Broker name. * * @generated from field: string broker = 1; */ broker: string; /** * Public account ID of the member who becomes the Owner. * * @generated from field: fixed64 account_id = 2; */ accountId: bigint; }; /** * Describes the message swap.quickswap.v1.TransferOwnershipRequest. * Use `create(TransferOwnershipRequestSchema)` to create a new message. */ declare const TransferOwnershipRequestSchema: GenMessage; /** * TransferOwnershipResponse is empty. * * @generated from message swap.quickswap.v1.TransferOwnershipResponse */ type TransferOwnershipResponse = Message<"swap.quickswap.v1.TransferOwnershipResponse"> & {}; /** * Describes the message swap.quickswap.v1.TransferOwnershipResponse. * Use `create(TransferOwnershipResponseSchema)` to create a new message. */ declare const TransferOwnershipResponseSchema: GenMessage; /** * ListKeysRequest lists a broker's API keys, working and past. * * @generated from message swap.quickswap.v1.ListKeysRequest */ type ListKeysRequest = Message<"swap.quickswap.v1.ListKeysRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Maximum number of keys to return; 0 means 100, at most 200. * * @generated from field: uint32 limit = 2; */ limit: number; /** * Opaque keyset cursor from a previous next_page_token, exclusive, bound to * the broker and ordered newest first by creation time, then key ID. Empty * for the first page. * * @generated from field: string page_token = 3; */ pageToken: string; }; /** * Describes the message swap.quickswap.v1.ListKeysRequest. * Use `create(ListKeysRequestSchema)` to create a new message. */ declare const ListKeysRequestSchema: GenMessage; /** * ListKeysResponse lists the broker's API keys newest first: by creation * time, then key ID, both descending. A broker has at most two working keys; * revoked and expired keys stay listed. * * @generated from message swap.quickswap.v1.ListKeysResponse */ type ListKeysResponse = Message<"swap.quickswap.v1.ListKeysResponse"> & { /** * Keys. * * @generated from field: repeated swap.quickswap.v1.BrokerKey keys = 1; */ keys: BrokerKey[]; /** * Cursor of the next page. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message swap.quickswap.v1.ListKeysResponse. * Use `create(ListKeysResponseSchema)` to create a new message. */ declare const ListKeysResponseSchema: GenMessage; /** * CreateKeyRequest creates a broker API key. * * @generated from message swap.quickswap.v1.CreateKeyRequest */ type CreateKeyRequest = Message<"swap.quickswap.v1.CreateKeyRequest"> & { /** * Broker name. * * @generated from field: string broker = 1; */ broker: string; /** * Label, 1 to 64 characters without leading or trailing whitespace. * * @generated from field: string label = 2; */ label: string; }; /** * Describes the message swap.quickswap.v1.CreateKeyRequest. * Use `create(CreateKeyRequestSchema)` to create a new message. */ declare const CreateKeyRequestSchema: GenMessage; /** * CreateKeyResponse returns the key and its token. The token is shown only * here and cannot be recovered. * * @generated from message swap.quickswap.v1.CreateKeyResponse */ type CreateKeyResponse = Message<"swap.quickswap.v1.CreateKeyResponse"> & { /** * The key. * * @generated from field: swap.quickswap.v1.BrokerKey key = 1; */ key?: BrokerKey | undefined; /** * Bearer token qsk__. Store it as a server secret. * * @generated from field: string token = 2; */ token: string; }; /** * Describes the message swap.quickswap.v1.CreateKeyResponse. * Use `create(CreateKeyResponseSchema)` to create a new message. */ declare const CreateKeyResponseSchema: GenMessage; /** * RotateKeyRequest replaces a key by a new one. The old key keeps working * for the overlap, then stops. * * @generated from message swap.quickswap.v1.RotateKeyRequest */ type RotateKeyRequest = Message<"swap.quickswap.v1.RotateKeyRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Key to rotate. A broker API key may rotate only itself. * * @generated from field: string key_id = 2; */ keyId: string; /** * How long the old key keeps working, in seconds, from 0 to 604800 (7 * days). Default 86400 (24 hours). 0 revokes it immediately. * * @generated from field: optional uint32 overlap_seconds = 3; */ overlapSeconds?: number | undefined; }; /** * Describes the message swap.quickswap.v1.RotateKeyRequest. * Use `create(RotateKeyRequestSchema)` to create a new message. */ declare const RotateKeyRequestSchema: GenMessage; /** * RotateKeyResponse returns the new key, its token and the old key. The token * is shown only here and cannot be recovered. * * @generated from message swap.quickswap.v1.RotateKeyResponse */ type RotateKeyResponse = Message<"swap.quickswap.v1.RotateKeyResponse"> & { /** * The new key. * * @generated from field: swap.quickswap.v1.BrokerKey key = 1; */ key?: BrokerKey | undefined; /** * Bearer token qsk__ of the new key. * * @generated from field: string token = 2; */ token: string; /** * The old key, with the end of its overlap. * * @generated from field: swap.quickswap.v1.BrokerKey previous_key = 3; */ previousKey?: BrokerKey | undefined; }; /** * Describes the message swap.quickswap.v1.RotateKeyResponse. * Use `create(RotateKeyResponseSchema)` to create a new message. */ declare const RotateKeyResponseSchema: GenMessage; /** * RevokeKeyRequest revokes a key immediately. * * @generated from message swap.quickswap.v1.RevokeKeyRequest */ type RevokeKeyRequest = Message<"swap.quickswap.v1.RevokeKeyRequest"> & { /** * Broker name. * * @generated from field: string broker = 1; */ broker: string; /** * Key to revoke. * * @generated from field: string key_id = 2; */ keyId: string; }; /** * Describes the message swap.quickswap.v1.RevokeKeyRequest. * Use `create(RevokeKeyRequestSchema)` to create a new message. */ declare const RevokeKeyRequestSchema: GenMessage; /** * RevokeKeyResponse returns the revoked key. * * @generated from message swap.quickswap.v1.RevokeKeyResponse */ type RevokeKeyResponse = Message<"swap.quickswap.v1.RevokeKeyResponse"> & { /** * The key. * * @generated from field: swap.quickswap.v1.BrokerKey key = 1; */ key?: BrokerKey | undefined; }; /** * Describes the message swap.quickswap.v1.RevokeKeyResponse. * Use `create(RevokeKeyResponseSchema)` to create a new message. */ declare const RevokeKeyResponseSchema: GenMessage; /** * CreateAffiliateVaultRequest creates, or returns, the affiliate vault with a * label. * * @generated from message swap.quickswap.v1.CreateAffiliateVaultRequest */ type CreateAffiliateVaultRequest = Message<"swap.quickswap.v1.CreateAffiliateVaultRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Label, 1 to 64 characters without leading or trailing whitespace, unique * per broker. The same label always returns the same vault. * * @generated from field: string label = 2; */ label: string; }; /** * Describes the message swap.quickswap.v1.CreateAffiliateVaultRequest. * Use `create(CreateAffiliateVaultRequestSchema)` to create a new message. */ declare const CreateAffiliateVaultRequestSchema: GenMessage; /** * CreateAffiliateVaultResponse returns the vault. * * @generated from message swap.quickswap.v1.CreateAffiliateVaultResponse */ type CreateAffiliateVaultResponse = Message<"swap.quickswap.v1.CreateAffiliateVaultResponse"> & { /** * The vault. * * @generated from field: swap.quickswap.v1.AffiliateVault vault = 1; */ vault?: AffiliateVault | undefined; /** * Whether this request created it. * * @generated from field: bool created = 2; */ created: boolean; }; /** * Describes the message swap.quickswap.v1.CreateAffiliateVaultResponse. * Use `create(CreateAffiliateVaultResponseSchema)` to create a new message. */ declare const CreateAffiliateVaultResponseSchema: GenMessage; /** * ListVaultsRequest lists a broker's affiliate vaults. * * @generated from message swap.quickswap.v1.ListVaultsRequest */ type ListVaultsRequest = Message<"swap.quickswap.v1.ListVaultsRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Maximum number of vaults to return; 0 means 100, at most 200. * * @generated from field: uint32 limit = 2; */ limit: number; /** * Opaque keyset cursor from a previous next_page_token, exclusive, bound to * the broker and the list order. Empty for the first page. * * @generated from field: string page_token = 3; */ pageToken: string; }; /** * Describes the message swap.quickswap.v1.ListVaultsRequest. * Use `create(ListVaultsRequestSchema)` to create a new message. */ declare const ListVaultsRequestSchema: GenMessage; /** * ListVaultsResponse lists vaults in a stable server-defined order, the * same on every page; it does not follow the public account_id values. * * @generated from message swap.quickswap.v1.ListVaultsResponse */ type ListVaultsResponse = Message<"swap.quickswap.v1.ListVaultsResponse"> & { /** * The vaults. * * @generated from field: repeated swap.quickswap.v1.AffiliateVault vaults = 1; */ vaults: AffiliateVault[]; /** * Cursor of the next page. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message swap.quickswap.v1.ListVaultsResponse. * Use `create(ListVaultsResponseSchema)` to create a new message. */ declare const ListVaultsResponseSchema: GenMessage; /** * GetVaultRequest names one affiliate vault. * * @generated from message swap.quickswap.v1.GetVaultRequest */ type GetVaultRequest = Message<"swap.quickswap.v1.GetVaultRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Public sub-account ID of the vault. * * @generated from field: fixed64 account_id = 2; */ accountId: bigint; }; /** * Describes the message swap.quickswap.v1.GetVaultRequest. * Use `create(GetVaultRequestSchema)` to create a new message. */ declare const GetVaultRequestSchema: GenMessage; /** * GetVaultResponse returns the vault. * * @generated from message swap.quickswap.v1.GetVaultResponse */ type GetVaultResponse = Message<"swap.quickswap.v1.GetVaultResponse"> & { /** * The vault. * * @generated from field: swap.quickswap.v1.AffiliateVault vault = 1; */ vault?: AffiliateVault | undefined; }; /** * Describes the message swap.quickswap.v1.GetVaultResponse. * Use `create(GetVaultResponseSchema)` to create a new message. */ declare const GetVaultResponseSchema: GenMessage; /** * SetVaultStatusRequest enables or disables an affiliate vault for new * QuickSwaps. * * @generated from message swap.quickswap.v1.SetVaultStatusRequest */ type SetVaultStatusRequest = Message<"swap.quickswap.v1.SetVaultStatusRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Public sub-account ID of the vault. * * @generated from field: fixed64 account_id = 2; */ accountId: bigint; /** * New status. * * @generated from field: swap.quickswap.v1.VaultStatus status = 3; */ status: VaultStatus; }; /** * Describes the message swap.quickswap.v1.SetVaultStatusRequest. * Use `create(SetVaultStatusRequestSchema)` to create a new message. */ declare const SetVaultStatusRequestSchema: GenMessage; /** * SetVaultStatusResponse returns the vault. * * @generated from message swap.quickswap.v1.SetVaultStatusResponse */ type SetVaultStatusResponse = Message<"swap.quickswap.v1.SetVaultStatusResponse"> & { /** * The vault. * * @generated from field: swap.quickswap.v1.AffiliateVault vault = 1; */ vault?: AffiliateVault | undefined; }; /** * Describes the message swap.quickswap.v1.SetVaultStatusResponse. * Use `create(SetVaultStatusResponseSchema)` to create a new message. */ declare const SetVaultStatusResponseSchema: GenMessage; /** * QuickSwapSummary is one QuickSwap in a list: its state and fees. Get it * with QuickSwapService.GetQuickSwap for its quote, deposit and withdrawals. * * @generated from message swap.quickswap.v1.QuickSwapSummary */ type QuickSwapSummary = Message<"swap.quickswap.v1.QuickSwapSummary"> & { /** * Public QuickSwap identifier. * * @generated from field: fixed64 swap_id = 1; */ swapId: bigint; /** * The broker's idempotency key that created it. * * @generated from field: string idempotency_key = 2; */ idempotencyKey: string; /** * Current status. * * @generated from field: swap.quickswap.v1.QuickSwapStatus status = 3; */ status: QuickSwapStatus; /** * Why the status is notable; REASON_UNSPECIFIED otherwise. * * @generated from field: swap.quickswap.v1.QuickSwapReason reason = 4; */ reason: QuickSwapReason; /** * True when status is terminal. * * @generated from field: bool is_terminal = 5; */ isTerminal: boolean; /** * Accepted economic terms. * * @generated from field: swap.quickswap.v1.QuickSwapTerms terms = 6; */ terms?: QuickSwapTerms | undefined; /** * Broker and affiliate fees as requested, fixed at creation; unset when * the request set none. * * @generated from field: swap.quickswap.v1.RequestedFees fees = 7; */ fees?: RequestedFees | undefined; /** * Broker and affiliate fees charged so far, as settled, as on QuickSwap. * * @generated from field: repeated swap.quickswap.v1.ChargedFee charged_fees = 8; */ chargedFees: ChargedFee[]; /** * When the QuickSwap was created. * * @generated from field: google.protobuf.Timestamp created_at = 9; */ createdAt?: Timestamp | undefined; /** * When the QuickSwap last changed. * * @generated from field: google.protobuf.Timestamp updated_at = 10; */ updatedAt?: Timestamp | undefined; }; /** * Describes the message swap.quickswap.v1.QuickSwapSummary. * Use `create(QuickSwapSummarySchema)` to create a new message. */ declare const QuickSwapSummarySchema: GenMessage; /** * QuickSwapBrokerServiceGetQuickSwapRequest reads one QuickSwap belonging to this broker. * * @generated from message swap.quickswap.v1.QuickSwapBrokerServiceGetQuickSwapRequest */ type QuickSwapBrokerServiceGetQuickSwapRequest = Message<"swap.quickswap.v1.QuickSwapBrokerServiceGetQuickSwapRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Public QuickSwap ID. Another broker's swap is indistinguishable from an * unknown ID. * * @generated from field: fixed64 swap_id = 2; */ swapId: bigint; }; /** * Describes the message swap.quickswap.v1.QuickSwapBrokerServiceGetQuickSwapRequest. * Use `create(QuickSwapBrokerServiceGetQuickSwapRequestSchema)` to create a new message. */ declare const QuickSwapBrokerServiceGetQuickSwapRequestSchema: GenMessage; /** * QuickSwapBrokerServiceGetQuickSwapResponse carries the broker's full swap detail. * * @generated from message swap.quickswap.v1.QuickSwapBrokerServiceGetQuickSwapResponse */ type QuickSwapBrokerServiceGetQuickSwapResponse = Message<"swap.quickswap.v1.QuickSwapBrokerServiceGetQuickSwapResponse"> & { /** * The broker-owned QuickSwap, including its quote, addresses, progress and fees. * * @generated from field: swap.quickswap.v1.QuickSwap quick_swap = 1; */ quickSwap?: QuickSwap | undefined; }; /** * Describes the message swap.quickswap.v1.QuickSwapBrokerServiceGetQuickSwapResponse. * Use `create(QuickSwapBrokerServiceGetQuickSwapResponseSchema)` to create a new message. */ declare const QuickSwapBrokerServiceGetQuickSwapResponseSchema: GenMessage; /** * ListQuickSwapsRequest lists the broker's QuickSwaps, newest first, with * optional filters. Every filter narrows the list. * * @generated from message swap.quickswap.v1.ListQuickSwapsRequest */ type ListQuickSwapsRequest = Message<"swap.quickswap.v1.ListQuickSwapsRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Only QuickSwaps whose fees credit this vault: an affiliate vault they * name, or the default vault when they set a broker fee. A referral * partner's commission credits no vault of the broker. Zero for every * QuickSwap. * * @generated from field: fixed64 vault_account_id = 2; */ vaultAccountId: bigint; /** * Only QuickSwaps in one of these statuses, at most 16; empty for every * status. * * @generated from field: repeated swap.quickswap.v1.QuickSwapStatus statuses = 3; */ statuses: QuickSwapStatus[]; /** * Only QuickSwaps created at or after start_time; unset for no lower * bound. * * @generated from field: google.protobuf.Timestamp start_time = 4; */ startTime?: Timestamp | undefined; /** * Only QuickSwaps created before end_time (exclusive); unset for no upper * bound. * * @generated from field: google.protobuf.Timestamp end_time = 5; */ endTime?: Timestamp | undefined; /** * Maximum number of QuickSwaps to return; 0 means 100, at most 200. * * @generated from field: uint32 limit = 6; */ limit: number; /** * Opaque keyset cursor from a previous next_page_token, exclusive, bound * to the broker, the filters and the list order. Reuse it with the same * filters. Empty for the first page. * * @generated from field: string page_token = 7; */ pageToken: string; }; /** * Describes the message swap.quickswap.v1.ListQuickSwapsRequest. * Use `create(ListQuickSwapsRequestSchema)` to create a new message. */ declare const ListQuickSwapsRequestSchema: GenMessage; /** * ListQuickSwapsResponse lists QuickSwaps newest first by creation time. * QuickSwaps created at the same time follow a stable server-defined order, * the same on every page; it does not follow swap_id. A QuickSwap created * after the first page was read is not listed by later pages; every earlier * one is listed exactly once. * * @generated from message swap.quickswap.v1.ListQuickSwapsResponse */ type ListQuickSwapsResponse = Message<"swap.quickswap.v1.ListQuickSwapsResponse"> & { /** * The QuickSwaps. * * @generated from field: repeated swap.quickswap.v1.QuickSwapSummary quick_swaps = 1; */ quickSwaps: QuickSwapSummary[]; /** * Cursor of the next page. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message swap.quickswap.v1.ListQuickSwapsResponse. * Use `create(ListQuickSwapsResponseSchema)` to create a new message. */ declare const ListQuickSwapsResponseSchema: GenMessage; /** * GetFeeTotalsRequest totals the broker and affiliate fees charged to the * broker's QuickSwaps in a time window: the fees credited to the broker's * vaults, never a referral partner's commission. * * @generated from message swap.quickswap.v1.GetFeeTotalsRequest */ type GetFeeTotalsRequest = Message<"swap.quickswap.v1.GetFeeTotalsRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * How to group the totals. * * @generated from field: swap.quickswap.v1.FeeTotalsGrouping group_by = 2; */ groupBy: FeeTotalsGrouping; /** * Start of the window, inclusive: fees charged at or after it. * * @generated from field: google.protobuf.Timestamp start_time = 3; */ startTime?: Timestamp | undefined; /** * End of the window, exclusive, at most 366 days after start_time. * * @generated from field: google.protobuf.Timestamp end_time = 4; */ endTime?: Timestamp | undefined; /** * Only fees credited to this vault; zero for every vault. * * @generated from field: fixed64 vault_account_id = 5; */ vaultAccountId: bigint; }; /** * Describes the message swap.quickswap.v1.GetFeeTotalsRequest. * Use `create(GetFeeTotalsRequestSchema)` to create a new message. */ declare const GetFeeTotalsRequestSchema: GenMessage; /** * FeeTotal is the fees charged in one group and asset. * * @generated from message swap.quickswap.v1.FeeTotal */ type FeeTotal = Message<"swap.quickswap.v1.FeeTotal"> & { /** * BY_VAULT: public sub-account ID of the credited vault; zero otherwise. * * @generated from field: fixed64 vault_account_id = 1; */ vaultAccountId: bigint; /** * BY_DAY or BY_MONTH: start of the UTC day or month; unset for BY_VAULT. * * @generated from field: google.protobuf.Timestamp period_start = 2; */ periodStart?: Timestamp | undefined; /** * Asset credited, as an AssetConfig.ledger_id from * GET /v1/chain/deposit-withdraw/config. * * @generated from field: uint32 asset_id = 3; */ assetId: number; /** * Total credited, in base units of 18 decimals. * * @generated from field: swap.quickswap.v1.TokenAmount amount = 4; */ amount?: TokenAmount | undefined; /** * QuickSwaps that were charged a fee in this group and asset. * * @generated from field: uint64 swap_count = 5; */ swapCount: bigint; }; /** * Describes the message swap.quickswap.v1.FeeTotal. * Use `create(FeeTotalSchema)` to create a new message. */ declare const FeeTotalSchema: GenMessage; /** * GetFeeTotalsResponse lists every group and asset with a fee in the window, * complete (the window is bounded): by vault, then asset, for BY_VAULT; by * period, then asset, for BY_DAY and BY_MONTH, oldest first. * * @generated from message swap.quickswap.v1.GetFeeTotalsResponse */ type GetFeeTotalsResponse = Message<"swap.quickswap.v1.GetFeeTotalsResponse"> & { /** * The totals. * * @generated from field: repeated swap.quickswap.v1.FeeTotal totals = 1; */ totals: FeeTotal[]; }; /** * Describes the message swap.quickswap.v1.GetFeeTotalsResponse. * Use `create(GetFeeTotalsResponseSchema)` to create a new message. */ declare const GetFeeTotalsResponseSchema: GenMessage; /** * GetBrokerStatsRequest reads the broker's QuickSwap activity in a time * window, per UTC day or month. * * @generated from message swap.quickswap.v1.GetBrokerStatsRequest */ type GetBrokerStatsRequest = Message<"swap.quickswap.v1.GetBrokerStatsRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * The period to group by. * * @generated from field: swap.quickswap.v1.StatsPeriod group_by = 2; */ groupBy: StatsPeriod; /** * Start of the window, inclusive. A window that starts or ends inside a * period counts only the part of that period inside the window. * * @generated from field: google.protobuf.Timestamp start_time = 3; */ startTime?: Timestamp | undefined; /** * End of the window, exclusive, at most 366 days after start_time. * * @generated from field: google.protobuf.Timestamp end_time = 4; */ endTime?: Timestamp | undefined; }; /** * Describes the message swap.quickswap.v1.GetBrokerStatsRequest. * Use `create(GetBrokerStatsRequestSchema)` to create a new message. */ declare const GetBrokerStatsRequestSchema: GenMessage; /** * StatusCount is how many QuickSwaps are in one status. * * @generated from message swap.quickswap.v1.StatusCount */ type StatusCount = Message<"swap.quickswap.v1.StatusCount"> & { /** * The status. * * @generated from field: swap.quickswap.v1.QuickSwapStatus status = 1; */ status: QuickSwapStatus; /** * QuickSwaps in it. * * @generated from field: uint64 count = 2; */ count: bigint; }; /** * Describes the message swap.quickswap.v1.StatusCount. * Use `create(StatusCountSchema)` to create a new message. */ declare const StatusCountSchema: GenMessage; /** * AssetVolume is a total amount in one asset. * * @generated from message swap.quickswap.v1.AssetVolume */ type AssetVolume = Message<"swap.quickswap.v1.AssetVolume"> & { /** * Asset, as an AssetConfig.ledger_id from * GET /v1/chain/deposit-withdraw/config. * * @generated from field: uint32 asset_id = 1; */ assetId: number; /** * Total, in base units of 18 decimals. * * @generated from field: swap.quickswap.v1.TokenAmount amount = 2; */ amount?: TokenAmount | undefined; }; /** * Describes the message swap.quickswap.v1.AssetVolume. * Use `create(AssetVolumeSchema)` to create a new message. */ declare const AssetVolumeSchema: GenMessage; /** * FeeSplit is the fees charged in one asset, by who they credit. Every * amount is set, zero included. * * @generated from message swap.quickswap.v1.FeeSplit */ type FeeSplit = Message<"swap.quickswap.v1.FeeSplit"> & { /** * Asset charged, as an AssetConfig.ledger_id from * GET /v1/chain/deposit-withdraw/config. * * @generated from field: uint32 asset_id = 1; */ assetId: number; /** * Service fees, credited to Polyester, in base units of 18 decimals. * * @generated from field: swap.quickswap.v1.TokenAmount service_fee = 2; */ serviceFee?: TokenAmount | undefined; /** * Broker fees, credited to the broker's default vault, in base units of * 18 decimals. * * @generated from field: swap.quickswap.v1.TokenAmount broker_fee = 3; */ brokerFee?: TokenAmount | undefined; /** * Affiliate fees, credited to the broker's affiliate vaults, in base * units of 18 decimals. * * @generated from field: swap.quickswap.v1.TokenAmount affiliate_fee = 4; */ affiliateFee?: TokenAmount | undefined; /** * Referral commissions, credited to referral partners rather than to a * vault of the broker, in base units of 18 decimals. * * @generated from field: swap.quickswap.v1.TokenAmount referral_fee = 5; */ referralFee?: TokenAmount | undefined; }; /** * Describes the message swap.quickswap.v1.FeeSplit. * Use `create(FeeSplitSchema)` to create a new message. */ declare const FeeSplitSchema: GenMessage; /** * BrokerStatsPeriod is a broker's QuickSwap activity in one UTC day or * month. A QuickSwap counts in the period it was created in, with its * current status, its credited deposit and its destination payout, so a * period's numbers keep moving until its QuickSwaps end. A fee counts in the * period it was charged in, as in GetFeeTotals, which can be later than the * period its QuickSwap was created in. * * @generated from message swap.quickswap.v1.BrokerStatsPeriod */ type BrokerStatsPeriod = Message<"swap.quickswap.v1.BrokerStatsPeriod"> & { /** * Start of the UTC day or month. * * @generated from field: google.protobuf.Timestamp period_start = 1; */ periodStart?: Timestamp | undefined; /** * QuickSwaps created in the period, inside the window. * * @generated from field: uint64 created_count = 2; */ createdCount: bigint; /** * Those QuickSwaps by current status, in QuickSwapStatus number order; * statuses with none are omitted. The counts total created_count. * * @generated from field: repeated swap.quickswap.v1.StatusCount statuses = 3; */ statuses: StatusCount[]; /** * Deposits credited to those QuickSwaps and taken in for execution, per * asset, in asset_id order: including a deposit later found ineligible * and returned, excluding a deposit held for review before credit. * * @generated from field: repeated swap.quickswap.v1.AssetVolume deposited = 4; */ deposited: AssetVolume[]; /** * Paid to the destination of those QuickSwaps whose DESTINATION * withdrawal is FINALIZED, per asset, in asset_id order: after service, * broker and affiliate fees, before the destination network fee. * * @generated from field: repeated swap.quickswap.v1.AssetVolume delivered = 5; */ delivered: AssetVolume[]; /** * Fees charged to the broker's QuickSwaps in the period, per asset, in * asset_id order. broker_fee plus affiliate_fee equals the GetFeeTotals * total of the same window, period and asset. * * @generated from field: repeated swap.quickswap.v1.FeeSplit fees = 6; */ fees: FeeSplit[]; }; /** * Describes the message swap.quickswap.v1.BrokerStatsPeriod. * Use `create(BrokerStatsPeriodSchema)` to create a new message. */ declare const BrokerStatsPeriodSchema: GenMessage; /** * GetBrokerStatsResponse lists every period of the window with a QuickSwap * created or a fee charged, oldest first, complete (the window is bounded). * Periods with neither are omitted. * * @generated from message swap.quickswap.v1.GetBrokerStatsResponse */ type GetBrokerStatsResponse = Message<"swap.quickswap.v1.GetBrokerStatsResponse"> & { /** * The periods. * * @generated from field: repeated swap.quickswap.v1.BrokerStatsPeriod periods = 1; */ periods: BrokerStatsPeriod[]; }; /** * Describes the message swap.quickswap.v1.GetBrokerStatsResponse. * Use `create(GetBrokerStatsResponseSchema)` to create a new message. */ declare const GetBrokerStatsResponseSchema: GenMessage; /** * ListVaultBalancesRequest selects a broker's default and affiliate vaults. * * @generated from message swap.quickswap.v1.ListVaultBalancesRequest */ type ListVaultBalancesRequest = Message<"swap.quickswap.v1.ListVaultBalancesRequest"> & { /** * Broker name. * * @generated from field: string broker = 1; */ broker: string; /** * Public vault subaccount ID. Omit to include every vault, including disabled * affiliates. A root account or another broker's vault is NOT_FOUND. * * @generated from field: fixed64 vault_account_id = 2; */ vaultAccountId: bigint; /** * Maximum vaults, default 20, max 200. * * @generated from field: uint32 limit = 3; */ limit: number; /** * Opaque exclusive keyset cursor, bound to the broker and vault filter. * Reuse with the same broker and vault_account_id; limit may change. * * @generated from field: string page_token = 4; */ pageToken: string; }; /** * Describes the message swap.quickswap.v1.ListVaultBalancesRequest. * Use `create(ListVaultBalancesRequestSchema)` to create a new message. */ declare const ListVaultBalancesRequestSchema: GenMessage; /** * VaultAssetBalance is the current posted balance in one asset. * * @generated from message swap.quickswap.v1.VaultAssetBalance */ type VaultAssetBalance = Message<"swap.quickswap.v1.VaultAssetBalance"> & { /** * Unified asset ID, including assets no longer enabled for new swaps. * * @generated from field: uint32 asset_id = 1; */ assetId: number; /** * Settled balance of the vault's Funding and Trading accounts, at 18 decimals. * Pending credits are excluded. This is not a withdrawability guarantee. * * @generated from field: swap.quickswap.v1.TokenAmount amount = 2; */ amount?: TokenAmount | undefined; /** * Funds committed to pending outgoing transfers, at 18 decimals. amount * still counts these funds and has NOT been reduced by pending_outgoing. * amount minus pending_outgoing is the balance not yet committed to an * outgoing transfer. This excludes order holds and is not a withdrawability guarantee. * * @generated from field: swap.quickswap.v1.TokenAmount pending_outgoing = 3; */ pendingOutgoing?: TokenAmount | undefined; }; /** * Describes the message swap.quickswap.v1.VaultAssetBalance. * Use `create(VaultAssetBalanceSchema)` to create a new message. */ declare const VaultAssetBalanceSchema: GenMessage; /** * VaultBalance is one vault's current balance observation. * * @generated from message swap.quickswap.v1.VaultBalance */ type VaultBalance = Message<"swap.quickswap.v1.VaultBalance"> & { /** * Public vault subaccount ID. * * @generated from field: fixed64 vault_account_id = 1; */ vaultAccountId: bigint; /** * Asset balances in ascending asset_id order. Empty for an unfunded vault. * * @generated from field: repeated swap.quickswap.v1.VaultAssetBalance assets = 2; */ assets: VaultAssetBalance[]; /** * UTC time this vault's balance read completed. Vaults are read separately; * this does not describe an atomic snapshot across vaults or pages. * * @generated from field: google.protobuf.Timestamp as_of = 3; */ asOf?: Timestamp | undefined; }; /** * Describes the message swap.quickswap.v1.VaultBalance. * Use `create(VaultBalanceSchema)` to create a new message. */ declare const VaultBalanceSchema: GenMessage; /** * ListVaultBalancesResponse lists vaults in ascending account creation-ID * order, independent of their encoded public IDs. A failed balance read fails * the entire page; it is never represented as a zero balance. * * @generated from message swap.quickswap.v1.ListVaultBalancesResponse */ type ListVaultBalancesResponse = Message<"swap.quickswap.v1.ListVaultBalancesResponse"> & { /** * Default and affiliate vault balances, at most limit vaults. * * @generated from field: repeated swap.quickswap.v1.VaultBalance vaults = 1; */ vaults: VaultBalance[]; /** * Opaque exclusive keyset cursor. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message swap.quickswap.v1.ListVaultBalancesResponse. * Use `create(ListVaultBalancesResponseSchema)` to create a new message. */ declare const ListVaultBalancesResponseSchema: GenMessage; /** * PayoutStep is one asset's payout in a run. Amounts are in base units of 18 * decimals. * * @generated from message swap.quickswap.v1.PayoutStep */ type PayoutStep = Message<"swap.quickswap.v1.PayoutStep"> & { /** * Asset paid, as an AssetConfig.ledger_id from * GET /v1/chain/deposit-withdraw/config. * * @generated from field: uint32 asset_id = 1; */ assetId: number; /** * Destination chain identifier. * * @generated from field: uint64 destination_chain_id = 2; */ destinationChainId: bigint; /** * Canonical destination address. * * @generated from field: string destination_address = 3; */ destinationAddress: string; /** * Where the payout stands. * * @generated from field: swap.quickswap.v1.PayoutStepState state = 4; */ state: PayoutStepState; /** * Machine-readable reason of a skipped or failed step: below_minimum, * price_unavailable, rule_superseded, destination_not_whitelisted, * destination_cooling_down (the destination was added to the vault's * external withdraw whitelist less than 24 hours ago; the balance stays * for a later run), destination_invalid, authority_revoked, * withdrawal_refused, * gateway_capacity_insufficient, withdrawal_released (the withdrawal was * released before it was sent; nothing left the vault) or * withdrawal_failed (the withdrawal ended without paying; see * PAYOUT_FAILED); empty otherwise. * * @generated from field: string reason = 5; */ reason: string; /** * The vault's available balance of the asset when the run started. * * @generated from field: swap.quickswap.v1.TokenAmount available = 6; */ available?: TokenAmount | undefined; /** * What the step pays: the available balance up to the rule's per-run * ceiling, rounded down to whole units of the destination network. Zero * when skipped. The network fee is taken out of it on the way. * * @generated from field: swap.quickswap.v1.TokenAmount amount = 7; */ amount?: TokenAmount | undefined; /** * The least amount the rule pays for the asset (the destination's minimum * in the rule version the run executed). A withdrawal on the network may * need more, as below_minimum says. * * @generated from field: swap.quickswap.v1.TokenAmount minimum = 8; */ minimum?: TokenAmount | undefined; /** * USD value of the payable amount when the run started, checked against * Payout.min_usd_value; unset when the rule has no USD minimum or no * current price valued the asset. * * @generated from field: swap.quickswap.v1.TokenAmount value_usd = 9; */ valueUsd?: TokenAmount | undefined; /** * Destination-network transaction hash, once known. * * @generated from field: string tx_hash = 10; */ txHash: string; /** * The network fee charged on the withdrawal. On a completed step it was * taken out of amount, so the destination received amount minus this fee. * On a failed step whose withdrawal the destination network's bridge * rejected or failed to execute, it is the fee kept, which is not * refunded. Unset until the step is final, on a skipped step or one that * failed before reaching that bridge, and when the fee was not reported; * never zero for unknown. * * @generated from field: swap.quickswap.v1.TokenAmount charged_network_fee = 11; */ chargedNetworkFee?: TokenAmount | undefined; }; /** * Describes the message swap.quickswap.v1.PayoutStep. * Use `create(PayoutStepSchema)` to create a new message. */ declare const PayoutStepSchema: GenMessage; /** * Payout is one scheduled payout run of a broker vault's payout rule. * * @generated from message swap.quickswap.v1.Payout */ type Payout = Message<"swap.quickswap.v1.Payout"> & { /** * Public payout run ID. * * @generated from field: fixed64 run_id = 1; */ runId: bigint; /** * Public sub-account ID of the vault paid out: the default vault or an * affiliate vault. * * @generated from field: fixed64 vault_account_id = 2; */ vaultAccountId: bigint; /** * What the run came to. * * @generated from field: swap.quickswap.v1.PayoutStatus status = 3; */ status: PayoutStatus; /** * Machine-readable reason of the status (see PayoutStatus); empty for * PAYOUT_PAID and PAYOUT_IN_PROGRESS. * * @generated from field: string reason = 4; */ reason: string; /** * Where an in-progress run stands; PAYOUT_STAGE_UNSPECIFIED otherwise. * * @generated from field: swap.quickswap.v1.PayoutStage stage = 5; */ stage: PayoutStage; /** * The rule version the run executed. * * @generated from field: uint32 rule_version = 6; */ ruleVersion: number; /** * The scheduled UTC slot the run belongs to. * * @generated from field: google.protobuf.Timestamp scheduled_for = 7; */ scheduledFor?: Timestamp | undefined; /** * When the run started. * * @generated from field: google.protobuf.Timestamp started_at = 8; */ startedAt?: Timestamp | undefined; /** * When the run ended; unset while it is in progress. * * @generated from field: google.protobuf.Timestamp finished_at = 9; */ finishedAt?: Timestamp | undefined; /** * The rule's least USD value of one payout, in base units of 18 decimals; * unset when the rule has no USD minimum. * * @generated from field: swap.quickswap.v1.TokenAmount min_usd_value = 10; */ minUsdValue?: TokenAmount | undefined; /** * One step per destination of the rule version, in asset_id order. Empty * while the run is planning. * * @generated from field: repeated swap.quickswap.v1.PayoutStep steps = 11; */ steps: PayoutStep[]; }; /** * Describes the message swap.quickswap.v1.Payout. * Use `create(PayoutSchema)` to create a new message. */ declare const PayoutSchema: GenMessage; /** * ListPayoutsRequest lists the payout runs of the broker's vaults, newest * first. Every filter narrows the list. * * @generated from message swap.quickswap.v1.ListPayoutsRequest */ type ListPayoutsRequest = Message<"swap.quickswap.v1.ListPayoutsRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Only this vault's payouts: the default vault or an affiliate vault, as * a public sub-account ID. Zero for every vault of the broker. * * @generated from field: fixed64 vault_account_id = 2; */ vaultAccountId: bigint; /** * Only payouts in one of these statuses, at most 6; empty for every * status. * * @generated from field: repeated swap.quickswap.v1.PayoutStatus statuses = 3; */ statuses: PayoutStatus[]; /** * Only runs scheduled at or after start_time; unset for no lower bound. * * @generated from field: google.protobuf.Timestamp start_time = 4; */ startTime?: Timestamp | undefined; /** * Only runs scheduled before end_time (exclusive); unset for no upper * bound. * * @generated from field: google.protobuf.Timestamp end_time = 5; */ endTime?: Timestamp | undefined; /** * Maximum number of payouts to return; 0 means 50, at most 100. * * @generated from field: uint32 limit = 6; */ limit: number; /** * Opaque keyset cursor from a previous next_page_token, exclusive, bound * to the broker, the filters and the list order. Reuse it with the same * filters; limit may change. Empty for the first page. * * @generated from field: string page_token = 7; */ pageToken: string; }; /** * Describes the message swap.quickswap.v1.ListPayoutsRequest. * Use `create(ListPayoutsRequestSchema)` to create a new message. */ declare const ListPayoutsRequestSchema: GenMessage; /** * ListPayoutsResponse lists payouts newest first by scheduled slot. Runs of * the same slot follow a stable server-defined order, the same on every * page; it does not follow run_id. Paging lists exactly once every run that * sorts after the previous page's last run when the next page is read, * including a run started meanwhile for an older slot. A run started * meanwhile for a newer slot sorts before the cursor and appears only in a * listing started again from the first page. * * @generated from message swap.quickswap.v1.ListPayoutsResponse */ type ListPayoutsResponse = Message<"swap.quickswap.v1.ListPayoutsResponse"> & { /** * The payouts. * * @generated from field: repeated swap.quickswap.v1.Payout payouts = 1; */ payouts: Payout[]; /** * Cursor of the next page. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message swap.quickswap.v1.ListPayoutsResponse. * Use `create(ListPayoutsResponseSchema)` to create a new message. */ declare const ListPayoutsResponseSchema: GenMessage; /** * GetPayoutRequest reads one payout run of the broker's vaults. * * @generated from message swap.quickswap.v1.GetPayoutRequest */ type GetPayoutRequest = Message<"swap.quickswap.v1.GetPayoutRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Public payout run ID. A run of another broker's vault is * indistinguishable from an unknown ID. * * @generated from field: fixed64 run_id = 2; */ runId: bigint; }; /** * Describes the message swap.quickswap.v1.GetPayoutRequest. * Use `create(GetPayoutRequestSchema)` to create a new message. */ declare const GetPayoutRequestSchema: GenMessage; /** * GetPayoutResponse carries the payout. * * @generated from message swap.quickswap.v1.GetPayoutResponse */ type GetPayoutResponse = Message<"swap.quickswap.v1.GetPayoutResponse"> & { /** * The payout run. * * @generated from field: swap.quickswap.v1.Payout payout = 1; */ payout?: Payout | undefined; }; /** * Describes the message swap.quickswap.v1.GetPayoutResponse. * Use `create(GetPayoutResponseSchema)` to create a new message. */ declare const GetPayoutResponseSchema: GenMessage; /** * UpcomingPayoutAsset is what a vault's next payout run would do with one * asset, sized from the vault's balance now. Amounts are in base units of 18 * decimals. * * @generated from message swap.quickswap.v1.UpcomingPayoutAsset */ type UpcomingPayoutAsset = Message<"swap.quickswap.v1.UpcomingPayoutAsset"> & { /** * Asset, as an AssetConfig.ledger_id from * GET /v1/chain/deposit-withdraw/config. * * @generated from field: uint32 asset_id = 1; */ assetId: number; /** * Destination chain identifier; zero when the rule has no destination for * the asset. * * @generated from field: uint64 destination_chain_id = 2; */ destinationChainId: bigint; /** * Canonical destination address; empty when the rule has no destination * for the asset. * * @generated from field: string destination_address = 3; */ destinationAddress: string; /** * The vault's available balance of the asset now. * * @generated from field: swap.quickswap.v1.TokenAmount available = 4; */ available?: TokenAmount | undefined; /** * What the run would pay: the available balance up to the rule's per-run * ceiling, rounded down to whole units of the destination network, or zero * when it holds. * * @generated from field: swap.quickswap.v1.TokenAmount payable = 5; */ payable?: TokenAmount | undefined; /** * What would stay in the vault: available minus payable. * * @generated from field: swap.quickswap.v1.TokenAmount held_back = 6; */ heldBack?: TokenAmount | undefined; /** * Why held_back stays, or why nothing pays: below_minimum, * price_unavailable, no_destination (the rule pays no destination for the * asset), destination_cooling_down (the destination was added to the * vault's external withdraw whitelist less than 24 hours ago; see * payable_from), above_max (the balance above the per-run ceiling stays) * or dust (less than one whole unit of the destination network stays); * empty when the whole balance pays. * * @generated from field: string hold_reason = 7; */ holdReason: string; /** * The least one payout of the asset pays: the destination's minimum, or * the least a withdrawal on its network pays now when that is higher. * Unset when the rule has no destination for the asset. * * @generated from field: swap.quickswap.v1.TokenAmount minimum = 8; */ minimum?: TokenAmount | undefined; /** * USD value of what the asset would pay before its minimums, at the * current price as of priced_at; unset when no current price values it or * the rule has no destination for it. * * @generated from field: swap.quickswap.v1.TokenAmount value_usd = 9; */ valueUsd?: TokenAmount | undefined; /** * When the price behind value_usd was observed; unset with it. * * @generated from field: google.protobuf.Timestamp priced_at = 10; */ pricedAt?: Timestamp | undefined; /** * The network fee a payout to the destination is expected to be charged, * from the network's latest sampled fee: an estimate, not the fee charged * (PayoutStep.charged_network_fee). It is taken out of the payout. Unset * when the rule has no destination for the asset or the fee is not known * now. * * @generated from field: swap.quickswap.v1.TokenAmount estimated_network_fee = 11; */ estimatedNetworkFee?: TokenAmount | undefined; /** * When estimated_network_fee was sampled; unset with it. * * @generated from field: google.protobuf.Timestamp estimated_network_fee_sampled_at = 12; */ estimatedNetworkFeeSampledAt?: Timestamp | undefined; /** * Set only while the destination is cooling down (hold_reason * destination_cooling_down): when it can be paid, 24 hours after it was * added to the vault's external withdraw whitelist. Unset with that hold * reason when the time is not known yet. * * @generated from field: google.protobuf.Timestamp payable_from = 13; */ payableFrom?: Timestamp | undefined; }; /** * Describes the message swap.quickswap.v1.UpcomingPayoutAsset. * Use `create(UpcomingPayoutAssetSchema)` to create a new message. */ declare const UpcomingPayoutAssetSchema: GenMessage; /** * UpcomingPayout previews one vault's next payout run from its balances now. * It plans exactly as the run does; balances, prices and fees can change * before the run starts. * * @generated from message swap.quickswap.v1.UpcomingPayout */ type UpcomingPayout = Message<"swap.quickswap.v1.UpcomingPayout"> & { /** * Public sub-account ID of the vault. * * @generated from field: fixed64 vault_account_id = 1; */ vaultAccountId: bigint; /** * Whether the next run would pay. * * @generated from field: chain.withdraw.v1.AutoWithdrawPreviewStatus status = 2; */ status: AutoWithdrawPreviewStatus; /** * When the next run starts: its UTC slot, or, while a due slot waits to * start, that slot. For an hourly rule, the next hourly check. Unset when * the vault has no rule or the rule is paused. * * @generated from field: google.protobuf.Timestamp next_run_at = 3; */ nextRunAt?: Timestamp | undefined; /** * The rule's latest version; zero when the vault has no rule. * * @generated from field: uint32 rule_version = 4; */ ruleVersion: number; /** * Set when the rule paused itself; a rule paused by a member has none. * * @generated from field: chain.withdraw.v1.AutoWithdrawPause pause = 5; */ pause?: AutoWithdrawPause | undefined; /** * The rule's least USD value of one payout, in base units of 18 decimals; * unset when the vault has no rule or the rule has no USD minimum. * * @generated from field: swap.quickswap.v1.TokenAmount min_usd_value = 6; */ minUsdValue?: TokenAmount | undefined; /** * One entry per destination of the rule, then per other asset with a * positive balance, in asset_id order. Empty when the vault has no rule or * the rule is paused. * * @generated from field: repeated swap.quickswap.v1.UpcomingPayoutAsset assets = 7; */ assets: UpcomingPayoutAsset[]; /** * When the balances, prices and fees this preview used were read. * * @generated from field: google.protobuf.Timestamp computed_at = 8; */ computedAt?: Timestamp | undefined; }; /** * Describes the message swap.quickswap.v1.UpcomingPayout. * Use `create(UpcomingPayoutSchema)` to create a new message. */ declare const UpcomingPayoutSchema: GenMessage; /** * ListUpcomingPayoutsRequest previews the next payout run of the broker's * vaults. * * @generated from message swap.quickswap.v1.ListUpcomingPayoutsRequest */ type ListUpcomingPayoutsRequest = Message<"swap.quickswap.v1.ListUpcomingPayoutsRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Public vault sub-account ID. Omit to include every vault, including * disabled affiliates. A root account or another broker's vault is * NOT_FOUND. * * @generated from field: fixed64 vault_account_id = 2; */ vaultAccountId: bigint; /** * Maximum vaults, default 20, max 200. * * @generated from field: uint32 limit = 3; */ limit: number; /** * Opaque exclusive keyset cursor, bound to the broker and vault filter. * Reuse with the same broker and vault_account_id; limit may change. * * @generated from field: string page_token = 4; */ pageToken: string; }; /** * Describes the message swap.quickswap.v1.ListUpcomingPayoutsRequest. * Use `create(ListUpcomingPayoutsRequestSchema)` to create a new message. */ declare const ListUpcomingPayoutsRequestSchema: GenMessage; /** * ListUpcomingPayoutsResponse lists vaults in ascending account creation-ID * order, as ListVaultBalances does. A vault whose preview cannot be read * fails the entire page; it is never shown as having nothing to pay. * * @generated from message swap.quickswap.v1.ListUpcomingPayoutsResponse */ type ListUpcomingPayoutsResponse = Message<"swap.quickswap.v1.ListUpcomingPayoutsResponse"> & { /** * One preview per vault, at most limit vaults, vaults without a rule * included. * * @generated from field: repeated swap.quickswap.v1.UpcomingPayout upcoming_payouts = 1; */ upcomingPayouts: UpcomingPayout[]; /** * Opaque exclusive keyset cursor. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message swap.quickswap.v1.ListUpcomingPayoutsResponse. * Use `create(ListUpcomingPayoutsResponseSchema)` to create a new message. */ declare const ListUpcomingPayoutsResponseSchema: GenMessage; /** * PayoutRuleDestination pays one asset of a vault, in kind, to one address. * Amounts are in base units of 18 decimals. * * @generated from message swap.quickswap.v1.PayoutRuleDestination */ type PayoutRuleDestination = Message<"swap.quickswap.v1.PayoutRuleDestination"> & { /** * Asset paid, as an AssetConfig.ledger_id from * GET /v1/chain/deposit-withdraw/config. * * @generated from field: uint32 asset_id = 1; */ assetId: number; /** * Destination chain identifier. * * @generated from field: uint64 destination_chain_id = 2; */ destinationChainId: bigint; /** * Canonical destination address. * * @generated from field: string destination_address = 3; */ destinationAddress: string; /** * A run pays the asset only when the payable amount reaches this minimum. * * @generated from field: swap.quickswap.v1.TokenAmount min_amount = 4; */ minAmount?: TokenAmount | undefined; /** * The most one run pays the asset; the rest stays in the vault. * * @generated from field: swap.quickswap.v1.TokenAmount max_amount = 5; */ maxAmount?: TokenAmount | undefined; /** * The least one payout to this destination can pay now: the network's * withdrawal minimum, and more than its current network fee. It follows * the network fee. Unset when the network or its fee is not known now. * * @generated from field: swap.quickswap.v1.TokenAmount min_floor = 6; */ minFloor?: TokenAmount | undefined; /** * The network fee a payout to this destination is expected to be charged, * from the network's latest sampled fee: an estimate, not the fee charged * (PayoutStep.charged_network_fee). Unset when it is not known now. * * @generated from field: swap.quickswap.v1.TokenAmount estimated_network_fee = 7; */ estimatedNetworkFee?: TokenAmount | undefined; /** * When estimated_network_fee was sampled; unset with it. * * @generated from field: google.protobuf.Timestamp estimated_network_fee_sampled_at = 8; */ estimatedNetworkFeeSampledAt?: Timestamp | undefined; }; /** * Describes the message swap.quickswap.v1.PayoutRuleDestination. * Use `create(PayoutRuleDestinationSchema)` to create a new message. */ declare const PayoutRuleDestinationSchema: GenMessage; /** * AssetWithoutDestination is an asset a vault holds or was ever credited * in, which its rule pays no destination for, so no run pays it out. * * @generated from message swap.quickswap.v1.AssetWithoutDestination */ type AssetWithoutDestination = Message<"swap.quickswap.v1.AssetWithoutDestination"> & { /** * Asset, as an AssetConfig.ledger_id from * GET /v1/chain/deposit-withdraw/config. * * @generated from field: uint32 asset_id = 1; */ assetId: number; /** * The vault's settled balance of the asset now, as ListVaultBalances * reports it, in base units of 18 decimals; zero when everything it was * credited has left the vault. * * @generated from field: swap.quickswap.v1.TokenAmount balance = 2; */ balance?: TokenAmount | undefined; }; /** * Describes the message swap.quickswap.v1.AssetWithoutDestination. * Use `create(AssetWithoutDestinationSchema)` to create a new message. */ declare const AssetWithoutDestinationSchema: GenMessage; /** * VaultPayoutRule is one broker vault's payout rule and the assets it leaves * in the vault. * * @generated from message swap.quickswap.v1.VaultPayoutRule */ type VaultPayoutRule = Message<"swap.quickswap.v1.VaultPayoutRule"> & { /** * Public sub-account ID of the vault. * * @generated from field: fixed64 vault_account_id = 1; */ vaultAccountId: bigint; /** * The rule's latest version; zero when the vault has no rule, and every * other rule field is then unset. * * @generated from field: uint32 rule_version = 2; */ ruleVersion: number; /** * Whether the rule runs: it runs only while enabled and without a pause. * * @generated from field: bool enabled = 3; */ enabled: boolean; /** * When the rule runs. * * @generated from field: chain.withdraw.v1.AutoWithdrawSchedule schedule = 4; */ schedule?: AutoWithdrawSchedule | undefined; /** * One destination per paid asset, in asset_id order. * * @generated from field: repeated swap.quickswap.v1.PayoutRuleDestination destinations = 5; */ destinations: PayoutRuleDestination[]; /** * Set when the rule paused itself; an Owner or Finance member resumes it. * * @generated from field: chain.withdraw.v1.AutoWithdrawPause pause = 6; */ pause?: AutoWithdrawPause | undefined; /** * Least USD value one payout of the rule pays, in base units of 18 * decimals; unset when the rule has no USD minimum. * * @generated from field: swap.quickswap.v1.TokenAmount min_usd_value = 7; */ minUsdValue?: TokenAmount | undefined; /** * When the rule's latest version was set. * * @generated from field: google.protobuf.Timestamp updated_at = 8; */ updatedAt?: Timestamp | undefined; /** * Every asset the vault holds or was ever credited in that the rule pays * no destination for, in asset_id order; every such asset when the vault * has no rule. * * @generated from field: repeated swap.quickswap.v1.AssetWithoutDestination assets_without_destination = 9; */ assetsWithoutDestination: AssetWithoutDestination[]; }; /** * Describes the message swap.quickswap.v1.VaultPayoutRule. * Use `create(VaultPayoutRuleSchema)` to create a new message. */ declare const VaultPayoutRuleSchema: GenMessage; /** * ListVaultPayoutRulesRequest reads the payout rules of the broker's vaults. * * @generated from message swap.quickswap.v1.ListVaultPayoutRulesRequest */ type ListVaultPayoutRulesRequest = Message<"swap.quickswap.v1.ListVaultPayoutRulesRequest"> & { /** * Broker name. A broker API key may name only its own broker. * * @generated from field: string broker = 1; */ broker: string; /** * Public vault sub-account ID. Omit to include every vault, including * disabled affiliates. A root account or another broker's vault is * NOT_FOUND. * * @generated from field: fixed64 vault_account_id = 2; */ vaultAccountId: bigint; /** * Maximum vaults, default 20, max 200. * * @generated from field: uint32 limit = 3; */ limit: number; /** * Opaque exclusive keyset cursor, bound to the broker and vault filter. * Reuse with the same broker and vault_account_id; limit may change. * * @generated from field: string page_token = 4; */ pageToken: string; }; /** * Describes the message swap.quickswap.v1.ListVaultPayoutRulesRequest. * Use `create(ListVaultPayoutRulesRequestSchema)` to create a new message. */ declare const ListVaultPayoutRulesRequestSchema: GenMessage; /** * ListVaultPayoutRulesResponse lists vaults in ascending account * creation-ID order, as ListVaultBalances does. A failed read fails the * entire page. * * @generated from message swap.quickswap.v1.ListVaultPayoutRulesResponse */ type ListVaultPayoutRulesResponse = Message<"swap.quickswap.v1.ListVaultPayoutRulesResponse"> & { /** * One entry per vault, at most limit vaults, vaults without a rule * included. * * @generated from field: repeated swap.quickswap.v1.VaultPayoutRule rules = 1; */ rules: VaultPayoutRule[]; /** * Opaque exclusive keyset cursor. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message swap.quickswap.v1.ListVaultPayoutRulesResponse. * Use `create(ListVaultPayoutRulesResponseSchema)` to create a new message. */ declare const ListVaultPayoutRulesResponseSchema: GenMessage; /** * BrokerRole is a person's role in a broker org. A broker has exactly one * Owner. * * @generated from enum swap.quickswap.v1.BrokerRole */ declare enum BrokerRole { /** * No role; rejected in requests and never returned. * * @generated from enum value: BROKER_ROLE_UNSPECIFIED = 0; */ BROKER_ROLE_UNSPECIFIED = 0, /** * Everything, including withdrawals, payout settings and transferring * ownership. Exactly one per broker. * * @generated from enum value: OWNER = 1; */ OWNER = 1, /** * Everything except withdrawals, payout settings, changing the Owner and * transferring ownership: only the Owner and Finance withdraw or change * payout settings. * * @generated from enum value: ADMIN = 2; */ ADMIN = 2, /** * Internal transfers, withdrawals and payout settings. * * @generated from enum value: FINANCE = 3; */ FINANCE = 3, /** * Creates affiliate vaults and views balances. * * @generated from enum value: AFFILIATE_MANAGER = 4; */ AFFILIATE_MANAGER = 4, /** * Read-only. * * @generated from enum value: VIEWER = 5; */ VIEWER = 5 } /** * Describes the enum swap.quickswap.v1.BrokerRole. */ declare const BrokerRoleSchema: GenEnum; /** * VaultStatus says whether an affiliate vault can be named by new QuickSwaps. * * @generated from enum swap.quickswap.v1.VaultStatus */ declare enum VaultStatus { /** * No status; rejected in requests and never returned. * * @generated from enum value: VAULT_STATUS_UNSPECIFIED = 0; */ VAULT_STATUS_UNSPECIFIED = 0, /** * New QuickSwaps can credit the vault. * * @generated from enum value: VAULT_ACTIVE = 1; */ VAULT_ACTIVE = 1, /** * New QuickSwaps naming the vault are refused with AFFILIATE_VAULT_UNKNOWN. * QuickSwaps already created still credit it. * * @generated from enum value: VAULT_DISABLED = 2; */ VAULT_DISABLED = 2 } /** * Describes the enum swap.quickswap.v1.VaultStatus. */ declare const VaultStatusSchema: GenEnum; /** * FeeTotalsGrouping is how GetFeeTotals groups the fees. * * @generated from enum swap.quickswap.v1.FeeTotalsGrouping */ declare enum FeeTotalsGrouping { /** * No grouping; rejected. * * @generated from enum value: GROUPING_UNSPECIFIED = 0; */ GROUPING_UNSPECIFIED = 0, /** * By credited vault. * * @generated from enum value: BY_VAULT = 1; */ BY_VAULT = 1, /** * By UTC day the fee was charged. * * @generated from enum value: BY_DAY = 2; */ BY_DAY = 2, /** * By UTC month the fee was charged. * * @generated from enum value: BY_MONTH = 3; */ BY_MONTH = 3 } /** * Describes the enum swap.quickswap.v1.FeeTotalsGrouping. */ declare const FeeTotalsGroupingSchema: GenEnum; /** * StatsPeriod is the UTC calendar period GetBrokerStats groups by. * * @generated from enum swap.quickswap.v1.StatsPeriod */ declare enum StatsPeriod { /** * No period; rejected. * * @generated from enum value: PERIOD_UNSPECIFIED = 0; */ PERIOD_UNSPECIFIED = 0, /** * A UTC day. * * @generated from enum value: DAY = 1; */ DAY = 1, /** * A UTC month. * * @generated from enum value: MONTH = 2; */ MONTH = 2 } /** * Describes the enum swap.quickswap.v1.StatsPeriod. */ declare const StatsPeriodSchema: GenEnum; /** * PayoutStatus is what one payout run of a broker vault came to, from the * run and the outcome of each of its assets. * * @generated from enum swap.quickswap.v1.PayoutStatus */ declare enum PayoutStatus { /** * Never returned; rejected in filters. * * @generated from enum value: PAYOUT_STATUS_UNSPECIFIED = 0; */ PAYOUT_STATUS_UNSPECIFIED = 0, /** * The run paid: every asset with a payable amount was withdrawn and its * withdrawal completed on its destination network. * * @generated from enum value: PAYOUT_PAID = 1; */ PAYOUT_PAID = 1, /** * Some assets were paid and at least one failed; reason is the first * failed asset's, and each step shows its own outcome. * * @generated from enum value: PAYOUT_PARTIALLY_PAID = 2; */ PAYOUT_PARTIALLY_PAID = 2, /** * The run is under way; stage says where. * * @generated from enum value: PAYOUT_IN_PROGRESS = 3; */ PAYOUT_IN_PROGRESS = 3, /** * Nothing was paid, and the balance stays in the vault for the next run. * reason is nothing_to_pay (no asset reached its minimum), below_minimum * (an amount was below the least a withdrawal on its network pays), * price_unavailable (the rule has a USD minimum and no current price * valued an asset) or destination_cooling_down (the destination was added * to the vault's external withdraw whitelist less than 24 hours ago). Each * step carries the balance evaluated, its value and the minimum it was * held to. * * @generated from enum value: PAYOUT_ROLLED_OVER = 4; */ PAYOUT_ROLLED_OVER = 4, /** * Nothing was paid because the rule stopped paying, and the balance stays * in the vault. reason is rule_superseded (the rule was paused, changed or * replaced before the run paid), or destination_not_whitelisted, * destination_invalid or authority_revoked, with which the rule paused * itself (see VaultPayoutRule.pause); an Owner or Finance member resumes * it. * * @generated from enum value: PAYOUT_HELD = 5; */ PAYOUT_HELD = 5, /** * Nothing was paid, and at least one asset's payout failed; reason is the * first failure's: withdrawal_refused (refused before any funds left the * vault), gateway_capacity_insufficient (the funds stay for a later run), * withdrawal_released (released before it was sent; nothing left the * vault) or withdrawal_failed (the withdrawal ended without paying, before * or after it reached the destination network). Where the funds of a * withdrawal_failed payout are now is not shown yet. The step's tx_hash, * when set, is its destination-network transaction. * * @generated from enum value: PAYOUT_FAILED = 6; */ PAYOUT_FAILED = 6 } /** * Describes the enum swap.quickswap.v1.PayoutStatus. */ declare const PayoutStatusSchema: GenEnum; /** * PayoutStage is where an in-progress payout run stands. * * @generated from enum swap.quickswap.v1.PayoutStage */ declare enum PayoutStage { /** * Not in progress. * * @generated from enum value: PAYOUT_STAGE_UNSPECIFIED = 0; */ PAYOUT_STAGE_UNSPECIFIED = 0, /** * Reading the vault's balances to size the payouts. * * @generated from enum value: STAGE_PLANNING = 1; */ STAGE_PLANNING = 1, /** * A payout is waiting to be requested or being requested. * * @generated from enum value: STAGE_REQUESTING = 2; */ STAGE_REQUESTING = 2, /** * Every payout due was accepted; no destination-network transaction is * known yet. * * @generated from enum value: STAGE_PROCESSING = 3; */ STAGE_PROCESSING = 3, /** * A destination-network transaction is known (PayoutStep.tx_hash); the run * waits for its withdrawals to complete. * * @generated from enum value: STAGE_BROADCAST = 4; */ STAGE_BROADCAST = 4 } /** * Describes the enum swap.quickswap.v1.PayoutStage. */ declare const PayoutStageSchema: GenEnum; /** * PayoutStepState is where one asset's payout in a run stands. * * @generated from enum swap.quickswap.v1.PayoutStepState */ declare enum PayoutStepState { /** * Never returned. * * @generated from enum value: PAYOUT_STEP_STATE_UNSPECIFIED = 0; */ PAYOUT_STEP_STATE_UNSPECIFIED = 0, /** * Planned; not yet requested. * * @generated from enum value: PAYOUT_STEP_PENDING = 1; */ PAYOUT_STEP_PENDING = 1, /** * Being requested. * * @generated from enum value: PAYOUT_STEP_REQUESTING = 2; */ PAYOUT_STEP_REQUESTING = 2, /** * The withdrawal was accepted and waits to complete on its destination * network. * * @generated from enum value: PAYOUT_STEP_SUBMITTED = 3; */ PAYOUT_STEP_SUBMITTED = 3, /** * The withdrawal completed on its destination network. * * @generated from enum value: PAYOUT_STEP_COMPLETED = 4; */ PAYOUT_STEP_COMPLETED = 4, /** * The payout failed; reason says why (see PAYOUT_FAILED). * * @generated from enum value: PAYOUT_STEP_FAILED = 5; */ PAYOUT_STEP_FAILED = 5, /** * Nothing was paid for this asset in this run; reason says why, and the * balance stays in the vault. * * @generated from enum value: PAYOUT_STEP_SKIPPED = 6; */ PAYOUT_STEP_SKIPPED = 6 } /** * Describes the enum swap.quickswap.v1.PayoutStepState. */ declare const PayoutStepStateSchema: GenEnum; /** * QuickSwapBrokerService administers a broker org, over ConnectRPC and REST. * Every request names its broker. The caller is either the broker's API key, * sent as a bearer token (see QuickSwapService), or a member's interactive * session token; a person who is not a member of the broker gets NOT_FOUND / * BROKER_NOT_FOUND. Each RPC maps to one broker action: * * | Action | Owner | Admin | Finance | Affiliate manager | Viewer | API key | * | --- | --- | --- | --- | --- | --- | --- | * | Read (GetBroker, ListKeys, ListVaults, GetVault, ListMembers, ListQuickSwaps, GetQuickSwap, GetFeeTotals, GetBrokerStats, ListVaultBalances, ListPayouts, GetPayout, ListUpcomingPayouts, ListVaultPayoutRules) | yes | yes | yes | yes | yes | yes, except ListMembers | * | Create vaults (CreateAffiliateVault, SetVaultStatus) | yes | yes | no | yes | no | yes | * | Manage keys (CreateKey, RotateKey, RevokeKey) | yes | yes | no | no | no | RotateKey of itself only | * | Manage members (InviteMember, SetMemberRole, RemoveMember) | yes | yes, never the Owner | no | no | no | no | * | Transfer ownership | yes | no | no | no | no | no | * * A member managing keys or members must also send a fresh step-up proof in * the X-Auth-Step-Up header, obtained by completing an MFA challenge for * fresh step-up; each proof authorizes one change. Reads, vaults and a key * rotating itself need none. A denied action fails with PERMISSION_DENIED / * ACTION_DENIED, a missing or used proof with PERMISSION_DENIED / * STEP_UP_REQUIRED. * * REST errors are application/problem+json (see ErrorDetail) with the HTTP * statuses of QuickSwapService. * * @generated from service swap.quickswap.v1.QuickSwapBrokerService */ declare const QuickSwapBrokerService: GenService<{ /** * GetBroker returns the broker, its limits and current usage of them, and * the caller's role. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.GetBroker */ getBroker: { methodKind: "unary"; input: typeof GetBrokerRequestSchema; output: typeof GetBrokerResponseSchema; }; /** * ListVaultBalances reads current balances for this broker's own vaults. * All broker roles and the broker's API keys can read, without step-up. * Errors: NOT_FOUND for an unknown broker or vault; UNAVAILABLE when a * balance cannot be read. No partial page is returned on a read failure. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.ListVaultBalances */ listVaultBalances: { methodKind: "unary"; input: typeof ListVaultBalancesRequestSchema; output: typeof ListVaultBalancesResponseSchema; }; /** * ListMyBrokers lists the brokers the caller is a member of and the * invites addressed to the caller. Session token only. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.ListMyBrokers */ listMyBrokers: { methodKind: "unary"; input: typeof ListMyBrokersRequestSchema; output: typeof ListMyBrokersResponseSchema; }; /** * RespondToInvite accepts or declines a pending invite addressed to the * caller. Session token only; no step-up proof is needed. * * Errors: * - NOT_FOUND: INVITE_NOT_FOUND. * - ALREADY_EXISTS: ALREADY_MEMBER. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.RespondToInvite */ respondToInvite: { methodKind: "unary"; input: typeof RespondToInviteRequestSchema; output: typeof RespondToInviteResponseSchema; }; /** * ListMembers lists the broker's members and pending invites. Session * token only. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND. * - PERMISSION_DENIED: ACTION_DENIED. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.ListMembers */ listMembers: { methodKind: "unary"; input: typeof ListMembersRequestSchema; output: typeof ListMembersResponseSchema; }; /** * InviteMember invites a person with any role but OWNER; the person * accepts with their own login. Inviting again replaces the pending invite. * Session token and step-up proof only. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND, or MEMBER_NOT_FOUND when the account does * not exist. * - PERMISSION_DENIED: ACTION_DENIED or STEP_UP_REQUIRED. * - ALREADY_EXISTS: ALREADY_MEMBER. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.InviteMember */ inviteMember: { methodKind: "unary"; input: typeof InviteMemberRequestSchema; output: typeof InviteMemberResponseSchema; }; /** * SetMemberRole changes a member's role to any role but OWNER. The Owner's * role cannot be changed; transfer ownership instead. Session token and * step-up proof only. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or MEMBER_NOT_FOUND. * - PERMISSION_DENIED: ACTION_DENIED or STEP_UP_REQUIRED. * - FAILED_PRECONDITION: OWNER_IMMUTABLE. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.SetMemberRole */ setMemberRole: { methodKind: "unary"; input: typeof SetMemberRoleRequestSchema; output: typeof SetMemberRoleResponseSchema; }; /** * RemoveMember removes a member, ending their access immediately, or * cancels the person's pending invite. The Owner cannot be removed. Session * token and step-up proof only. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or MEMBER_NOT_FOUND. * - PERMISSION_DENIED: ACTION_DENIED or STEP_UP_REQUIRED. * - FAILED_PRECONDITION: OWNER_IMMUTABLE. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.RemoveMember */ removeMember: { methodKind: "unary"; input: typeof RemoveMemberRequestSchema; output: typeof RemoveMemberResponseSchema; }; /** * TransferOwnership makes another member the Owner; the caller, the * current Owner, becomes an Admin in the same change. Session token and * step-up proof only. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or MEMBER_NOT_FOUND. * - PERMISSION_DENIED: ACTION_DENIED or STEP_UP_REQUIRED. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.TransferOwnership */ transferOwnership: { methodKind: "unary"; input: typeof TransferOwnershipRequestSchema; output: typeof TransferOwnershipResponseSchema; }; /** * ListKeys lists the broker's API keys, without secrets, a page at a time. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND. * - INVALID_ARGUMENT: a page_token from another broker or malformed. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.ListKeys */ listKeys: { methodKind: "unary"; input: typeof ListKeysRequestSchema; output: typeof ListKeysResponseSchema; }; /** * CreateKey creates an API key. A broker has at most two working keys. * Session token and step-up proof only. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND. * - PERMISSION_DENIED: ACTION_DENIED or STEP_UP_REQUIRED. * - FAILED_PRECONDITION: KEY_LIMIT. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.CreateKey */ createKey: { methodKind: "unary"; input: typeof CreateKeyRequestSchema; output: typeof CreateKeyResponseSchema; }; /** * RotateKey replaces a working key by a new one. The old key keeps working * until the overlap ends, then only the new key does. A broker API key may * rotate itself without a step-up proof; a member needs a session token and * step-up proof. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or KEY_NOT_FOUND. * - PERMISSION_DENIED: ACTION_DENIED or STEP_UP_REQUIRED. * - FAILED_PRECONDITION: KEY_LIMIT, when the broker would have more than * two working keys during the overlap. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.RotateKey */ rotateKey: { methodKind: "unary"; input: typeof RotateKeyRequestSchema; output: typeof RotateKeyResponseSchema; }; /** * RevokeKey revokes a key immediately. The broker's last key that works * without an expiry cannot be revoked. Session token and step-up proof * only. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or KEY_NOT_FOUND. * - PERMISSION_DENIED: ACTION_DENIED or STEP_UP_REQUIRED. * - FAILED_PRECONDITION: LAST_KEY. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.RevokeKey */ revokeKey: { methodKind: "unary"; input: typeof RevokeKeyRequestSchema; output: typeof RevokeKeyResponseSchema; }; /** * CreateAffiliateVault creates, or returns, the affiliate vault with label. * Create a vault before the first QuickSwap that credits it: a QuickSwap * naming a vault that does not exist yet is refused. Concurrent and * repeated requests with the same label return the same vault. No step-up * proof is needed. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND. * - PERMISSION_DENIED: ACTION_DENIED. * - RESOURCE_EXHAUSTED: BROKER_LIMIT, the broker's vault limit. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.CreateAffiliateVault */ createAffiliateVault: { methodKind: "unary"; input: typeof CreateAffiliateVaultRequestSchema; output: typeof CreateAffiliateVaultResponseSchema; }; /** * ListVaults lists the broker's affiliate vaults. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND. * - INVALID_ARGUMENT: a page_token from another broker or malformed. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.ListVaults */ listVaults: { methodKind: "unary"; input: typeof ListVaultsRequestSchema; output: typeof ListVaultsResponseSchema; }; /** * GetVault returns one affiliate vault. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or VAULT_NOT_FOUND. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.GetVault */ getVault: { methodKind: "unary"; input: typeof GetVaultRequestSchema; output: typeof GetVaultResponseSchema; }; /** * SetVaultStatus enables or disables an affiliate vault for new * QuickSwaps. No step-up proof is needed. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or VAULT_NOT_FOUND. * - PERMISSION_DENIED: ACTION_DENIED. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.SetVaultStatus */ setVaultStatus: { methodKind: "unary"; input: typeof SetVaultStatusRequestSchema; output: typeof SetVaultStatusResponseSchema; }; /** * ListQuickSwaps lists the broker's QuickSwaps, newest first, filtered by * vault, status and creation time. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND. * - INVALID_ARGUMENT: a page_token from another broker, other filters or * malformed. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.ListQuickSwaps */ listQuickSwaps: { methodKind: "unary"; input: typeof ListQuickSwapsRequestSchema; output: typeof ListQuickSwapsResponseSchema; }; /** * GetQuickSwap returns the full detail of one of the broker's QuickSwaps, * including its addresses, quote, progress, requested and charged fees. * Every broker member role can read it with a session token. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or SWAP_NOT_FOUND, including another broker's swap. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.GetQuickSwap */ getQuickSwap: { methodKind: "unary"; input: typeof QuickSwapBrokerServiceGetQuickSwapRequestSchema; output: typeof QuickSwapBrokerServiceGetQuickSwapResponseSchema; }; /** * GetFeeTotals totals the broker and affiliate fees charged to the * broker's QuickSwaps in a window, per asset, by vault, day or month. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.GetFeeTotals */ getFeeTotals: { methodKind: "unary"; input: typeof GetFeeTotalsRequestSchema; output: typeof GetFeeTotalsResponseSchema; }; /** * GetBrokerStats reads the broker's QuickSwap activity in a window, per UTC * day or month: QuickSwaps created by status, deposits credited and * payouts delivered per asset, and the service, broker, affiliate and * referral fees charged per asset. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND. * - INTERNAL: STATS_INCOMPLETE, with the swap_id of a QuickSwap whose * records the stats cannot read. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.GetBrokerStats */ getBrokerStats: { methodKind: "unary"; input: typeof GetBrokerStatsRequestSchema; output: typeof GetBrokerStatsResponseSchema; }; /** * ListPayouts lists the payout runs of the broker's vaults, newest first, * filtered by vault, status and scheduled slot. Every broker role and the * broker's API keys can read, without step-up. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND, or VAULT_NOT_FOUND for a vault that is * not the broker's. * - INVALID_ARGUMENT: a page_token from another broker, other filters or * malformed. * - UNAVAILABLE: the payouts cannot be read; retry the same request. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.ListPayouts */ listPayouts: { methodKind: "unary"; input: typeof ListPayoutsRequestSchema; output: typeof ListPayoutsResponseSchema; }; /** * GetPayout reads one payout run of the broker's vaults, for a detail view * or a link from a ledger entry. Every broker role and the broker's API * keys can read, without step-up. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND, or PAYOUT_NOT_FOUND, including a run of * another broker's vault. * - UNAVAILABLE: the payout cannot be read; retry the same request. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.GetPayout */ getPayout: { methodKind: "unary"; input: typeof GetPayoutRequestSchema; output: typeof GetPayoutResponseSchema; }; /** * ListUpcomingPayouts previews the next payout run of each of the * broker's vaults from its balances now: when it starts, whether it would * pay, and per asset what it would pay, what would stay and why, and the * expected network fee. Every broker role and the broker's API keys can * read, without step-up. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or VAULT_NOT_FOUND. * - INVALID_ARGUMENT: a page_token from another broker or vault filter, or * malformed. * - UNAVAILABLE: a preview cannot be read; no partial page is returned. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.ListUpcomingPayouts */ listUpcomingPayouts: { methodKind: "unary"; input: typeof ListUpcomingPayoutsRequestSchema; output: typeof ListUpcomingPayoutsResponseSchema; }; /** * ListVaultPayoutRules reads the payout rule of each of the broker's * vaults, and the assets each vault holds or was credited in that its rule * pays no destination for. Every broker role and the broker's API keys can * read, without step-up; only Owner and Finance members change rules. * * Errors: * - NOT_FOUND: BROKER_NOT_FOUND or VAULT_NOT_FOUND. * - INVALID_ARGUMENT: a page_token from another broker or vault filter, or * malformed. * - UNAVAILABLE: a rule or balance cannot be read; no partial page is * returned. * * @generated from rpc swap.quickswap.v1.QuickSwapBrokerService.ListVaultPayoutRules */ listVaultPayoutRules: { methodKind: "unary"; input: typeof ListVaultPayoutRulesRequestSchema; output: typeof ListVaultPayoutRulesResponseSchema; }; }>; //#endregion export { AffiliateVault, AffiliateVaultSchema, AssetVolume, AssetVolumeSchema, AssetWithoutDestination, AssetWithoutDestinationSchema, Broker, BrokerKey, BrokerKeySchema, BrokerRole, BrokerRoleSchema, BrokerSchema, BrokerStatsPeriod, BrokerStatsPeriodSchema, BrokerUsage, BrokerUsageSchema, CreateAffiliateVaultRequest, CreateAffiliateVaultRequestSchema, CreateAffiliateVaultResponse, CreateAffiliateVaultResponseSchema, CreateKeyRequest, CreateKeyRequestSchema, CreateKeyResponse, CreateKeyResponseSchema, FeeSplit, FeeSplitSchema, FeeTotal, FeeTotalSchema, FeeTotalsGrouping, FeeTotalsGroupingSchema, GetBrokerRequest, GetBrokerRequestSchema, GetBrokerResponse, GetBrokerResponseSchema, GetBrokerStatsRequest, GetBrokerStatsRequestSchema, GetBrokerStatsResponse, GetBrokerStatsResponseSchema, GetFeeTotalsRequest, GetFeeTotalsRequestSchema, GetFeeTotalsResponse, GetFeeTotalsResponseSchema, GetPayoutRequest, GetPayoutRequestSchema, GetPayoutResponse, GetPayoutResponseSchema, GetVaultRequest, GetVaultRequestSchema, GetVaultResponse, GetVaultResponseSchema, Invite, InviteMemberRequest, InviteMemberRequestSchema, InviteMemberResponse, InviteMemberResponseSchema, InviteSchema, ListKeysRequest, ListKeysRequestSchema, ListKeysResponse, ListKeysResponseSchema, ListMembersRequest, ListMembersRequestSchema, ListMembersResponse, ListMembersResponseSchema, ListMyBrokersRequest, ListMyBrokersRequestSchema, ListMyBrokersResponse, ListMyBrokersResponseSchema, ListPayoutsRequest, ListPayoutsRequestSchema, ListPayoutsResponse, ListPayoutsResponseSchema, ListQuickSwapsRequest, ListQuickSwapsRequestSchema, ListQuickSwapsResponse, ListQuickSwapsResponseSchema, ListUpcomingPayoutsRequest, ListUpcomingPayoutsRequestSchema, ListUpcomingPayoutsResponse, ListUpcomingPayoutsResponseSchema, ListVaultBalancesRequest, ListVaultBalancesRequestSchema, ListVaultBalancesResponse, ListVaultBalancesResponseSchema, ListVaultPayoutRulesRequest, ListVaultPayoutRulesRequestSchema, ListVaultPayoutRulesResponse, ListVaultPayoutRulesResponseSchema, ListVaultsRequest, ListVaultsRequestSchema, ListVaultsResponse, ListVaultsResponseSchema, Member, MemberSchema, Membership, MembershipSchema, Payout, PayoutRuleDestination, PayoutRuleDestinationSchema, PayoutSchema, PayoutStage, PayoutStageSchema, PayoutStatus, PayoutStatusSchema, PayoutStep, PayoutStepSchema, PayoutStepState, PayoutStepStateSchema, QuickSwapBrokerService, QuickSwapBrokerServiceGetQuickSwapRequest, QuickSwapBrokerServiceGetQuickSwapRequestSchema, QuickSwapBrokerServiceGetQuickSwapResponse, QuickSwapBrokerServiceGetQuickSwapResponseSchema, QuickSwapSummary, QuickSwapSummarySchema, RemoveMemberRequest, RemoveMemberRequestSchema, RemoveMemberResponse, RemoveMemberResponseSchema, RespondToInviteRequest, RespondToInviteRequestSchema, RespondToInviteResponse, RespondToInviteResponseSchema, RevokeKeyRequest, RevokeKeyRequestSchema, RevokeKeyResponse, RevokeKeyResponseSchema, RotateKeyRequest, RotateKeyRequestSchema, RotateKeyResponse, RotateKeyResponseSchema, SetMemberRoleRequest, SetMemberRoleRequestSchema, SetMemberRoleResponse, SetMemberRoleResponseSchema, SetVaultStatusRequest, SetVaultStatusRequestSchema, SetVaultStatusResponse, SetVaultStatusResponseSchema, StatsPeriod, StatsPeriodSchema, StatusCount, StatusCountSchema, TransferOwnershipRequest, TransferOwnershipRequestSchema, TransferOwnershipResponse, TransferOwnershipResponseSchema, UpcomingPayout, UpcomingPayoutAsset, UpcomingPayoutAssetSchema, UpcomingPayoutSchema, VaultAssetBalance, VaultAssetBalanceSchema, VaultBalance, VaultBalanceSchema, VaultPayoutRule, VaultPayoutRuleSchema, VaultStatus, VaultStatusSchema, file_swap_quickswap_v1_quickswap_broker, quickswap_broker_pb_d_exports }; //# sourceMappingURL=quickswap_broker_pb.d.ts.map