Skip to content

Commit 8df2eba

Browse files
authored
Merge pull request #12 from hyperweb-io/dev/updated-protos-0c4
chore(hyperwebjs): updated protos for 0c4829
2 parents 717dfaa + 647f901 commit 8df2eba

File tree

20 files changed

+1094
-811
lines changed

20 files changed

+1094
-811
lines changed

Diff for: packages/hyperwebjs/src/amino/bundle.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as _6 from "./amino";
1+
import * as _11 from "./amino";
22
export const amino = {
3-
..._6
3+
..._11
44
};

Diff for: packages/hyperwebjs/src/cosmos/bundle.ts

+465-465
Large diffs are not rendered by default.

Diff for: packages/hyperwebjs/src/cosmos_proto/bundle.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as _153 from "./cosmos";
1+
import * as _158 from "./cosmos";
22
export const cosmos_proto = {
3-
..._153
3+
..._158
44
};

Diff for: packages/hyperwebjs/src/cosmwasm/bundle.ts

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
import * as _154 from "./wasm/v1/authz";
2-
import * as _155 from "./wasm/v1/genesis";
3-
import * as _156 from "./wasm/v1/ibc";
4-
import * as _157 from "./wasm/v1/proposal";
5-
import * as _158 from "./wasm/v1/query";
6-
import * as _159 from "./wasm/v1/tx";
7-
import * as _160 from "./wasm/v1/types";
8-
import * as _295 from "./wasm/v1/tx.amino";
9-
import * as _296 from "./wasm/v1/tx.registry";
10-
import * as _297 from "./wasm/v1/query.lcd";
11-
import * as _298 from "./wasm/v1/query.rpc.Query";
12-
import * as _299 from "./wasm/v1/tx.rpc.msg";
13-
import * as _327 from "./lcd";
14-
import * as _328 from "./rpc.query";
15-
import * as _329 from "./rpc.tx";
1+
import * as _159 from "./wasm/v1/authz";
2+
import * as _160 from "./wasm/v1/genesis";
3+
import * as _161 from "./wasm/v1/ibc";
4+
import * as _162 from "./wasm/v1/proposal";
5+
import * as _163 from "./wasm/v1/query";
6+
import * as _164 from "./wasm/v1/tx";
7+
import * as _165 from "./wasm/v1/types";
8+
import * as _305 from "./wasm/v1/tx.amino";
9+
import * as _306 from "./wasm/v1/tx.registry";
10+
import * as _307 from "./wasm/v1/query.lcd";
11+
import * as _308 from "./wasm/v1/query.rpc.Query";
12+
import * as _309 from "./wasm/v1/tx.rpc.msg";
13+
import * as _340 from "./lcd";
14+
import * as _341 from "./rpc.query";
15+
import * as _342 from "./rpc.tx";
1616
export namespace cosmwasm {
1717
export namespace wasm {
1818
export const v1 = {
19-
..._154,
20-
..._155,
21-
..._156,
22-
..._157,
23-
..._158,
2419
..._159,
2520
..._160,
26-
..._295,
27-
..._296,
28-
..._297,
29-
..._298,
30-
..._299
21+
..._161,
22+
..._162,
23+
..._163,
24+
..._164,
25+
..._165,
26+
..._305,
27+
..._306,
28+
..._307,
29+
..._308,
30+
..._309
3131
};
3232
}
3333
export const ClientFactory = {
34-
..._327,
35-
..._328,
36-
..._329
34+
..._340,
35+
..._341,
36+
..._342
3737
};
3838
}

Diff for: packages/hyperwebjs/src/gogoproto/bundle.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as _161 from "./gogo";
1+
import * as _166 from "./gogo";
22
export const gogoproto = {
3-
..._161
3+
..._166
44
};

Diff for: packages/hyperwebjs/src/google/bundle.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import * as _162 from "./api/annotations";
2-
import * as _163 from "./api/http";
3-
import * as _164 from "./protobuf/any";
4-
import * as _165 from "./protobuf/descriptor";
5-
import * as _166 from "./protobuf/duration";
6-
import * as _167 from "./protobuf/empty";
7-
import * as _168 from "./protobuf/timestamp";
1+
import * as _167 from "./api/annotations";
2+
import * as _168 from "./api/http";
3+
import * as _169 from "./protobuf/any";
4+
import * as _170 from "./protobuf/descriptor";
5+
import * as _171 from "./protobuf/duration";
6+
import * as _172 from "./protobuf/empty";
7+
import * as _173 from "./protobuf/timestamp";
88
export namespace google {
99
export const api = {
10-
..._162,
11-
..._163
12-
};
13-
export const protobuf = {
14-
..._164,
15-
..._165,
16-
..._166,
1710
..._167,
1811
..._168
1912
};
13+
export const protobuf = {
14+
..._169,
15+
..._170,
16+
..._171,
17+
..._172,
18+
..._173
19+
};
2020
}

Diff for: packages/hyperwebjs/src/hyperweb/bundle.ts

+16-16
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import * as _2 from "./hvm/genesis";
44
import * as _3 from "./hvm/params";
55
import * as _4 from "./hvm/query";
66
import * as _5 from "./hvm/tx";
7-
import * as _193 from "./hvm/tx.amino";
8-
import * as _194 from "./hvm/tx.registry";
9-
import * as _195 from "./hvm/query.lcd";
10-
import * as _196 from "./hvm/query.rpc.Query";
11-
import * as _197 from "./hvm/tx.rpc.msg";
12-
import * as _321 from "./lcd";
13-
import * as _322 from "./rpc.query";
14-
import * as _323 from "./rpc.tx";
7+
import * as _198 from "./hvm/tx.amino";
8+
import * as _199 from "./hvm/tx.registry";
9+
import * as _200 from "./hvm/query.lcd";
10+
import * as _201 from "./hvm/query.rpc.Query";
11+
import * as _202 from "./hvm/tx.rpc.msg";
12+
import * as _331 from "./lcd";
13+
import * as _332 from "./rpc.query";
14+
import * as _333 from "./rpc.tx";
1515
export namespace hyperweb {
1616
export const hvm = {
1717
..._0,
@@ -20,15 +20,15 @@ export namespace hyperweb {
2020
..._3,
2121
..._4,
2222
..._5,
23-
..._193,
24-
..._194,
25-
..._195,
26-
..._196,
27-
..._197
23+
..._198,
24+
..._199,
25+
..._200,
26+
..._201,
27+
..._202
2828
};
2929
export const ClientFactory = {
30-
..._321,
31-
..._322,
32-
..._323
30+
..._331,
31+
..._332,
32+
..._333
3333
};
3434
}

Diff for: packages/hyperwebjs/src/hyperweb/hvm/contract_account.ts

+20-22
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { GlobalDecoderRegistry } from "../../registry";
55
export const protobufPackage = "hyperweb.hvm";
66
/** contract account */
77
export interface ContractAccount {
8-
/** contract account index */
9-
index: bigint;
8+
/** contract address */
9+
contractAddress: string;
1010
/** account number */
1111
accountNumber: bigint;
1212
}
@@ -16,8 +16,8 @@ export interface ContractAccountProtoMsg {
1616
}
1717
/** contract account */
1818
export interface ContractAccountAmino {
19-
/** contract account index */
20-
index?: string;
19+
/** contract address */
20+
contract_address?: string;
2121
/** account number */
2222
account_number?: string;
2323
}
@@ -27,29 +27,29 @@ export interface ContractAccountAminoMsg {
2727
}
2828
/** contract account */
2929
export interface ContractAccountSDKType {
30-
index: bigint;
30+
contract_address: string;
3131
account_number: bigint;
3232
}
3333
function createBaseContractAccount(): ContractAccount {
3434
return {
35-
index: BigInt(0),
35+
contractAddress: "",
3636
accountNumber: BigInt(0)
3737
};
3838
}
3939
export const ContractAccount = {
4040
typeUrl: "/hyperweb.hvm.ContractAccount",
4141
is(o: any): o is ContractAccount {
42-
return o && (o.$typeUrl === ContractAccount.typeUrl || typeof o.index === "bigint" && typeof o.accountNumber === "bigint");
42+
return o && (o.$typeUrl === ContractAccount.typeUrl || typeof o.contractAddress === "string" && typeof o.accountNumber === "bigint");
4343
},
4444
isSDK(o: any): o is ContractAccountSDKType {
45-
return o && (o.$typeUrl === ContractAccount.typeUrl || typeof o.index === "bigint" && typeof o.account_number === "bigint");
45+
return o && (o.$typeUrl === ContractAccount.typeUrl || typeof o.contract_address === "string" && typeof o.account_number === "bigint");
4646
},
4747
isAmino(o: any): o is ContractAccountAmino {
48-
return o && (o.$typeUrl === ContractAccount.typeUrl || typeof o.index === "bigint" && typeof o.account_number === "bigint");
48+
return o && (o.$typeUrl === ContractAccount.typeUrl || typeof o.contract_address === "string" && typeof o.account_number === "bigint");
4949
},
5050
encode(message: ContractAccount, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
51-
if (message.index !== undefined) {
52-
writer.uint32(8).uint64(message.index);
51+
if (message.contractAddress !== undefined) {
52+
writer.uint32(10).string(message.contractAddress);
5353
}
5454
if (message.accountNumber !== undefined) {
5555
writer.uint32(16).uint64(message.accountNumber);
@@ -64,7 +64,7 @@ export const ContractAccount = {
6464
const tag = reader.uint32();
6565
switch (tag >>> 3) {
6666
case 1:
67-
message.index = reader.uint64();
67+
message.contractAddress = reader.string();
6868
break;
6969
case 2:
7070
message.accountNumber = reader.uint64();
@@ -78,42 +78,40 @@ export const ContractAccount = {
7878
},
7979
fromJSON(object: any): ContractAccount {
8080
const obj = createBaseContractAccount();
81-
if (isSet(object.index)) obj.index = BigInt(object.index.toString());
81+
if (isSet(object.contractAddress)) obj.contractAddress = String(object.contractAddress);
8282
if (isSet(object.accountNumber)) obj.accountNumber = BigInt(object.accountNumber.toString());
8383
return obj;
8484
},
8585
toJSON(message: ContractAccount): JsonSafe<ContractAccount> {
8686
const obj: any = {};
87-
message.index !== undefined && (obj.index = (message.index || BigInt(0)).toString());
87+
message.contractAddress !== undefined && (obj.contractAddress = message.contractAddress);
8888
message.accountNumber !== undefined && (obj.accountNumber = (message.accountNumber || BigInt(0)).toString());
8989
return obj;
9090
},
9191
fromPartial(object: DeepPartial<ContractAccount>): ContractAccount {
9292
const message = createBaseContractAccount();
93-
if (object.index !== undefined && object.index !== null) {
94-
message.index = BigInt(object.index.toString());
95-
}
93+
message.contractAddress = object.contractAddress ?? "";
9694
if (object.accountNumber !== undefined && object.accountNumber !== null) {
9795
message.accountNumber = BigInt(object.accountNumber.toString());
9896
}
9997
return message;
10098
},
10199
fromSDK(object: ContractAccountSDKType): ContractAccount {
102100
return {
103-
index: object?.index,
101+
contractAddress: object?.contract_address,
104102
accountNumber: object?.account_number
105103
};
106104
},
107105
toSDK(message: ContractAccount): ContractAccountSDKType {
108106
const obj: any = {};
109-
obj.index = message.index;
107+
obj.contract_address = message.contractAddress;
110108
obj.account_number = message.accountNumber;
111109
return obj;
112110
},
113111
fromAmino(object: ContractAccountAmino): ContractAccount {
114112
const message = createBaseContractAccount();
115-
if (object.index !== undefined && object.index !== null) {
116-
message.index = BigInt(object.index);
113+
if (object.contract_address !== undefined && object.contract_address !== null) {
114+
message.contractAddress = object.contract_address;
117115
}
118116
if (object.account_number !== undefined && object.account_number !== null) {
119117
message.accountNumber = BigInt(object.account_number);
@@ -122,7 +120,7 @@ export const ContractAccount = {
122120
},
123121
toAmino(message: ContractAccount): ContractAccountAmino {
124122
const obj: any = {};
125-
obj.index = message.index !== BigInt(0) ? (message.index?.toString)() : undefined;
123+
obj.contract_address = message.contractAddress === "" ? undefined : message.contractAddress;
126124
obj.account_number = message.accountNumber !== BigInt(0) ? (message.accountNumber?.toString)() : undefined;
127125
return obj;
128126
},

0 commit comments

Comments
 (0)