@agoric/cosmic-proto 0.5.0-u21.0 → 0.5.0-u21.0.1
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.
- package/dist/codegen/cosmos/circuit/module/v1/module.d.ts +26 -0
- package/dist/codegen/cosmos/circuit/module/v1/module.js +1 -0
- package/dist/codegen/cosmos/circuit/module/v1/module.js.map +1 -0
- package/dist/codegen/cosmos/circuit/v1/query.d.ts +144 -0
- package/dist/codegen/cosmos/circuit/v1/query.js +1 -0
- package/dist/codegen/cosmos/circuit/v1/query.js.map +1 -0
- package/dist/codegen/cosmos/circuit/v1/tx.d.ts +173 -0
- package/dist/codegen/cosmos/circuit/v1/tx.js +1 -0
- package/dist/codegen/cosmos/circuit/v1/tx.js.map +1 -0
- package/dist/codegen/cosmos/circuit/v1/types.d.ts +118 -0
- package/dist/codegen/cosmos/circuit/v1/types.js +1 -0
- package/dist/codegen/cosmos/circuit/v1/types.js.map +1 -0
- package/dist/codegen/cosmos/msg/textual/v1/textual.d.ts +1 -0
- package/dist/codegen/cosmos/msg/textual/v1/textual.js +1 -0
- package/dist/codegen/cosmos/msg/textual/v1/textual.js.map +1 -0
- package/dist/codegen/cosmos/store/internal/kv/v1beta1/kv.d.ts +50 -0
- package/dist/codegen/cosmos/store/internal/kv/v1beta1/kv.js +1 -0
- package/dist/codegen/cosmos/store/internal/kv/v1beta1/kv.js.map +1 -0
- package/dist/codegen/cosmos/store/snapshots/v1/snapshot.d.ts +228 -0
- package/dist/codegen/cosmos/store/snapshots/v1/snapshot.js +1 -0
- package/dist/codegen/cosmos/store/snapshots/v1/snapshot.js.map +1 -0
- package/dist/codegen/cosmos/store/streaming/abci/grpc.d.ts +95 -0
- package/dist/codegen/cosmos/store/streaming/abci/grpc.js +1 -0
- package/dist/codegen/cosmos/store/streaming/abci/grpc.js.map +1 -0
- package/dist/codegen/cosmos/store/v1beta1/commit_info.d.ts +98 -0
- package/dist/codegen/cosmos/store/v1beta1/commit_info.js +1 -0
- package/dist/codegen/cosmos/store/v1beta1/commit_info.js.map +1 -0
- package/dist/codegen/cosmos/store/v1beta1/listening.d.ts +75 -0
- package/dist/codegen/cosmos/store/v1beta1/listening.js +1 -0
- package/dist/codegen/cosmos/store/v1beta1/listening.js.map +1 -0
- package/dist/codegen/ibc/core/channel/v1/upgrade.d.ts +110 -0
- package/dist/codegen/ibc/core/channel/v1/upgrade.js +1 -0
- package/dist/codegen/ibc/core/channel/v1/upgrade.js.map +1 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/genesis.d.ts +50 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/genesis.js +1 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/query.d.ts +101 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/query.js +1 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/query.js.map +1 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/tx.d.ts +155 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/tx.js +1 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/wasm.d.ts +119 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/wasm.js +1 -0
- package/dist/codegen/ibc/lightclients/wasm/v1/wasm.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ResponseCommit, type ResponseCommitSDKType } from '../../../tendermint/abci/types.js';
|
|
2
|
+
import { BinaryReader, BinaryWriter } from '../../../binary.js';
|
|
3
|
+
import { type JsonSafe } from '../../../json-safe.js';
|
|
4
|
+
/**
|
|
5
|
+
* StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes)
|
|
6
|
+
* It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and
|
|
7
|
+
* Deletes
|
|
8
|
+
*
|
|
9
|
+
* Since: cosmos-sdk 0.43
|
|
10
|
+
*/
|
|
11
|
+
export interface StoreKVPair {
|
|
12
|
+
/** the store key for the KVStore this pair originates from */
|
|
13
|
+
storeKey: string;
|
|
14
|
+
/** true indicates a delete operation, false indicates a set operation */
|
|
15
|
+
delete: boolean;
|
|
16
|
+
key: Uint8Array;
|
|
17
|
+
value: Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
export interface StoreKVPairProtoMsg {
|
|
20
|
+
typeUrl: '/cosmos.store.v1beta1.StoreKVPair';
|
|
21
|
+
value: Uint8Array;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes)
|
|
25
|
+
* It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and
|
|
26
|
+
* Deletes
|
|
27
|
+
*
|
|
28
|
+
* Since: cosmos-sdk 0.43
|
|
29
|
+
*/
|
|
30
|
+
export interface StoreKVPairSDKType {
|
|
31
|
+
store_key: string;
|
|
32
|
+
delete: boolean;
|
|
33
|
+
key: Uint8Array;
|
|
34
|
+
value: Uint8Array;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* BlockMetadata contains all the abci event data of a block
|
|
38
|
+
* the file streamer dump them into files together with the state changes.
|
|
39
|
+
*/
|
|
40
|
+
export interface BlockMetadata {
|
|
41
|
+
responseCommit?: ResponseCommit;
|
|
42
|
+
}
|
|
43
|
+
export interface BlockMetadataProtoMsg {
|
|
44
|
+
typeUrl: '/cosmos.store.v1beta1.BlockMetadata';
|
|
45
|
+
value: Uint8Array;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* BlockMetadata contains all the abci event data of a block
|
|
49
|
+
* the file streamer dump them into files together with the state changes.
|
|
50
|
+
*/
|
|
51
|
+
export interface BlockMetadataSDKType {
|
|
52
|
+
response_commit?: ResponseCommitSDKType;
|
|
53
|
+
}
|
|
54
|
+
export declare const StoreKVPair: {
|
|
55
|
+
typeUrl: string;
|
|
56
|
+
encode(message: StoreKVPair, writer?: BinaryWriter): BinaryWriter;
|
|
57
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StoreKVPair;
|
|
58
|
+
fromJSON(object: any): StoreKVPair;
|
|
59
|
+
toJSON(message: StoreKVPair): JsonSafe<StoreKVPair>;
|
|
60
|
+
fromPartial(object: Partial<StoreKVPair>): StoreKVPair;
|
|
61
|
+
fromProtoMsg(message: StoreKVPairProtoMsg): StoreKVPair;
|
|
62
|
+
toProto(message: StoreKVPair): Uint8Array;
|
|
63
|
+
toProtoMsg(message: StoreKVPair): StoreKVPairProtoMsg;
|
|
64
|
+
};
|
|
65
|
+
export declare const BlockMetadata: {
|
|
66
|
+
typeUrl: string;
|
|
67
|
+
encode(message: BlockMetadata, writer?: BinaryWriter): BinaryWriter;
|
|
68
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BlockMetadata;
|
|
69
|
+
fromJSON(object: any): BlockMetadata;
|
|
70
|
+
toJSON(message: BlockMetadata): JsonSafe<BlockMetadata>;
|
|
71
|
+
fromPartial(object: Partial<BlockMetadata>): BlockMetadata;
|
|
72
|
+
fromProtoMsg(message: BlockMetadataProtoMsg): BlockMetadata;
|
|
73
|
+
toProto(message: BlockMetadata): Uint8Array;
|
|
74
|
+
toProtoMsg(message: BlockMetadata): BlockMetadataProtoMsg;
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ResponseCommit as e}from"../../../tendermint/abci/types.js";import{BinaryReader as o,BinaryWriter as t}from"../../../binary.js";import{isSet as r}from"../../../helpers.js";import{decodeBase64 as s}from"@endo/base64";import{encodeBase64 as n}from"@endo/base64";import{}from"../../../json-safe.js";function a(){return{storeKey:"",delete:!1,key:new Uint8Array,value:new Uint8Array}}export const StoreKVPair={typeUrl:"/cosmos.store.v1beta1.StoreKVPair",encode:(e,o=t.create())=>(""!==e.storeKey&&o.uint32(10).string(e.storeKey),!0===e.delete&&o.uint32(16).bool(e.delete),0!==e.key.length&&o.uint32(26).bytes(e.key),0!==e.value.length&&o.uint32(34).bytes(e.value),o),decode(e,t){const r=e instanceof o?e:new o(e);let s=void 0===t?r.len:r.pos+t;const n=a();for(;r.pos<s;){const e=r.uint32();switch(e>>>3){case 1:n.storeKey=r.string();break;case 2:n.delete=r.bool();break;case 3:n.key=r.bytes();break;case 4:n.value=r.bytes();break;default:r.skipType(7&e)}}return n},fromJSON:e=>({storeKey:r(e.storeKey)?String(e.storeKey):"",delete:!!r(e.delete)&&Boolean(e.delete),key:r(e.key)?s(e.key):new Uint8Array,value:r(e.value)?s(e.value):new Uint8Array}),toJSON(e){const o={};return void 0!==e.storeKey&&(o.storeKey=e.storeKey),void 0!==e.delete&&(o.delete=e.delete),void 0!==e.key&&(o.key=n(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(o.value=n(void 0!==e.value?e.value:new Uint8Array)),o},fromPartial(e){const o=a();return o.storeKey=e.storeKey??"",o.delete=e.delete??!1,o.key=e.key??new Uint8Array,o.value=e.value??new Uint8Array,o},fromProtoMsg:e=>StoreKVPair.decode(e.value),toProto:e=>StoreKVPair.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.store.v1beta1.StoreKVPair",value:StoreKVPair.encode(e).finish()})};export const BlockMetadata={typeUrl:"/cosmos.store.v1beta1.BlockMetadata",encode:(o,r=t.create())=>(void 0!==o.responseCommit&&e.encode(o.responseCommit,r.uint32(50).fork()).ldelim(),r),decode(t,r){const s=t instanceof o?t:new o(t);let n=void 0===r?s.len:s.pos+r;const a={responseCommit:void 0};for(;s.pos<n;){const o=s.uint32();o>>>3==6?a.responseCommit=e.decode(s,s.uint32()):s.skipType(7&o)}return a},fromJSON:o=>({responseCommit:r(o.responseCommit)?e.fromJSON(o.responseCommit):void 0}),toJSON(o){const t={};return void 0!==o.responseCommit&&(t.responseCommit=o.responseCommit?e.toJSON(o.responseCommit):void 0),t},fromPartial(o){const t={responseCommit:void 0};return t.responseCommit=void 0!==o.responseCommit&&null!==o.responseCommit?e.fromPartial(o.responseCommit):void 0,t},fromProtoMsg:e=>BlockMetadata.decode(e.value),toProto:e=>BlockMetadata.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/cosmos.store.v1beta1.BlockMetadata",value:BlockMetadata.encode(e).finish()})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listening.js","sourceRoot":"","sources":["../../../../../src/codegen/cosmos/store/v1beta1/listening.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EACL,cAAc,GAEf,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAiB,MAAM,uBAAuB,CAAC;AAmDtD,SAAS,qBAAqB;IAC5B,OAAO;QACL,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,IAAI,UAAU,EAAE;QACrB,KAAK,EAAE,IAAI,UAAU,EAAE;KACxB,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,OAAO,EAAE,mCAAmC;IAC5C,MAAM,CACJ,OAAoB,EACpB,SAAuB,YAAY,CAAC,MAAM,EAAE;QAE5C,IAAI,OAAO,CAAC,QAAQ,KAAK,EAAE,EAAE,CAAC;YAC5B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7C,CAAC;QACD,IAAI,OAAO,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YAC5B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,C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D,MAAM,CAAC,OAAsB;QAC3B,MAAM,GAAG,GAAQ,EAAE,CAAC;QACpB,OAAO,CAAC,cAAc,KAAK,SAAS;YAClC,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc;gBAC1C,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC;gBAC/C,CAAC,CAAC,SAAS,CAAC,CAAC;QACjB,OAAO,GAAG,CAAC;IACb,CAAC;IACD,WAAW,CAAC,MAA8B;QACxC,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;QAC1C,OAAO,CAAC,cAAc;YACpB,MAAM,CAAC,cAAc,KAAK,SAAS,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI;gBACnE,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC;gBACnD,CAAC,CAAC,SAAS,CAAC;QAChB,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,YAAY,CAAC,OAA8B;QACzC,OAAO,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,CAAC,OAAsB;QAC5B,OAAO,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAChD,CAAC;IACD,UAAU,CAAC,OAAsB;QAC/B,OAAO;YACL,OAAO,EAAE,qCAAqC;YAC9C,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SAC9C,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Timeout, type TimeoutSDKType, Order } from './channel.js';
|
|
2
|
+
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
3
|
+
import { type JsonSafe } from '../../../../json-safe.js';
|
|
4
|
+
/**
|
|
5
|
+
* Upgrade is a verifiable type which contains the relevant information
|
|
6
|
+
* for an attempted upgrade. It provides the proposed changes to the channel
|
|
7
|
+
* end, the timeout for this upgrade attempt and the next packet sequence
|
|
8
|
+
* which allows the counterparty to efficiently know the highest sequence it has received.
|
|
9
|
+
* The next sequence send is used for pruning and upgrading from unordered to ordered channels.
|
|
10
|
+
*/
|
|
11
|
+
export interface Upgrade {
|
|
12
|
+
fields: UpgradeFields;
|
|
13
|
+
timeout: Timeout;
|
|
14
|
+
nextSequenceSend: bigint;
|
|
15
|
+
}
|
|
16
|
+
export interface UpgradeProtoMsg {
|
|
17
|
+
typeUrl: '/ibc.core.channel.v1.Upgrade';
|
|
18
|
+
value: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Upgrade is a verifiable type which contains the relevant information
|
|
22
|
+
* for an attempted upgrade. It provides the proposed changes to the channel
|
|
23
|
+
* end, the timeout for this upgrade attempt and the next packet sequence
|
|
24
|
+
* which allows the counterparty to efficiently know the highest sequence it has received.
|
|
25
|
+
* The next sequence send is used for pruning and upgrading from unordered to ordered channels.
|
|
26
|
+
*/
|
|
27
|
+
export interface UpgradeSDKType {
|
|
28
|
+
fields: UpgradeFieldsSDKType;
|
|
29
|
+
timeout: TimeoutSDKType;
|
|
30
|
+
next_sequence_send: bigint;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* UpgradeFields are the fields in a channel end which may be changed
|
|
34
|
+
* during a channel upgrade.
|
|
35
|
+
*/
|
|
36
|
+
export interface UpgradeFields {
|
|
37
|
+
ordering: Order;
|
|
38
|
+
connectionHops: string[];
|
|
39
|
+
version: string;
|
|
40
|
+
}
|
|
41
|
+
export interface UpgradeFieldsProtoMsg {
|
|
42
|
+
typeUrl: '/ibc.core.channel.v1.UpgradeFields';
|
|
43
|
+
value: Uint8Array;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* UpgradeFields are the fields in a channel end which may be changed
|
|
47
|
+
* during a channel upgrade.
|
|
48
|
+
*/
|
|
49
|
+
export interface UpgradeFieldsSDKType {
|
|
50
|
+
ordering: Order;
|
|
51
|
+
connection_hops: string[];
|
|
52
|
+
version: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* ErrorReceipt defines a type which encapsulates the upgrade sequence and error associated with the
|
|
56
|
+
* upgrade handshake failure. When a channel upgrade handshake is aborted both chains are expected to increment to the
|
|
57
|
+
* next sequence.
|
|
58
|
+
*/
|
|
59
|
+
export interface ErrorReceipt {
|
|
60
|
+
/** the channel upgrade sequence */
|
|
61
|
+
sequence: bigint;
|
|
62
|
+
/** the error message detailing the cause of failure */
|
|
63
|
+
message: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ErrorReceiptProtoMsg {
|
|
66
|
+
typeUrl: '/ibc.core.channel.v1.ErrorReceipt';
|
|
67
|
+
value: Uint8Array;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* ErrorReceipt defines a type which encapsulates the upgrade sequence and error associated with the
|
|
71
|
+
* upgrade handshake failure. When a channel upgrade handshake is aborted both chains are expected to increment to the
|
|
72
|
+
* next sequence.
|
|
73
|
+
*/
|
|
74
|
+
export interface ErrorReceiptSDKType {
|
|
75
|
+
sequence: bigint;
|
|
76
|
+
message: string;
|
|
77
|
+
}
|
|
78
|
+
export declare const Upgrade: {
|
|
79
|
+
typeUrl: string;
|
|
80
|
+
encode(message: Upgrade, writer?: BinaryWriter): BinaryWriter;
|
|
81
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Upgrade;
|
|
82
|
+
fromJSON(object: any): Upgrade;
|
|
83
|
+
toJSON(message: Upgrade): JsonSafe<Upgrade>;
|
|
84
|
+
fromPartial(object: Partial<Upgrade>): Upgrade;
|
|
85
|
+
fromProtoMsg(message: UpgradeProtoMsg): Upgrade;
|
|
86
|
+
toProto(message: Upgrade): Uint8Array;
|
|
87
|
+
toProtoMsg(message: Upgrade): UpgradeProtoMsg;
|
|
88
|
+
};
|
|
89
|
+
export declare const UpgradeFields: {
|
|
90
|
+
typeUrl: string;
|
|
91
|
+
encode(message: UpgradeFields, writer?: BinaryWriter): BinaryWriter;
|
|
92
|
+
decode(input: BinaryReader | Uint8Array, length?: number): UpgradeFields;
|
|
93
|
+
fromJSON(object: any): UpgradeFields;
|
|
94
|
+
toJSON(message: UpgradeFields): JsonSafe<UpgradeFields>;
|
|
95
|
+
fromPartial(object: Partial<UpgradeFields>): UpgradeFields;
|
|
96
|
+
fromProtoMsg(message: UpgradeFieldsProtoMsg): UpgradeFields;
|
|
97
|
+
toProto(message: UpgradeFields): Uint8Array;
|
|
98
|
+
toProtoMsg(message: UpgradeFields): UpgradeFieldsProtoMsg;
|
|
99
|
+
};
|
|
100
|
+
export declare const ErrorReceipt: {
|
|
101
|
+
typeUrl: string;
|
|
102
|
+
encode(message: ErrorReceipt, writer?: BinaryWriter): BinaryWriter;
|
|
103
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ErrorReceipt;
|
|
104
|
+
fromJSON(object: any): ErrorReceipt;
|
|
105
|
+
toJSON(message: ErrorReceipt): JsonSafe<ErrorReceipt>;
|
|
106
|
+
fromPartial(object: Partial<ErrorReceipt>): ErrorReceipt;
|
|
107
|
+
fromProtoMsg(message: ErrorReceiptProtoMsg): ErrorReceipt;
|
|
108
|
+
toProto(message: ErrorReceipt): Uint8Array;
|
|
109
|
+
toProtoMsg(message: ErrorReceipt): ErrorReceiptProtoMsg;
|
|
110
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Timeout as e,Order as n,orderFromJSON as o,orderToJSON as t}from"./channel.js";import{BinaryReader as i,BinaryWriter as r}from"../../../../binary.js";import{isSet as s}from"../../../../helpers.js";import{}from"../../../../json-safe.js";function c(){return{fields:UpgradeFields.fromPartial({}),timeout:e.fromPartial({}),nextSequenceSend:BigInt(0)}}export const Upgrade={typeUrl:"/ibc.core.channel.v1.Upgrade",encode:(n,o=r.create())=>(void 0!==n.fields&&UpgradeFields.encode(n.fields,o.uint32(10).fork()).ldelim(),void 0!==n.timeout&&e.encode(n.timeout,o.uint32(18).fork()).ldelim(),n.nextSequenceSend!==BigInt(0)&&o.uint32(24).uint64(n.nextSequenceSend),o),decode(n,o){const t=n instanceof i?n:new i(n);let r=void 0===o?t.len:t.pos+o;const s=c();for(;t.pos<r;){const n=t.uint32();switch(n>>>3){case 1:s.fields=UpgradeFields.decode(t,t.uint32());break;case 2:s.timeout=e.decode(t,t.uint32());break;case 3:s.nextSequenceSend=t.uint64();break;default:t.skipType(7&n)}}return s},fromJSON:n=>({fields:s(n.fields)?UpgradeFields.fromJSON(n.fields):void 0,timeout:s(n.timeout)?e.fromJSON(n.timeout):void 0,nextSequenceSend:s(n.nextSequenceSend)?BigInt(n.nextSequenceSend.toString()):BigInt(0)}),toJSON(n){const o={};return void 0!==n.fields&&(o.fields=n.fields?UpgradeFields.toJSON(n.fields):void 0),void 0!==n.timeout&&(o.timeout=n.timeout?e.toJSON(n.timeout):void 0),void 0!==n.nextSequenceSend&&(o.nextSequenceSend=(n.nextSequenceSend||BigInt(0)).toString()),o},fromPartial(n){const o=c();return o.fields=void 0!==n.fields&&null!==n.fields?UpgradeFields.fromPartial(n.fields):void 0,o.timeout=void 0!==n.timeout&&null!==n.timeout?e.fromPartial(n.timeout):void 0,o.nextSequenceSend=void 0!==n.nextSequenceSend&&null!==n.nextSequenceSend?BigInt(n.nextSequenceSend.toString()):BigInt(0),o},fromProtoMsg:e=>Upgrade.decode(e.value),toProto:e=>Upgrade.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.Upgrade",value:Upgrade.encode(e).finish()})};export const UpgradeFields={typeUrl:"/ibc.core.channel.v1.UpgradeFields",encode(e,n=r.create()){0!==e.ordering&&n.uint32(8).int32(e.ordering);for(const o of e.connectionHops)n.uint32(18).string(o);return""!==e.version&&n.uint32(26).string(e.version),n},decode(e,n){const o=e instanceof i?e:new i(e);let t=void 0===n?o.len:o.pos+n;const r={ordering:0,connectionHops:[],version:""};for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:r.ordering=o.int32();break;case 2:r.connectionHops.push(o.string());break;case 3:r.version=o.string();break;default:o.skipType(7&e)}}return r},fromJSON:e=>({ordering:s(e.ordering)?o(e.ordering):-1,connectionHops:Array.isArray(e?.connectionHops)?e.connectionHops.map((e=>String(e))):[],version:s(e.version)?String(e.version):""}),toJSON(e){const n={};return void 0!==e.ordering&&(n.ordering=t(e.ordering)),e.connectionHops?n.connectionHops=e.connectionHops.map((e=>e)):n.connectionHops=[],void 0!==e.version&&(n.version=e.version),n},fromPartial(e){const n={ordering:0,connectionHops:[],version:""};return n.ordering=e.ordering??0,n.connectionHops=e.connectionHops?.map((e=>e))||[],n.version=e.version??"",n},fromProtoMsg:e=>UpgradeFields.decode(e.value),toProto:e=>UpgradeFields.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.UpgradeFields",value:UpgradeFields.encode(e).finish()})};function d(){return{sequence:BigInt(0),message:""}}export const ErrorReceipt={typeUrl:"/ibc.core.channel.v1.ErrorReceipt",encode:(e,n=r.create())=>(e.sequence!==BigInt(0)&&n.uint32(8).uint64(e.sequence),""!==e.message&&n.uint32(18).string(e.message),n),decode(e,n){const o=e instanceof i?e:new i(e);let t=void 0===n?o.len:o.pos+n;const r=d();for(;o.pos<t;){const e=o.uint32();switch(e>>>3){case 1:r.sequence=o.uint64();break;case 2:r.message=o.string();break;default:o.skipType(7&e)}}return r},fromJSON:e=>({sequence:s(e.sequence)?BigInt(e.sequence.toString()):BigInt(0),message:s(e.message)?String(e.message):""}),toJSON(e){const n={};return void 0!==e.sequence&&(n.sequence=(e.sequence||BigInt(0)).toString()),void 0!==e.message&&(n.message=e.message),n},fromPartial(e){const n=d();return n.sequence=void 0!==e.sequence&&null!==e.sequence?BigInt(e.sequence.toString()):BigInt(0),n.message=e.message??"",n},fromProtoMsg:e=>ErrorReceipt.decode(e.value),toProto:e=>ErrorReceipt.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.core.channel.v1.ErrorReceipt",value:ErrorReceipt.encode(e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CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
2
|
+
import { type JsonSafe } from '../../../../json-safe.js';
|
|
3
|
+
/** GenesisState defines 08-wasm's keeper genesis state */
|
|
4
|
+
export interface GenesisState {
|
|
5
|
+
/** uploaded light client wasm contracts */
|
|
6
|
+
contracts: Contract[];
|
|
7
|
+
}
|
|
8
|
+
export interface GenesisStateProtoMsg {
|
|
9
|
+
typeUrl: '/ibc.lightclients.wasm.v1.GenesisState';
|
|
10
|
+
value: Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
/** GenesisState defines 08-wasm's keeper genesis state */
|
|
13
|
+
export interface GenesisStateSDKType {
|
|
14
|
+
contracts: ContractSDKType[];
|
|
15
|
+
}
|
|
16
|
+
/** Contract stores contract code */
|
|
17
|
+
export interface Contract {
|
|
18
|
+
/** contract byte code */
|
|
19
|
+
codeBytes: Uint8Array;
|
|
20
|
+
}
|
|
21
|
+
export interface ContractProtoMsg {
|
|
22
|
+
typeUrl: '/ibc.lightclients.wasm.v1.Contract';
|
|
23
|
+
value: Uint8Array;
|
|
24
|
+
}
|
|
25
|
+
/** Contract stores contract code */
|
|
26
|
+
export interface ContractSDKType {
|
|
27
|
+
code_bytes: Uint8Array;
|
|
28
|
+
}
|
|
29
|
+
export declare const GenesisState: {
|
|
30
|
+
typeUrl: string;
|
|
31
|
+
encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter;
|
|
32
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GenesisState;
|
|
33
|
+
fromJSON(object: any): GenesisState;
|
|
34
|
+
toJSON(message: GenesisState): JsonSafe<GenesisState>;
|
|
35
|
+
fromPartial(object: Partial<GenesisState>): GenesisState;
|
|
36
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState;
|
|
37
|
+
toProto(message: GenesisState): Uint8Array;
|
|
38
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
39
|
+
};
|
|
40
|
+
export declare const Contract: {
|
|
41
|
+
typeUrl: string;
|
|
42
|
+
encode(message: Contract, writer?: BinaryWriter): BinaryWriter;
|
|
43
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Contract;
|
|
44
|
+
fromJSON(object: any): Contract;
|
|
45
|
+
toJSON(message: Contract): JsonSafe<Contract>;
|
|
46
|
+
fromPartial(object: Partial<Contract>): Contract;
|
|
47
|
+
fromProtoMsg(message: ContractProtoMsg): Contract;
|
|
48
|
+
toProto(message: Contract): Uint8Array;
|
|
49
|
+
toProtoMsg(message: Contract): ContractProtoMsg;
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BinaryReader as t,BinaryWriter as e}from"../../../../binary.js";import{}from"../../../../json-safe.js";import{isSet as o}from"../../../../helpers.js";import{decodeBase64 as r}from"@endo/base64";import{encodeBase64 as n}from"@endo/base64";export const GenesisState={typeUrl:"/ibc.lightclients.wasm.v1.GenesisState",encode(t,o=e.create()){for(const e of t.contracts)Contract.encode(e,o.uint32(10).fork()).ldelim();return o},decode(e,o){const r=e instanceof t?e:new t(e);let n=void 0===o?r.len:r.pos+o;const s={contracts:[]};for(;r.pos<n;){const t=r.uint32();t>>>3==1?s.contracts.push(Contract.decode(r,r.uint32())):r.skipType(7&t)}return s},fromJSON:t=>({contracts:Array.isArray(t?.contracts)?t.contracts.map((t=>Contract.fromJSON(t))):[]}),toJSON(t){const e={};return t.contracts?e.contracts=t.contracts.map((t=>t?Contract.toJSON(t):void 0)):e.contracts=[],e},fromPartial(t){const e={contracts:[]};return e.contracts=t.contracts?.map((t=>Contract.fromPartial(t)))||[],e},fromProtoMsg:t=>GenesisState.decode(t.value),toProto:t=>GenesisState.encode(t).finish(),toProtoMsg:t=>({typeUrl:"/ibc.lightclients.wasm.v1.GenesisState",value:GenesisState.encode(t).finish()})};function s(){return{codeBytes:new Uint8Array}}export const Contract={typeUrl:"/ibc.lightclients.wasm.v1.Contract",encode:(t,o=e.create())=>(0!==t.codeBytes.length&&o.uint32(10).bytes(t.codeBytes),o),decode(e,o){const r=e instanceof t?e:new t(e);let n=void 0===o?r.len:r.pos+o;const c=s();for(;r.pos<n;){const t=r.uint32();t>>>3==1?c.codeBytes=r.bytes():r.skipType(7&t)}return c},fromJSON:t=>({codeBytes:o(t.codeBytes)?r(t.codeBytes):new Uint8Array}),toJSON(t){const e={};return void 0!==t.codeBytes&&(e.codeBytes=n(void 0!==t.codeBytes?t.codeBytes:new Uint8Array)),e},fromPartial(t){const e=s();return e.codeBytes=t.codeBytes??new Uint8Array,e},fromProtoMsg:t=>Contract.decode(t.value),toProto:t=>Contract.encode(t).finish(),toProtoMsg:t=>({typeUrl:"/ibc.lightclients.wasm.v1.Contract",value:Contract.encode(t).finish()})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genesis.js","sourceRoot":"","sources":["../../../../../../src/codegen/ibc/lightclients/wasm/v1/genesis.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AA2B/D,SAAS,sBAAsB;IAC7B,OAAO;QACL,SAAS,EAAE,EAAE;KACd,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,wCAAwC;IACjD,MAAM,CACJ,OAAqB,EACrB,SAAuB,YAAY,CAAC,MAAM,EAAE;QAE5C,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;YAClC,QAAQ,CAAC,MAAM,CAAC,CAAE,EAAE,MAAM,CAAC,MAA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eAAe,CAC9B,OAAO,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,UAAU,EAAE,CACvE,CAAC,CAAC;QACL,OAAO,GAAG,CAAC;IACb,CAAC;IACD,WAAW,CAAC,MAAyB;QACnC,MAAM,OAAO,GAAG,kBAAkB,EAAE,CAAC;QACrC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,IAAI,UAAU,EAAE,CAAC;QACzD,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,YAAY,CAAC,OAAyB;QACpC,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,CAAC,OAAiB;QACvB,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3C,CAAC;IACD,UAAU,CAAC,OAAiB;QAC1B,OAAO;YACL,OAAO,EAAE,oCAAoC;YAC7C,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SACzC,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { PageRequest, type PageRequestSDKType, PageResponse, type PageResponseSDKType } from '../../../../cosmos/base/query/v1beta1/pagination.js';
|
|
2
|
+
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
3
|
+
import { type JsonSafe } from '../../../../json-safe.js';
|
|
4
|
+
/** QueryChecksumsRequest is the request type for the Query/Checksums RPC method. */
|
|
5
|
+
export interface QueryChecksumsRequest {
|
|
6
|
+
/** pagination defines an optional pagination for the request. */
|
|
7
|
+
pagination?: PageRequest;
|
|
8
|
+
}
|
|
9
|
+
export interface QueryChecksumsRequestProtoMsg {
|
|
10
|
+
typeUrl: '/ibc.lightclients.wasm.v1.QueryChecksumsRequest';
|
|
11
|
+
value: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
/** QueryChecksumsRequest is the request type for the Query/Checksums RPC method. */
|
|
14
|
+
export interface QueryChecksumsRequestSDKType {
|
|
15
|
+
pagination?: PageRequestSDKType;
|
|
16
|
+
}
|
|
17
|
+
/** QueryChecksumsResponse is the response type for the Query/Checksums RPC method. */
|
|
18
|
+
export interface QueryChecksumsResponse {
|
|
19
|
+
/** checksums is a list of the hex encoded checksums of all wasm codes stored. */
|
|
20
|
+
checksums: string[];
|
|
21
|
+
/** pagination defines the pagination in the response. */
|
|
22
|
+
pagination?: PageResponse;
|
|
23
|
+
}
|
|
24
|
+
export interface QueryChecksumsResponseProtoMsg {
|
|
25
|
+
typeUrl: '/ibc.lightclients.wasm.v1.QueryChecksumsResponse';
|
|
26
|
+
value: Uint8Array;
|
|
27
|
+
}
|
|
28
|
+
/** QueryChecksumsResponse is the response type for the Query/Checksums RPC method. */
|
|
29
|
+
export interface QueryChecksumsResponseSDKType {
|
|
30
|
+
checksums: string[];
|
|
31
|
+
pagination?: PageResponseSDKType;
|
|
32
|
+
}
|
|
33
|
+
/** QueryCodeRequest is the request type for the Query/Code RPC method. */
|
|
34
|
+
export interface QueryCodeRequest {
|
|
35
|
+
/** checksum is a hex encoded string of the code stored. */
|
|
36
|
+
checksum: string;
|
|
37
|
+
}
|
|
38
|
+
export interface QueryCodeRequestProtoMsg {
|
|
39
|
+
typeUrl: '/ibc.lightclients.wasm.v1.QueryCodeRequest';
|
|
40
|
+
value: Uint8Array;
|
|
41
|
+
}
|
|
42
|
+
/** QueryCodeRequest is the request type for the Query/Code RPC method. */
|
|
43
|
+
export interface QueryCodeRequestSDKType {
|
|
44
|
+
checksum: string;
|
|
45
|
+
}
|
|
46
|
+
/** QueryCodeResponse is the response type for the Query/Code RPC method. */
|
|
47
|
+
export interface QueryCodeResponse {
|
|
48
|
+
data: Uint8Array;
|
|
49
|
+
}
|
|
50
|
+
export interface QueryCodeResponseProtoMsg {
|
|
51
|
+
typeUrl: '/ibc.lightclients.wasm.v1.QueryCodeResponse';
|
|
52
|
+
value: Uint8Array;
|
|
53
|
+
}
|
|
54
|
+
/** QueryCodeResponse is the response type for the Query/Code RPC method. */
|
|
55
|
+
export interface QueryCodeResponseSDKType {
|
|
56
|
+
data: Uint8Array;
|
|
57
|
+
}
|
|
58
|
+
export declare const QueryChecksumsRequest: {
|
|
59
|
+
typeUrl: string;
|
|
60
|
+
encode(message: QueryChecksumsRequest, writer?: BinaryWriter): BinaryWriter;
|
|
61
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryChecksumsRequest;
|
|
62
|
+
fromJSON(object: any): QueryChecksumsRequest;
|
|
63
|
+
toJSON(message: QueryChecksumsRequest): JsonSafe<QueryChecksumsRequest>;
|
|
64
|
+
fromPartial(object: Partial<QueryChecksumsRequest>): QueryChecksumsRequest;
|
|
65
|
+
fromProtoMsg(message: QueryChecksumsRequestProtoMsg): QueryChecksumsRequest;
|
|
66
|
+
toProto(message: QueryChecksumsRequest): Uint8Array;
|
|
67
|
+
toProtoMsg(message: QueryChecksumsRequest): QueryChecksumsRequestProtoMsg;
|
|
68
|
+
};
|
|
69
|
+
export declare const QueryChecksumsResponse: {
|
|
70
|
+
typeUrl: string;
|
|
71
|
+
encode(message: QueryChecksumsResponse, writer?: BinaryWriter): BinaryWriter;
|
|
72
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryChecksumsResponse;
|
|
73
|
+
fromJSON(object: any): QueryChecksumsResponse;
|
|
74
|
+
toJSON(message: QueryChecksumsResponse): JsonSafe<QueryChecksumsResponse>;
|
|
75
|
+
fromPartial(object: Partial<QueryChecksumsResponse>): QueryChecksumsResponse;
|
|
76
|
+
fromProtoMsg(message: QueryChecksumsResponseProtoMsg): QueryChecksumsResponse;
|
|
77
|
+
toProto(message: QueryChecksumsResponse): Uint8Array;
|
|
78
|
+
toProtoMsg(message: QueryChecksumsResponse): QueryChecksumsResponseProtoMsg;
|
|
79
|
+
};
|
|
80
|
+
export declare const QueryCodeRequest: {
|
|
81
|
+
typeUrl: string;
|
|
82
|
+
encode(message: QueryCodeRequest, writer?: BinaryWriter): BinaryWriter;
|
|
83
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryCodeRequest;
|
|
84
|
+
fromJSON(object: any): QueryCodeRequest;
|
|
85
|
+
toJSON(message: QueryCodeRequest): JsonSafe<QueryCodeRequest>;
|
|
86
|
+
fromPartial(object: Partial<QueryCodeRequest>): QueryCodeRequest;
|
|
87
|
+
fromProtoMsg(message: QueryCodeRequestProtoMsg): QueryCodeRequest;
|
|
88
|
+
toProto(message: QueryCodeRequest): Uint8Array;
|
|
89
|
+
toProtoMsg(message: QueryCodeRequest): QueryCodeRequestProtoMsg;
|
|
90
|
+
};
|
|
91
|
+
export declare const QueryCodeResponse: {
|
|
92
|
+
typeUrl: string;
|
|
93
|
+
encode(message: QueryCodeResponse, writer?: BinaryWriter): BinaryWriter;
|
|
94
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryCodeResponse;
|
|
95
|
+
fromJSON(object: any): QueryCodeResponse;
|
|
96
|
+
toJSON(message: QueryCodeResponse): JsonSafe<QueryCodeResponse>;
|
|
97
|
+
fromPartial(object: Partial<QueryCodeResponse>): QueryCodeResponse;
|
|
98
|
+
fromProtoMsg(message: QueryCodeResponseProtoMsg): QueryCodeResponse;
|
|
99
|
+
toProto(message: QueryCodeResponse): Uint8Array;
|
|
100
|
+
toProtoMsg(message: QueryCodeResponse): QueryCodeResponseProtoMsg;
|
|
101
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{PageRequest as e,PageResponse as o}from"../../../../cosmos/base/query/v1beta1/pagination.js";import{BinaryReader as s,BinaryWriter as t}from"../../../../binary.js";import{isSet as n}from"../../../../helpers.js";import{}from"../../../../json-safe.js";import{decodeBase64 as i}from"@endo/base64";import{encodeBase64 as a}from"@endo/base64";export const QueryChecksumsRequest={typeUrl:"/ibc.lightclients.wasm.v1.QueryChecksumsRequest",encode:(o,s=t.create())=>(void 0!==o.pagination&&e.encode(o.pagination,s.uint32(10).fork()).ldelim(),s),decode(o,t){const n=o instanceof s?o:new s(o);let i=void 0===t?n.len:n.pos+t;const a={pagination:void 0};for(;n.pos<i;){const o=n.uint32();o>>>3==1?a.pagination=e.decode(n,n.uint32()):n.skipType(7&o)}return a},fromJSON:o=>({pagination:n(o.pagination)?e.fromJSON(o.pagination):void 0}),toJSON(o){const s={};return void 0!==o.pagination&&(s.pagination=o.pagination?e.toJSON(o.pagination):void 0),s},fromPartial(o){const s={pagination:void 0};return s.pagination=void 0!==o.pagination&&null!==o.pagination?e.fromPartial(o.pagination):void 0,s},fromProtoMsg:e=>QueryChecksumsRequest.decode(e.value),toProto:e=>QueryChecksumsRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.QueryChecksumsRequest",value:QueryChecksumsRequest.encode(e).finish()})};export const QueryChecksumsResponse={typeUrl:"/ibc.lightclients.wasm.v1.QueryChecksumsResponse",encode(e,s=t.create()){for(const o of e.checksums)s.uint32(10).string(o);return void 0!==e.pagination&&o.encode(e.pagination,s.uint32(18).fork()).ldelim(),s},decode(e,t){const n=e instanceof s?e:new s(e);let i=void 0===t?n.len:n.pos+t;const a={checksums:[],pagination:void 0};for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:a.checksums.push(n.string());break;case 2:a.pagination=o.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({checksums:Array.isArray(e?.checksums)?e.checksums.map((e=>String(e))):[],pagination:n(e.pagination)?o.fromJSON(e.pagination):void 0}),toJSON(e){const s={};return e.checksums?s.checksums=e.checksums.map((e=>e)):s.checksums=[],void 0!==e.pagination&&(s.pagination=e.pagination?o.toJSON(e.pagination):void 0),s},fromPartial(e){const s={checksums:[],pagination:void 0};return s.checksums=e.checksums?.map((e=>e))||[],s.pagination=void 0!==e.pagination&&null!==e.pagination?o.fromPartial(e.pagination):void 0,s},fromProtoMsg:e=>QueryChecksumsResponse.decode(e.value),toProto:e=>QueryChecksumsResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.QueryChecksumsResponse",value:QueryChecksumsResponse.encode(e).finish()})};export const QueryCodeRequest={typeUrl:"/ibc.lightclients.wasm.v1.QueryCodeRequest",encode:(e,o=t.create())=>(""!==e.checksum&&o.uint32(10).string(e.checksum),o),decode(e,o){const t=e instanceof s?e:new s(e);let n=void 0===o?t.len:t.pos+o;const i={checksum:""};for(;t.pos<n;){const e=t.uint32();e>>>3==1?i.checksum=t.string():t.skipType(7&e)}return i},fromJSON:e=>({checksum:n(e.checksum)?String(e.checksum):""}),toJSON(e){const o={};return void 0!==e.checksum&&(o.checksum=e.checksum),o},fromPartial(e){const o={checksum:""};return o.checksum=e.checksum??"",o},fromProtoMsg:e=>QueryCodeRequest.decode(e.value),toProto:e=>QueryCodeRequest.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.QueryCodeRequest",value:QueryCodeRequest.encode(e).finish()})};function r(){return{data:new Uint8Array}}export const QueryCodeResponse={typeUrl:"/ibc.lightclients.wasm.v1.QueryCodeResponse",encode:(e,o=t.create())=>(0!==e.data.length&&o.uint32(10).bytes(e.data),o),decode(e,o){const t=e instanceof s?e:new s(e);let n=void 0===o?t.len:t.pos+o;const i=r();for(;t.pos<n;){const e=t.uint32();e>>>3==1?i.data=t.bytes():t.skipType(7&e)}return i},fromJSON:e=>({data:n(e.data)?i(e.data):new Uint8Array}),toJSON(e){const o={};return void 0!==e.data&&(o.data=a(void 0!==e.data?e.data:new Uint8Array)),o},fromPartial(e){const o=r();return o.data=e.data??new Uint8Array,o},fromProtoMsg:e=>QueryCodeResponse.decode(e.value),toProto:e=>QueryCodeResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.QueryCodeResponse",value:QueryCodeResponse.encode(e).finish()})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","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AAC,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,IAAI,UAAU,EAAE,CAAC;QAC/C,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,YAAY,CAAC,OAAkC;QAC7C,OAAO,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,CAAC,OAA0B;QAChC,OAAO,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IACpD,CAAC;IACD,UAAU,CAAC,OAA0B;QACnC,OAAO;YACL,OAAO,EAAE,6CAA6C;YACtD,KAAK,EAAE,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;SAClD,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
2
|
+
import { type JsonSafe } from '../../../../json-safe.js';
|
|
3
|
+
/** MsgStoreCode defines the request type for the StoreCode rpc. */
|
|
4
|
+
export interface MsgStoreCode {
|
|
5
|
+
/** signer address */
|
|
6
|
+
signer: string;
|
|
7
|
+
/** wasm byte code of light client contract. It can be raw or gzip compressed */
|
|
8
|
+
wasmByteCode: Uint8Array;
|
|
9
|
+
}
|
|
10
|
+
export interface MsgStoreCodeProtoMsg {
|
|
11
|
+
typeUrl: '/ibc.lightclients.wasm.v1.MsgStoreCode';
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
/** MsgStoreCode defines the request type for the StoreCode rpc. */
|
|
15
|
+
export interface MsgStoreCodeSDKType {
|
|
16
|
+
signer: string;
|
|
17
|
+
wasm_byte_code: Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
/** MsgStoreCodeResponse defines the response type for the StoreCode rpc */
|
|
20
|
+
export interface MsgStoreCodeResponse {
|
|
21
|
+
/** checksum is the sha256 hash of the stored code */
|
|
22
|
+
checksum: Uint8Array;
|
|
23
|
+
}
|
|
24
|
+
export interface MsgStoreCodeResponseProtoMsg {
|
|
25
|
+
typeUrl: '/ibc.lightclients.wasm.v1.MsgStoreCodeResponse';
|
|
26
|
+
value: Uint8Array;
|
|
27
|
+
}
|
|
28
|
+
/** MsgStoreCodeResponse defines the response type for the StoreCode rpc */
|
|
29
|
+
export interface MsgStoreCodeResponseSDKType {
|
|
30
|
+
checksum: Uint8Array;
|
|
31
|
+
}
|
|
32
|
+
/** MsgRemoveChecksum defines the request type for the MsgRemoveChecksum rpc. */
|
|
33
|
+
export interface MsgRemoveChecksum {
|
|
34
|
+
/** signer address */
|
|
35
|
+
signer: string;
|
|
36
|
+
/** checksum is the sha256 hash to be removed from the store */
|
|
37
|
+
checksum: Uint8Array;
|
|
38
|
+
}
|
|
39
|
+
export interface MsgRemoveChecksumProtoMsg {
|
|
40
|
+
typeUrl: '/ibc.lightclients.wasm.v1.MsgRemoveChecksum';
|
|
41
|
+
value: Uint8Array;
|
|
42
|
+
}
|
|
43
|
+
/** MsgRemoveChecksum defines the request type for the MsgRemoveChecksum rpc. */
|
|
44
|
+
export interface MsgRemoveChecksumSDKType {
|
|
45
|
+
signer: string;
|
|
46
|
+
checksum: Uint8Array;
|
|
47
|
+
}
|
|
48
|
+
/** MsgStoreChecksumResponse defines the response type for the StoreCode rpc */
|
|
49
|
+
export interface MsgRemoveChecksumResponse {
|
|
50
|
+
}
|
|
51
|
+
export interface MsgRemoveChecksumResponseProtoMsg {
|
|
52
|
+
typeUrl: '/ibc.lightclients.wasm.v1.MsgRemoveChecksumResponse';
|
|
53
|
+
value: Uint8Array;
|
|
54
|
+
}
|
|
55
|
+
/** MsgStoreChecksumResponse defines the response type for the StoreCode rpc */
|
|
56
|
+
export interface MsgRemoveChecksumResponseSDKType {
|
|
57
|
+
}
|
|
58
|
+
/** MsgMigrateContract defines the request type for the MigrateContract rpc. */
|
|
59
|
+
export interface MsgMigrateContract {
|
|
60
|
+
/** signer address */
|
|
61
|
+
signer: string;
|
|
62
|
+
/** the client id of the contract */
|
|
63
|
+
clientId: string;
|
|
64
|
+
/** checksum is the sha256 hash of the new wasm byte code for the contract */
|
|
65
|
+
checksum: Uint8Array;
|
|
66
|
+
/** the json encoded message to be passed to the contract on migration */
|
|
67
|
+
msg: Uint8Array;
|
|
68
|
+
}
|
|
69
|
+
export interface MsgMigrateContractProtoMsg {
|
|
70
|
+
typeUrl: '/ibc.lightclients.wasm.v1.MsgMigrateContract';
|
|
71
|
+
value: Uint8Array;
|
|
72
|
+
}
|
|
73
|
+
/** MsgMigrateContract defines the request type for the MigrateContract rpc. */
|
|
74
|
+
export interface MsgMigrateContractSDKType {
|
|
75
|
+
signer: string;
|
|
76
|
+
client_id: string;
|
|
77
|
+
checksum: Uint8Array;
|
|
78
|
+
msg: Uint8Array;
|
|
79
|
+
}
|
|
80
|
+
/** MsgMigrateContractResponse defines the response type for the MigrateContract rpc */
|
|
81
|
+
export interface MsgMigrateContractResponse {
|
|
82
|
+
}
|
|
83
|
+
export interface MsgMigrateContractResponseProtoMsg {
|
|
84
|
+
typeUrl: '/ibc.lightclients.wasm.v1.MsgMigrateContractResponse';
|
|
85
|
+
value: Uint8Array;
|
|
86
|
+
}
|
|
87
|
+
/** MsgMigrateContractResponse defines the response type for the MigrateContract rpc */
|
|
88
|
+
export interface MsgMigrateContractResponseSDKType {
|
|
89
|
+
}
|
|
90
|
+
export declare const MsgStoreCode: {
|
|
91
|
+
typeUrl: string;
|
|
92
|
+
encode(message: MsgStoreCode, writer?: BinaryWriter): BinaryWriter;
|
|
93
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreCode;
|
|
94
|
+
fromJSON(object: any): MsgStoreCode;
|
|
95
|
+
toJSON(message: MsgStoreCode): JsonSafe<MsgStoreCode>;
|
|
96
|
+
fromPartial(object: Partial<MsgStoreCode>): MsgStoreCode;
|
|
97
|
+
fromProtoMsg(message: MsgStoreCodeProtoMsg): MsgStoreCode;
|
|
98
|
+
toProto(message: MsgStoreCode): Uint8Array;
|
|
99
|
+
toProtoMsg(message: MsgStoreCode): MsgStoreCodeProtoMsg;
|
|
100
|
+
};
|
|
101
|
+
export declare const MsgStoreCodeResponse: {
|
|
102
|
+
typeUrl: string;
|
|
103
|
+
encode(message: MsgStoreCodeResponse, writer?: BinaryWriter): BinaryWriter;
|
|
104
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreCodeResponse;
|
|
105
|
+
fromJSON(object: any): MsgStoreCodeResponse;
|
|
106
|
+
toJSON(message: MsgStoreCodeResponse): JsonSafe<MsgStoreCodeResponse>;
|
|
107
|
+
fromPartial(object: Partial<MsgStoreCodeResponse>): MsgStoreCodeResponse;
|
|
108
|
+
fromProtoMsg(message: MsgStoreCodeResponseProtoMsg): MsgStoreCodeResponse;
|
|
109
|
+
toProto(message: MsgStoreCodeResponse): Uint8Array;
|
|
110
|
+
toProtoMsg(message: MsgStoreCodeResponse): MsgStoreCodeResponseProtoMsg;
|
|
111
|
+
};
|
|
112
|
+
export declare const MsgRemoveChecksum: {
|
|
113
|
+
typeUrl: string;
|
|
114
|
+
encode(message: MsgRemoveChecksum, writer?: BinaryWriter): BinaryWriter;
|
|
115
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveChecksum;
|
|
116
|
+
fromJSON(object: any): MsgRemoveChecksum;
|
|
117
|
+
toJSON(message: MsgRemoveChecksum): JsonSafe<MsgRemoveChecksum>;
|
|
118
|
+
fromPartial(object: Partial<MsgRemoveChecksum>): MsgRemoveChecksum;
|
|
119
|
+
fromProtoMsg(message: MsgRemoveChecksumProtoMsg): MsgRemoveChecksum;
|
|
120
|
+
toProto(message: MsgRemoveChecksum): Uint8Array;
|
|
121
|
+
toProtoMsg(message: MsgRemoveChecksum): MsgRemoveChecksumProtoMsg;
|
|
122
|
+
};
|
|
123
|
+
export declare const MsgRemoveChecksumResponse: {
|
|
124
|
+
typeUrl: string;
|
|
125
|
+
encode(_: MsgRemoveChecksumResponse, writer?: BinaryWriter): BinaryWriter;
|
|
126
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveChecksumResponse;
|
|
127
|
+
fromJSON(_: any): MsgRemoveChecksumResponse;
|
|
128
|
+
toJSON(_: MsgRemoveChecksumResponse): JsonSafe<MsgRemoveChecksumResponse>;
|
|
129
|
+
fromPartial(_: Partial<MsgRemoveChecksumResponse>): MsgRemoveChecksumResponse;
|
|
130
|
+
fromProtoMsg(message: MsgRemoveChecksumResponseProtoMsg): MsgRemoveChecksumResponse;
|
|
131
|
+
toProto(message: MsgRemoveChecksumResponse): Uint8Array;
|
|
132
|
+
toProtoMsg(message: MsgRemoveChecksumResponse): MsgRemoveChecksumResponseProtoMsg;
|
|
133
|
+
};
|
|
134
|
+
export declare const MsgMigrateContract: {
|
|
135
|
+
typeUrl: string;
|
|
136
|
+
encode(message: MsgMigrateContract, writer?: BinaryWriter): BinaryWriter;
|
|
137
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgMigrateContract;
|
|
138
|
+
fromJSON(object: any): MsgMigrateContract;
|
|
139
|
+
toJSON(message: MsgMigrateContract): JsonSafe<MsgMigrateContract>;
|
|
140
|
+
fromPartial(object: Partial<MsgMigrateContract>): MsgMigrateContract;
|
|
141
|
+
fromProtoMsg(message: MsgMigrateContractProtoMsg): MsgMigrateContract;
|
|
142
|
+
toProto(message: MsgMigrateContract): Uint8Array;
|
|
143
|
+
toProtoMsg(message: MsgMigrateContract): MsgMigrateContractProtoMsg;
|
|
144
|
+
};
|
|
145
|
+
export declare const MsgMigrateContractResponse: {
|
|
146
|
+
typeUrl: string;
|
|
147
|
+
encode(_: MsgMigrateContractResponse, writer?: BinaryWriter): BinaryWriter;
|
|
148
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgMigrateContractResponse;
|
|
149
|
+
fromJSON(_: any): MsgMigrateContractResponse;
|
|
150
|
+
toJSON(_: MsgMigrateContractResponse): JsonSafe<MsgMigrateContractResponse>;
|
|
151
|
+
fromPartial(_: Partial<MsgMigrateContractResponse>): MsgMigrateContractResponse;
|
|
152
|
+
fromProtoMsg(message: MsgMigrateContractResponseProtoMsg): MsgMigrateContractResponse;
|
|
153
|
+
toProto(message: MsgMigrateContractResponse): Uint8Array;
|
|
154
|
+
toProtoMsg(message: MsgMigrateContractResponse): MsgMigrateContractResponseProtoMsg;
|
|
155
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BinaryReader as e,BinaryWriter as s}from"../../../../binary.js";import{isSet as t}from"../../../../helpers.js";import{decodeBase64 as o}from"@endo/base64";import{encodeBase64 as n}from"@endo/base64";import{}from"../../../../json-safe.js";function r(){return{signer:"",wasmByteCode:new Uint8Array}}export const MsgStoreCode={typeUrl:"/ibc.lightclients.wasm.v1.MsgStoreCode",encode:(e,t=s.create())=>(""!==e.signer&&t.uint32(10).string(e.signer),0!==e.wasmByteCode.length&&t.uint32(18).bytes(e.wasmByteCode),t),decode(s,t){const o=s instanceof e?s:new e(s);let n=void 0===t?o.len:o.pos+t;const c=r();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:c.signer=o.string();break;case 2:c.wasmByteCode=o.bytes();break;default:o.skipType(7&e)}}return c},fromJSON:e=>({signer:t(e.signer)?String(e.signer):"",wasmByteCode:t(e.wasmByteCode)?o(e.wasmByteCode):new Uint8Array}),toJSON(e){const s={};return void 0!==e.signer&&(s.signer=e.signer),void 0!==e.wasmByteCode&&(s.wasmByteCode=n(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),s},fromPartial(e){const s=r();return s.signer=e.signer??"",s.wasmByteCode=e.wasmByteCode??new Uint8Array,s},fromProtoMsg:e=>MsgStoreCode.decode(e.value),toProto:e=>MsgStoreCode.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.MsgStoreCode",value:MsgStoreCode.encode(e).finish()})};function c(){return{checksum:new Uint8Array}}export const MsgStoreCodeResponse={typeUrl:"/ibc.lightclients.wasm.v1.MsgStoreCodeResponse",encode:(e,t=s.create())=>(0!==e.checksum.length&&t.uint32(10).bytes(e.checksum),t),decode(s,t){const o=s instanceof e?s:new e(s);let n=void 0===t?o.len:o.pos+t;const r=c();for(;o.pos<n;){const e=o.uint32();e>>>3==1?r.checksum=o.bytes():o.skipType(7&e)}return r},fromJSON:e=>({checksum:t(e.checksum)?o(e.checksum):new Uint8Array}),toJSON(e){const s={};return void 0!==e.checksum&&(s.checksum=n(void 0!==e.checksum?e.checksum:new Uint8Array)),s},fromPartial(e){const s=c();return s.checksum=e.checksum??new Uint8Array,s},fromProtoMsg:e=>MsgStoreCodeResponse.decode(e.value),toProto:e=>MsgStoreCodeResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.MsgStoreCodeResponse",value:MsgStoreCodeResponse.encode(e).finish()})};function i(){return{signer:"",checksum:new Uint8Array}}export const MsgRemoveChecksum={typeUrl:"/ibc.lightclients.wasm.v1.MsgRemoveChecksum",encode:(e,t=s.create())=>(""!==e.signer&&t.uint32(10).string(e.signer),0!==e.checksum.length&&t.uint32(18).bytes(e.checksum),t),decode(s,t){const o=s instanceof e?s:new e(s);let n=void 0===t?o.len:o.pos+t;const r=i();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:r.signer=o.string();break;case 2:r.checksum=o.bytes();break;default:o.skipType(7&e)}}return r},fromJSON:e=>({signer:t(e.signer)?String(e.signer):"",checksum:t(e.checksum)?o(e.checksum):new Uint8Array}),toJSON(e){const s={};return void 0!==e.signer&&(s.signer=e.signer),void 0!==e.checksum&&(s.checksum=n(void 0!==e.checksum?e.checksum:new Uint8Array)),s},fromPartial(e){const s=i();return s.signer=e.signer??"",s.checksum=e.checksum??new Uint8Array,s},fromProtoMsg:e=>MsgRemoveChecksum.decode(e.value),toProto:e=>MsgRemoveChecksum.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.MsgRemoveChecksum",value:MsgRemoveChecksum.encode(e).finish()})};export const MsgRemoveChecksumResponse={typeUrl:"/ibc.lightclients.wasm.v1.MsgRemoveChecksumResponse",encode:(e,t=s.create())=>t,decode(s,t){const o=s instanceof e?s:new e(s);let n=void 0===t?o.len:o.pos+t;for(;o.pos<n;){const e=o.uint32();o.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgRemoveChecksumResponse.decode(e.value),toProto:e=>MsgRemoveChecksumResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.MsgRemoveChecksumResponse",value:MsgRemoveChecksumResponse.encode(e).finish()})};function a(){return{signer:"",clientId:"",checksum:new Uint8Array,msg:new Uint8Array}}export const MsgMigrateContract={typeUrl:"/ibc.lightclients.wasm.v1.MsgMigrateContract",encode:(e,t=s.create())=>(""!==e.signer&&t.uint32(10).string(e.signer),""!==e.clientId&&t.uint32(18).string(e.clientId),0!==e.checksum.length&&t.uint32(26).bytes(e.checksum),0!==e.msg.length&&t.uint32(34).bytes(e.msg),t),decode(s,t){const o=s instanceof e?s:new e(s);let n=void 0===t?o.len:o.pos+t;const r=a();for(;o.pos<n;){const e=o.uint32();switch(e>>>3){case 1:r.signer=o.string();break;case 2:r.clientId=o.string();break;case 3:r.checksum=o.bytes();break;case 4:r.msg=o.bytes();break;default:o.skipType(7&e)}}return r},fromJSON:e=>({signer:t(e.signer)?String(e.signer):"",clientId:t(e.clientId)?String(e.clientId):"",checksum:t(e.checksum)?o(e.checksum):new Uint8Array,msg:t(e.msg)?o(e.msg):new Uint8Array}),toJSON(e){const s={};return void 0!==e.signer&&(s.signer=e.signer),void 0!==e.clientId&&(s.clientId=e.clientId),void 0!==e.checksum&&(s.checksum=n(void 0!==e.checksum?e.checksum:new Uint8Array)),void 0!==e.msg&&(s.msg=n(void 0!==e.msg?e.msg:new Uint8Array)),s},fromPartial(e){const s=a();return s.signer=e.signer??"",s.clientId=e.clientId??"",s.checksum=e.checksum??new Uint8Array,s.msg=e.msg??new Uint8Array,s},fromProtoMsg:e=>MsgMigrateContract.decode(e.value),toProto:e=>MsgMigrateContract.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.MsgMigrateContract",value:MsgMigrateContract.encode(e).finish()})};export const MsgMigrateContractResponse={typeUrl:"/ibc.lightclients.wasm.v1.MsgMigrateContractResponse",encode:(e,t=s.create())=>t,decode(s,t){const o=s instanceof e?s:new e(s);let n=void 0===t?o.len:o.pos+t;for(;o.pos<n;){const e=o.uint32();o.skipType(7&e)}return{}},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgMigrateContractResponse.decode(e.value),toProto:e=>MsgMigrateContractResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/ibc.lightclients.wasm.v1.MsgMigrateContractResponse",value:MsgMigrateContractResponse.encode(e).finish()})};
|