ault-sdk-ts 0.0.2-alpha.11 → 0.0.2-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,38 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./params";
3
+ export declare const protobufPackage = "ault.accountx.v1";
4
+ /** GenesisState defines the accountx module's genesis state. */
5
+ export interface GenesisState {
6
+ /** params defines the module parameters at genesis. */
7
+ params: Params | undefined;
8
+ /** labels is the list of all account labels at genesis. */
9
+ labels: AccountLabel[];
10
+ }
11
+ /** AccountLabel defines the label for an account address. */
12
+ export interface AccountLabel {
13
+ /** address is the bech32-encoded address of the account. */
14
+ address: string;
15
+ /** label is the bitwise feature flags for the account. */
16
+ label: number;
17
+ }
18
+ export declare const GenesisState: MessageFns<GenesisState>;
19
+ export declare const AccountLabel: MessageFns<AccountLabel>;
20
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
21
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
22
+ [K in keyof T]?: DeepPartial<T[K]>;
23
+ } : Partial<T>;
24
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
25
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
26
+ [K in keyof P]: Exact<P[K], I[K]>;
27
+ } & {
28
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
29
+ };
30
+ export interface MessageFns<T> {
31
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
32
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
33
+ fromJSON(object: any): T;
34
+ toJSON(message: T): unknown;
35
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
36
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
37
+ }
38
+ export {};
@@ -0,0 +1,32 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Coin } from "../../../cosmos/base/v1beta1/coin";
3
+ export declare const protobufPackage = "ault.accountx.v1";
4
+ /** Params defines the configurable parameters for the accountx module */
5
+ export interface Params {
6
+ /**
7
+ * allowed_fees is the list of accepted fee options for opening an account.
8
+ * Each coin specifies a denom and the required amount.
9
+ * Example: [{ denom: "uusdc", amount: "10000000" }]
10
+ */
11
+ allowedFees: Coin[];
12
+ }
13
+ export declare const Params: MessageFns<Params>;
14
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
15
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
16
+ [K in keyof T]?: DeepPartial<T[K]>;
17
+ } : Partial<T>;
18
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
19
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
20
+ [K in keyof P]: Exact<P[K], I[K]>;
21
+ } & {
22
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
23
+ };
24
+ export interface MessageFns<T> {
25
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
26
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
27
+ fromJSON(object: any): T;
28
+ toJSON(message: T): unknown;
29
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
30
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
31
+ }
32
+ export {};
@@ -0,0 +1,56 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./params";
3
+ export declare const protobufPackage = "ault.accountx.v1";
4
+ /** QueryLabelRequest is the request type for the Query/Label RPC method. */
5
+ export interface QueryLabelRequest {
6
+ /** address is the bech32-encoded address to query the label for. */
7
+ address: string;
8
+ }
9
+ /** QueryLabelResponse is the response type for the Query/Label RPC method. */
10
+ export interface QueryLabelResponse {
11
+ /** label is the bitwise feature flags for the address. */
12
+ label: number;
13
+ }
14
+ /** QueryIsOpenedRequest is the request type for the Query/IsOpened RPC method. */
15
+ export interface QueryIsOpenedRequest {
16
+ /** address is the bech32-encoded address to check. */
17
+ address: string;
18
+ }
19
+ /** QueryIsOpenedResponse is the response type for the Query/IsOpened RPC method. */
20
+ export interface QueryIsOpenedResponse {
21
+ /** opened indicates whether the account has the open flag set. */
22
+ opened: boolean;
23
+ }
24
+ /** QueryParamsRequest is the request type for the Query/Params RPC method. */
25
+ export interface QueryParamsRequest {
26
+ }
27
+ /** QueryParamsResponse is the response type for the Query/Params RPC method. */
28
+ export interface QueryParamsResponse {
29
+ /** params defines the current module parameters. */
30
+ params: Params | undefined;
31
+ }
32
+ export declare const QueryLabelRequest: MessageFns<QueryLabelRequest>;
33
+ export declare const QueryLabelResponse: MessageFns<QueryLabelResponse>;
34
+ export declare const QueryIsOpenedRequest: MessageFns<QueryIsOpenedRequest>;
35
+ export declare const QueryIsOpenedResponse: MessageFns<QueryIsOpenedResponse>;
36
+ export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
37
+ export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
38
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
39
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
40
+ [K in keyof T]?: DeepPartial<T[K]>;
41
+ } : Partial<T>;
42
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
43
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
44
+ [K in keyof P]: Exact<P[K], I[K]>;
45
+ } & {
46
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
47
+ };
48
+ export interface MessageFns<T> {
49
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
50
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
51
+ fromJSON(object: any): T;
52
+ toJSON(message: T): unknown;
53
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
54
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
55
+ }
56
+ export {};
@@ -0,0 +1,52 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./params";
3
+ export declare const protobufPackage = "ault.accountx.v1";
4
+ /** MsgOpenAccount opens an account for fee-free message access. */
5
+ export interface MsgOpenAccount {
6
+ /** sender is the fee payer */
7
+ sender: string;
8
+ /** account is the account to be opened. */
9
+ account: string;
10
+ /**
11
+ * fee_denom is the denomination of the opening fee to pay (must be in
12
+ * allowed_fees)
13
+ */
14
+ feeDenom: string;
15
+ }
16
+ export interface MsgOpenAccountResponse {
17
+ }
18
+ /**
19
+ * MsgUpdateParams is the request type for updating module parameters.
20
+ * Can only be executed via governance proposal.
21
+ */
22
+ export interface MsgUpdateParams {
23
+ /** authority is the address of the governance account */
24
+ authority: string;
25
+ /** params defines the new parameter values to set */
26
+ params: Params | undefined;
27
+ }
28
+ export interface MsgUpdateParamsResponse {
29
+ }
30
+ export declare const MsgOpenAccount: MessageFns<MsgOpenAccount>;
31
+ export declare const MsgOpenAccountResponse: MessageFns<MsgOpenAccountResponse>;
32
+ export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
33
+ export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
34
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
35
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
36
+ [K in keyof T]?: DeepPartial<T[K]>;
37
+ } : Partial<T>;
38
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
39
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
40
+ [K in keyof P]: Exact<P[K], I[K]>;
41
+ } & {
42
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
43
+ };
44
+ export interface MessageFns<T> {
45
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
46
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
47
+ fromJSON(object: any): T;
48
+ toJSON(message: T): unknown;
49
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
50
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
51
+ }
52
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { LicenseStatus, Params, ProposalSnapshot, TransferRecord } from "./license";
2
+ import { LicenseStatus, Params, ProposalSnapshot } from "./license";
3
3
  export declare const protobufPackage = "ault.license.v1";
4
4
  /** GenesisState defines the license module's genesis state */
5
5
  export interface GenesisState {
@@ -40,12 +40,13 @@ export interface GenesisState {
40
40
  totalCapped: bigint;
41
41
  /** proposal_snapshots stores voting power state for active proposals */
42
42
  proposalSnapshots: ProposalSnapshotEntry[];
43
- /** vote_voting_powers stores cached voting power for votes */
44
- voteVotingPowers: VoteVotingPowerEntry[];
45
- /** transfer_records stores license transfer history for snapshot queries */
46
- transferRecords: TransferRecord[];
47
43
  /** owner_active_counts maps owner addresses to their active license counts */
48
44
  ownerActiveCounts: OwnerActiveCount[];
45
+ /**
46
+ * owner_active_count_snapshots maps owner addresses and timestamps to their
47
+ * active license counts at those times
48
+ */
49
+ ownerActiveCountSnapshots: OwnerActiveCountSnapshot[];
49
50
  }
50
51
  /** OwnerCount represents the count of licenses for an owner */
51
52
  export interface OwnerCount {
@@ -68,6 +69,14 @@ export interface OwnerActiveCount {
68
69
  /** count is the number of active licenses owned */
69
70
  count: bigint;
70
71
  }
72
+ export interface OwnerActiveCountSnapshot {
73
+ /** owner is the owner address */
74
+ owner: string;
75
+ /** timestamp is the time to query active license count snapshot at */
76
+ timestamp: Date | undefined;
77
+ /** count is the number of active licenses owned at the given timestamp */
78
+ count: bigint;
79
+ }
71
80
  /** ProposalSnapshotEntry represents a proposal snapshot for genesis export */
72
81
  export interface ProposalSnapshotEntry {
73
82
  /** proposal_id is the governance proposal ID */
@@ -75,15 +84,6 @@ export interface ProposalSnapshotEntry {
75
84
  /** snapshot is the voting power snapshot */
76
85
  snapshot: ProposalSnapshot | undefined;
77
86
  }
78
- /** VoteVotingPowerEntry represents a vote's voting power for genesis export */
79
- export interface VoteVotingPowerEntry {
80
- /** proposal_id is the governance proposal ID */
81
- proposalId: bigint;
82
- /** voter is the voter address */
83
- voter: string;
84
- /** voting_power is the voter's capped voting power at snapshot time */
85
- votingPower: bigint;
86
- }
87
87
  /** GenesisLicense defines a soul-bound token license */
88
88
  export interface GenesisLicense {
89
89
  /** start_id is the unique identifier of the first license */
@@ -116,8 +116,8 @@ export declare const GenesisState: MessageFns<GenesisState>;
116
116
  export declare const OwnerCount: MessageFns<OwnerCount>;
117
117
  export declare const OwnerIndex: MessageFns<OwnerIndex>;
118
118
  export declare const OwnerActiveCount: MessageFns<OwnerActiveCount>;
119
+ export declare const OwnerActiveCountSnapshot: MessageFns<OwnerActiveCountSnapshot>;
119
120
  export declare const ProposalSnapshotEntry: MessageFns<ProposalSnapshotEntry>;
120
- export declare const VoteVotingPowerEntry: MessageFns<VoteVotingPowerEntry>;
121
121
  export declare const GenesisLicense: MessageFns<GenesisLicense>;
122
122
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
123
123
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
@@ -103,17 +103,6 @@ export interface Params {
103
103
  */
104
104
  maxVotingPowerPerAddress: bigint;
105
105
  }
106
- /** TransferRecord records a license transfer for snapshot-based governance */
107
- export interface TransferRecord {
108
- /** license_id is the ID of the transferred license */
109
- licenseId: bigint;
110
- /** timestamp is when the transfer occurred */
111
- timestamp: Date | undefined;
112
- /** from_owner is the previous owner */
113
- fromOwner: string;
114
- /** to_owner is the new owner */
115
- toOwner: string;
116
- }
117
106
  /** ProposalSnapshot stores voting power state captured at proposal creation */
118
107
  export interface ProposalSnapshot {
119
108
  /** timestamp is when the snapshot was taken (proposal submission time) */
@@ -128,7 +117,6 @@ export interface ProposalSnapshot {
128
117
  }
129
118
  export declare const License: MessageFns<License>;
130
119
  export declare const Params: MessageFns<Params>;
131
- export declare const TransferRecord: MessageFns<TransferRecord>;
132
120
  export declare const ProposalSnapshot: MessageFns<ProposalSnapshot>;
133
121
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
134
122
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
@@ -54,19 +54,6 @@ export interface MsgDisableTokenPair {
54
54
  /** MsgDisableTokenPairResponse is the response for MsgDisableTokenPair. */
55
55
  export interface MsgDisableTokenPairResponse {
56
56
  }
57
- /**
58
- * MsgCleanupTokenPair defines a message to remove a token pair whose ERC20
59
- * contract no longer exists (e.g. self-destructed).
60
- */
61
- export interface MsgCleanupTokenPair {
62
- /** sender is the signer address. */
63
- sender: string;
64
- /** erc20_address is the ERC20 contract address (0x...). */
65
- erc20Address: string;
66
- }
67
- /** MsgCleanupTokenPairResponse is the response for MsgCleanupTokenPair. */
68
- export interface MsgCleanupTokenPairResponse {
69
- }
70
57
  /**
71
58
  * MsgSetTransferLimit defines a message to set transfer rate limit for a token
72
59
  * pair.
@@ -105,8 +92,6 @@ export declare const MsgEnableTokenPair: MessageFns<MsgEnableTokenPair>;
105
92
  export declare const MsgEnableTokenPairResponse: MessageFns<MsgEnableTokenPairResponse>;
106
93
  export declare const MsgDisableTokenPair: MessageFns<MsgDisableTokenPair>;
107
94
  export declare const MsgDisableTokenPairResponse: MessageFns<MsgDisableTokenPairResponse>;
108
- export declare const MsgCleanupTokenPair: MessageFns<MsgCleanupTokenPair>;
109
- export declare const MsgCleanupTokenPairResponse: MessageFns<MsgCleanupTokenPairResponse>;
110
95
  export declare const MsgSetTransferLimit: MessageFns<MsgSetTransferLimit>;
111
96
  export declare const MsgSetTransferLimitResponse: MessageFns<MsgSetTransferLimitResponse>;
112
97
  export declare const MsgRemoveTransferLimit: MessageFns<MsgRemoveTransferLimit>;
@@ -0,0 +1,119 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Coin } from "../../base/v1beta1/coin";
3
+ export declare const protobufPackage = "cosmos.bank.v1beta1";
4
+ /** Params defines the parameters for the bank module. */
5
+ export interface Params {
6
+ /**
7
+ * Deprecated: Use of SendEnabled in params is deprecated.
8
+ * For genesis, use the newly added send_enabled field in the genesis object.
9
+ * Storage, lookup, and manipulation of this information is now in the keeper.
10
+ *
11
+ * As of cosmos-sdk 0.47, this only exists for backwards compatibility of genesis files.
12
+ *
13
+ * @deprecated
14
+ */
15
+ sendEnabled: SendEnabled[];
16
+ defaultSendEnabled: boolean;
17
+ }
18
+ /**
19
+ * SendEnabled maps coin denom to a send_enabled status (whether a denom is
20
+ * sendable).
21
+ */
22
+ export interface SendEnabled {
23
+ denom: string;
24
+ enabled: boolean;
25
+ }
26
+ /** Input models transaction input. */
27
+ export interface Input {
28
+ address: string;
29
+ coins: Coin[];
30
+ }
31
+ /** Output models transaction outputs. */
32
+ export interface Output {
33
+ address: string;
34
+ coins: Coin[];
35
+ }
36
+ /**
37
+ * Supply represents a struct that passively keeps track of the total supply
38
+ * amounts in the network.
39
+ * This message is deprecated now that supply is indexed by denom.
40
+ *
41
+ * @deprecated
42
+ */
43
+ export interface Supply {
44
+ total: Coin[];
45
+ }
46
+ /**
47
+ * DenomUnit represents a struct that describes a given
48
+ * denomination unit of the basic token.
49
+ */
50
+ export interface DenomUnit {
51
+ /** denom represents the string name of the given denom unit (e.g uatom). */
52
+ denom: string;
53
+ /**
54
+ * exponent represents power of 10 exponent that one must
55
+ * raise the base_denom to in order to equal the given DenomUnit's denom
56
+ * 1 denom = 10^exponent base_denom
57
+ * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
58
+ * exponent = 6, thus: 1 atom = 10^6 uatom).
59
+ */
60
+ exponent: number;
61
+ /** aliases is a list of string aliases for the given denom */
62
+ aliases: string[];
63
+ }
64
+ /**
65
+ * Metadata represents a struct that describes
66
+ * a basic token.
67
+ */
68
+ export interface Metadata {
69
+ description: string;
70
+ /** denom_units represents the list of DenomUnit's for a given coin */
71
+ denomUnits: DenomUnit[];
72
+ /** base represents the base denom (should be the DenomUnit with exponent = 0). */
73
+ base: string;
74
+ /**
75
+ * display indicates the suggested denom that should be
76
+ * displayed in clients.
77
+ */
78
+ display: string;
79
+ /** name defines the name of the token (eg: Cosmos Atom) */
80
+ name: string;
81
+ /**
82
+ * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can
83
+ * be the same as the display.
84
+ */
85
+ symbol: string;
86
+ /** URI to a document (on or off-chain) that contains additional information. Optional. */
87
+ uri: string;
88
+ /**
89
+ * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
90
+ * the document didn't change. Optional.
91
+ */
92
+ uriHash: string;
93
+ }
94
+ export declare const Params: MessageFns<Params>;
95
+ export declare const SendEnabled: MessageFns<SendEnabled>;
96
+ export declare const Input: MessageFns<Input>;
97
+ export declare const Output: MessageFns<Output>;
98
+ export declare const Supply: MessageFns<Supply>;
99
+ export declare const DenomUnit: MessageFns<DenomUnit>;
100
+ export declare const Metadata: MessageFns<Metadata>;
101
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
102
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
103
+ [K in keyof T]?: DeepPartial<T[K]>;
104
+ } : Partial<T>;
105
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
106
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
107
+ [K in keyof P]: Exact<P[K], I[K]>;
108
+ } & {
109
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
110
+ };
111
+ export interface MessageFns<T> {
112
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
113
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
114
+ fromJSON(object: any): T;
115
+ toJSON(message: T): unknown;
116
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
117
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
118
+ }
119
+ export {};