@ark-us/wasmxjs 0.0.3 → 0.0.4
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/main/codegen/index.js +10 -10
- package/main/codegen/{wasmx → mythos}/bundle.js +21 -21
- package/main/codegen/{wasmx → mythos}/client.js +19 -19
- package/main/codegen/{wasmx → mythos}/rpc.query.js +1 -1
- package/main/codegen/{wasmx → mythos}/rpc.tx.js +1 -1
- package/main/codegen/{wasmx → mythos}/wasmx/v1/query.rpc.Query.js +9 -9
- package/main/codegen/{wasmx → mythos}/wasmx/v1/tx.amino.js +16 -16
- package/main/codegen/{wasmx → mythos}/wasmx/v1/tx.registry.js +41 -41
- package/main/codegen/{wasmx → mythos}/wasmx/v1/tx.rpc.msg.js +8 -8
- package/main/codegen/{wasmx → mythos}/websrv/v1/query.rpc.Query.js +7 -7
- package/main/codegen/{wasmx → mythos}/websrv/v1/tx.amino.js +6 -6
- package/main/codegen/{wasmx → mythos}/websrv/v1/tx.registry.js +16 -16
- package/main/codegen/{wasmx → mythos}/websrv/v1/tx.rpc.msg.js +3 -3
- package/main/codegen/tendermint/bundle.js +17 -17
- package/module/codegen/index.js +3 -3
- package/module/codegen/{wasmx → mythos}/bundle.js +19 -19
- package/module/codegen/{wasmx → mythos}/client.js +11 -11
- package/module/codegen/{wasmx → mythos}/rpc.query.js +1 -1
- package/module/codegen/{wasmx → mythos}/rpc.tx.js +1 -1
- package/module/codegen/{wasmx → mythos}/wasmx/v1/query.rpc.Query.js +9 -9
- package/module/codegen/{wasmx → mythos}/wasmx/v1/tx.amino.js +16 -16
- package/module/codegen/{wasmx → mythos}/wasmx/v1/tx.registry.js +41 -41
- package/module/codegen/{wasmx → mythos}/wasmx/v1/tx.rpc.msg.js +8 -8
- package/module/codegen/{wasmx → mythos}/websrv/v1/query.rpc.Query.js +7 -7
- package/module/codegen/{wasmx → mythos}/websrv/v1/tx.amino.js +6 -6
- package/module/codegen/{wasmx → mythos}/websrv/v1/tx.registry.js +16 -16
- package/module/codegen/{wasmx → mythos}/websrv/v1/tx.rpc.msg.js +3 -3
- package/module/codegen/tendermint/bundle.js +17 -17
- package/package.json +1 -1
- package/src/codegen/index.ts +3 -3
- package/src/codegen/{wasmx → mythos}/bundle.ts +21 -21
- package/src/codegen/{wasmx → mythos}/client.ts +12 -12
- package/src/codegen/{wasmx → mythos}/rpc.query.ts +1 -1
- package/src/codegen/{wasmx → mythos}/rpc.tx.ts +1 -1
- package/src/codegen/{wasmx → mythos}/wasmx/v1/query.rpc.Query.ts +9 -9
- package/src/codegen/{wasmx → mythos}/wasmx/v1/tx.amino.ts +24 -24
- package/src/codegen/{wasmx → mythos}/wasmx/v1/tx.registry.ts +41 -41
- package/src/codegen/{wasmx → mythos}/wasmx/v1/tx.rpc.msg.ts +8 -8
- package/src/codegen/{wasmx → mythos}/websrv/v1/query.rpc.Query.ts +7 -7
- package/src/codegen/{wasmx → mythos}/websrv/v1/tx.amino.ts +9 -9
- package/src/codegen/{wasmx → mythos}/websrv/v1/tx.registry.ts +16 -16
- package/src/codegen/{wasmx → mythos}/websrv/v1/tx.rpc.msg.ts +3 -3
- package/src/codegen/tendermint/bundle.ts +22 -22
- package/types/codegen/index.d.ts +3 -3
- package/types/codegen/mythos/bundle.d.ts +1039 -0
- package/types/codegen/{wasmx → mythos}/client.d.ts +15 -15
- package/types/codegen/mythos/index.d.ts +11 -0
- package/types/codegen/{wasmx → mythos}/rpc.query.d.ts +1 -1
- package/types/codegen/{wasmx → mythos}/rpc.tx.d.ts +1 -1
- package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.amino.d.ts +16 -16
- package/types/codegen/{wasmx → mythos}/websrv/v1/tx.amino.d.ts +6 -6
- package/types/codegen/tendermint/bundle.d.ts +456 -456
- package/types/codegen/wasmx/bundle.d.ts +0 -1039
- package/types/codegen/wasmx/index.d.ts +0 -11
- package/types/codegen/wasmx/lcd.d.ts +0 -14
- package/types/codegen/wasmx/wasmx/contract.d.ts +0 -139
- package/types/codegen/wasmx/wasmx/genesis.d.ts +0 -121
- package/types/codegen/wasmx/wasmx/query.d.ts +0 -451
- package/types/codegen/wasmx/wasmx/query.lcd.d.ts +0 -17
- package/types/codegen/wasmx/wasmx/query.rpc.Query.d.ts +0 -48
- package/types/codegen/wasmx/wasmx/tx.d.ts +0 -404
- package/types/codegen/wasmx/wasmx/tx.rpc.msg.d.ts +0 -39
- package/types/codegen/wasmx/wasmx/v1/params.d.ts +0 -14
- package/types/codegen/wasmx/wasmx/v1/tx.amino.d.ts +0 -134
- package/types/codegen/wasmx/wasmx/v1/tx.registry.d.ts +0 -176
- package/types/codegen/wasmx/websrv/query.d.ts +0 -315
- package/types/codegen/wasmx/websrv/query.rpc.Query.d.ts +0 -40
- package/types/codegen/wasmx/websrv/tx.amino.d.ts +0 -41
- package/types/codegen/wasmx/websrv/tx.d.ts +0 -90
- package/types/codegen/wasmx/websrv/tx.rpc.msg.d.ts +0 -18
- package/types/codegen/wasmx/websrv/v1/genesis.d.ts +0 -17
- package/types/codegen/wasmx/websrv/v1/params.d.ts +0 -16
- package/types/codegen/wasmx/websrv/v1/proposal.d.ts +0 -65
- package/types/codegen/wasmx/websrv/v1/tx.registry.d.ts +0 -76
- /package/main/codegen/{wasmx → mythos}/index.js +0 -0
- /package/main/codegen/{wasmx → mythos}/wasmx/v1/contract.js +0 -0
- /package/main/codegen/{wasmx → mythos}/wasmx/v1/genesis.js +0 -0
- /package/main/codegen/{wasmx → mythos}/wasmx/v1/params.js +0 -0
- /package/main/codegen/{wasmx → mythos}/wasmx/v1/query.js +0 -0
- /package/main/codegen/{wasmx → mythos}/wasmx/v1/tx.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/genesis.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/params.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/proposal.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/query.js +0 -0
- /package/main/codegen/{wasmx → mythos}/websrv/v1/tx.js +0 -0
- /package/module/codegen/{wasmx → mythos}/index.js +0 -0
- /package/module/codegen/{wasmx → mythos}/wasmx/v1/contract.js +0 -0
- /package/module/codegen/{wasmx → mythos}/wasmx/v1/genesis.js +0 -0
- /package/module/codegen/{wasmx → mythos}/wasmx/v1/params.js +0 -0
- /package/module/codegen/{wasmx → mythos}/wasmx/v1/query.js +0 -0
- /package/module/codegen/{wasmx → mythos}/wasmx/v1/tx.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/genesis.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/params.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/proposal.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/query.js +0 -0
- /package/module/codegen/{wasmx → mythos}/websrv/v1/tx.js +0 -0
- /package/src/codegen/{wasmx → mythos}/index.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/wasmx/v1/contract.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/wasmx/v1/genesis.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/wasmx/v1/params.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/wasmx/v1/query.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/wasmx/v1/tx.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/genesis.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/params.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/proposal.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/query.ts +0 -0
- /package/src/codegen/{wasmx → mythos}/websrv/v1/tx.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/contract.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/genesis.d.ts +0 -0
- /package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/params.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/query.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/query.rpc.Query.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/tx.d.ts +0 -0
- /package/types/codegen/{wasmx/wasmx → mythos/wasmx/v1}/tx.registry.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/wasmx/v1/tx.rpc.msg.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/genesis.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/params.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/proposal.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/websrv/v1/query.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/websrv/v1/query.rpc.Query.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/websrv/v1/tx.d.ts +0 -0
- /package/types/codegen/{wasmx/websrv → mythos/websrv/v1}/tx.registry.d.ts +0 -0
- /package/types/codegen/{wasmx → mythos}/websrv/v1/tx.rpc.msg.d.ts +0 -0
|
@@ -18,42 +18,42 @@ export class MsgClientImpl {
|
|
|
18
18
|
}
|
|
19
19
|
storeCode(request) {
|
|
20
20
|
const data = MsgStoreCode.encode(request).finish();
|
|
21
|
-
const promise = this.rpc.request("
|
|
21
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "StoreCode", data);
|
|
22
22
|
return promise.then(data => MsgStoreCodeResponse.decode(new _m0.Reader(data)));
|
|
23
23
|
}
|
|
24
24
|
storeCodeEvm(request) {
|
|
25
25
|
const data = MsgStoreCodeEvm.encode(request).finish();
|
|
26
|
-
const promise = this.rpc.request("
|
|
26
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "StoreCodeEvm", data);
|
|
27
27
|
return promise.then(data => MsgStoreCodeEvmResponse.decode(new _m0.Reader(data)));
|
|
28
28
|
}
|
|
29
29
|
instantiateContract(request) {
|
|
30
30
|
const data = MsgInstantiateContract.encode(request).finish();
|
|
31
|
-
const promise = this.rpc.request("
|
|
31
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "InstantiateContract", data);
|
|
32
32
|
return promise.then(data => MsgInstantiateContractResponse.decode(new _m0.Reader(data)));
|
|
33
33
|
}
|
|
34
34
|
instantiateContract2(request) {
|
|
35
35
|
const data = MsgInstantiateContract2.encode(request).finish();
|
|
36
|
-
const promise = this.rpc.request("
|
|
36
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "InstantiateContract2", data);
|
|
37
37
|
return promise.then(data => MsgInstantiateContract2Response.decode(new _m0.Reader(data)));
|
|
38
38
|
}
|
|
39
39
|
executeContract(request) {
|
|
40
40
|
const data = MsgExecuteContract.encode(request).finish();
|
|
41
|
-
const promise = this.rpc.request("
|
|
41
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "ExecuteContract", data);
|
|
42
42
|
return promise.then(data => MsgExecuteContractResponse.decode(new _m0.Reader(data)));
|
|
43
43
|
}
|
|
44
44
|
executeWithOriginContract(request) {
|
|
45
45
|
const data = MsgExecuteWithOriginContract.encode(request).finish();
|
|
46
|
-
const promise = this.rpc.request("
|
|
46
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "ExecuteWithOriginContract", data);
|
|
47
47
|
return promise.then(data => MsgExecuteContractResponse.decode(new _m0.Reader(data)));
|
|
48
48
|
}
|
|
49
49
|
executeDelegateContract(request) {
|
|
50
50
|
const data = MsgExecuteDelegateContract.encode(request).finish();
|
|
51
|
-
const promise = this.rpc.request("
|
|
51
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "ExecuteDelegateContract", data);
|
|
52
52
|
return promise.then(data => MsgExecuteDelegateContractResponse.decode(new _m0.Reader(data)));
|
|
53
53
|
}
|
|
54
54
|
compileContract(request) {
|
|
55
55
|
const data = MsgCompileContract.encode(request).finish();
|
|
56
|
-
const promise = this.rpc.request("
|
|
56
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Msg", "CompileContract", data);
|
|
57
57
|
return promise.then(data => MsgCompileContractResponse.decode(new _m0.Reader(data)));
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -18,39 +18,39 @@ export class QueryClientImpl {
|
|
|
18
18
|
}
|
|
19
19
|
httpGet(request) {
|
|
20
20
|
const data = QueryHttpRequestGet.encode(request).finish();
|
|
21
|
-
const promise = this.rpc.request("
|
|
21
|
+
const promise = this.rpc.request("mythos.websrv.v1.Query", "HttpGet", data);
|
|
22
22
|
return promise.then(data => QueryHttpResponseGet.decode(new _m0.Reader(data)));
|
|
23
23
|
}
|
|
24
24
|
contractByRoute(request) {
|
|
25
25
|
const data = QueryContractByRouteRequest.encode(request).finish();
|
|
26
|
-
const promise = this.rpc.request("
|
|
26
|
+
const promise = this.rpc.request("mythos.websrv.v1.Query", "ContractByRoute", data);
|
|
27
27
|
return promise.then(data => QueryContractByRouteResponse.decode(new _m0.Reader(data)));
|
|
28
28
|
}
|
|
29
29
|
routeByContract(request) {
|
|
30
30
|
const data = QueryRouteByContractRequest.encode(request).finish();
|
|
31
|
-
const promise = this.rpc.request("
|
|
31
|
+
const promise = this.rpc.request("mythos.websrv.v1.Query", "RouteByContract", data);
|
|
32
32
|
return promise.then(data => QueryRouteByContractResponse.decode(new _m0.Reader(data)));
|
|
33
33
|
}
|
|
34
34
|
params(request = {}) {
|
|
35
35
|
const data = QueryParamsRequest.encode(request).finish();
|
|
36
|
-
const promise = this.rpc.request("
|
|
36
|
+
const promise = this.rpc.request("mythos.websrv.v1.Query", "Params", data);
|
|
37
37
|
return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data)));
|
|
38
38
|
}
|
|
39
39
|
getAllOauthClients(request = {
|
|
40
40
|
pagination: undefined
|
|
41
41
|
}) {
|
|
42
42
|
const data = QueryGetAllOauthClientsRequest.encode(request).finish();
|
|
43
|
-
const promise = this.rpc.request("
|
|
43
|
+
const promise = this.rpc.request("mythos.websrv.v1.Query", "GetAllOauthClients", data);
|
|
44
44
|
return promise.then(data => QueryGetAllOauthClientsResponse.decode(new _m0.Reader(data)));
|
|
45
45
|
}
|
|
46
46
|
getOauthClient(request) {
|
|
47
47
|
const data = QueryGetOauthClientRequest.encode(request).finish();
|
|
48
|
-
const promise = this.rpc.request("
|
|
48
|
+
const promise = this.rpc.request("mythos.websrv.v1.Query", "GetOauthClient", data);
|
|
49
49
|
return promise.then(data => QueryGetOauthClientResponse.decode(new _m0.Reader(data)));
|
|
50
50
|
}
|
|
51
51
|
getOauthClientsByOwner(request) {
|
|
52
52
|
const data = QueryGetOauthClientsByOwnerRequest.encode(request).finish();
|
|
53
|
-
const promise = this.rpc.request("
|
|
53
|
+
const promise = this.rpc.request("mythos.websrv.v1.Query", "GetOauthClientsByOwner", data);
|
|
54
54
|
return promise.then(data => QueryGetOauthClientsByOwnerResponse.decode(new _m0.Reader(data)));
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Long } from "../../../helpers";
|
|
2
2
|
export const AminoConverter = {
|
|
3
|
-
"/
|
|
4
|
-
aminoType: "/
|
|
3
|
+
"/mythos.websrv.v1.MsgRegisterOAuthClient": {
|
|
4
|
+
aminoType: "/mythos.websrv.v1.MsgRegisterOAuthClient",
|
|
5
5
|
toAmino: ({
|
|
6
6
|
owner,
|
|
7
7
|
domain
|
|
@@ -21,8 +21,8 @@ export const AminoConverter = {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"/
|
|
25
|
-
aminoType: "/
|
|
24
|
+
"/mythos.websrv.v1.MsgEditOAuthClient": {
|
|
25
|
+
aminoType: "/mythos.websrv.v1.MsgEditOAuthClient",
|
|
26
26
|
toAmino: ({
|
|
27
27
|
owner,
|
|
28
28
|
clientId,
|
|
@@ -46,8 +46,8 @@ export const AminoConverter = {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"/
|
|
50
|
-
aminoType: "/
|
|
49
|
+
"/mythos.websrv.v1.MsgDeregisterOAuthClient": {
|
|
50
|
+
aminoType: "/mythos.websrv.v1.MsgDeregisterOAuthClient",
|
|
51
51
|
toAmino: ({
|
|
52
52
|
owner,
|
|
53
53
|
clientId
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MsgRegisterOAuthClient, MsgEditOAuthClient, MsgDeregisterOAuthClient } from "./tx";
|
|
2
|
-
export const registry = [["/
|
|
2
|
+
export const registry = [["/mythos.websrv.v1.MsgRegisterOAuthClient", MsgRegisterOAuthClient], ["/mythos.websrv.v1.MsgEditOAuthClient", MsgEditOAuthClient], ["/mythos.websrv.v1.MsgDeregisterOAuthClient", MsgDeregisterOAuthClient]];
|
|
3
3
|
export const load = protoRegistry => {
|
|
4
4
|
registry.forEach(([typeUrl, mod]) => {
|
|
5
5
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -9,19 +9,19 @@ export const MessageComposer = {
|
|
|
9
9
|
encoded: {
|
|
10
10
|
registerOAuthClient(value) {
|
|
11
11
|
return {
|
|
12
|
-
typeUrl: "/
|
|
12
|
+
typeUrl: "/mythos.websrv.v1.MsgRegisterOAuthClient",
|
|
13
13
|
value: MsgRegisterOAuthClient.encode(value).finish()
|
|
14
14
|
};
|
|
15
15
|
},
|
|
16
16
|
editOAuthClient(value) {
|
|
17
17
|
return {
|
|
18
|
-
typeUrl: "/
|
|
18
|
+
typeUrl: "/mythos.websrv.v1.MsgEditOAuthClient",
|
|
19
19
|
value: MsgEditOAuthClient.encode(value).finish()
|
|
20
20
|
};
|
|
21
21
|
},
|
|
22
22
|
deregisterOAuthClient(value) {
|
|
23
23
|
return {
|
|
24
|
-
typeUrl: "/
|
|
24
|
+
typeUrl: "/mythos.websrv.v1.MsgDeregisterOAuthClient",
|
|
25
25
|
value: MsgDeregisterOAuthClient.encode(value).finish()
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -29,19 +29,19 @@ export const MessageComposer = {
|
|
|
29
29
|
withTypeUrl: {
|
|
30
30
|
registerOAuthClient(value) {
|
|
31
31
|
return {
|
|
32
|
-
typeUrl: "/
|
|
32
|
+
typeUrl: "/mythos.websrv.v1.MsgRegisterOAuthClient",
|
|
33
33
|
value
|
|
34
34
|
};
|
|
35
35
|
},
|
|
36
36
|
editOAuthClient(value) {
|
|
37
37
|
return {
|
|
38
|
-
typeUrl: "/
|
|
38
|
+
typeUrl: "/mythos.websrv.v1.MsgEditOAuthClient",
|
|
39
39
|
value
|
|
40
40
|
};
|
|
41
41
|
},
|
|
42
42
|
deregisterOAuthClient(value) {
|
|
43
43
|
return {
|
|
44
|
-
typeUrl: "/
|
|
44
|
+
typeUrl: "/mythos.websrv.v1.MsgDeregisterOAuthClient",
|
|
45
45
|
value
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -49,19 +49,19 @@ export const MessageComposer = {
|
|
|
49
49
|
toJSON: {
|
|
50
50
|
registerOAuthClient(value) {
|
|
51
51
|
return {
|
|
52
|
-
typeUrl: "/
|
|
52
|
+
typeUrl: "/mythos.websrv.v1.MsgRegisterOAuthClient",
|
|
53
53
|
value: MsgRegisterOAuthClient.toJSON(value)
|
|
54
54
|
};
|
|
55
55
|
},
|
|
56
56
|
editOAuthClient(value) {
|
|
57
57
|
return {
|
|
58
|
-
typeUrl: "/
|
|
58
|
+
typeUrl: "/mythos.websrv.v1.MsgEditOAuthClient",
|
|
59
59
|
value: MsgEditOAuthClient.toJSON(value)
|
|
60
60
|
};
|
|
61
61
|
},
|
|
62
62
|
deregisterOAuthClient(value) {
|
|
63
63
|
return {
|
|
64
|
-
typeUrl: "/
|
|
64
|
+
typeUrl: "/mythos.websrv.v1.MsgDeregisterOAuthClient",
|
|
65
65
|
value: MsgDeregisterOAuthClient.toJSON(value)
|
|
66
66
|
};
|
|
67
67
|
}
|
|
@@ -69,19 +69,19 @@ export const MessageComposer = {
|
|
|
69
69
|
fromJSON: {
|
|
70
70
|
registerOAuthClient(value) {
|
|
71
71
|
return {
|
|
72
|
-
typeUrl: "/
|
|
72
|
+
typeUrl: "/mythos.websrv.v1.MsgRegisterOAuthClient",
|
|
73
73
|
value: MsgRegisterOAuthClient.fromJSON(value)
|
|
74
74
|
};
|
|
75
75
|
},
|
|
76
76
|
editOAuthClient(value) {
|
|
77
77
|
return {
|
|
78
|
-
typeUrl: "/
|
|
78
|
+
typeUrl: "/mythos.websrv.v1.MsgEditOAuthClient",
|
|
79
79
|
value: MsgEditOAuthClient.fromJSON(value)
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
82
|
deregisterOAuthClient(value) {
|
|
83
83
|
return {
|
|
84
|
-
typeUrl: "/
|
|
84
|
+
typeUrl: "/mythos.websrv.v1.MsgDeregisterOAuthClient",
|
|
85
85
|
value: MsgDeregisterOAuthClient.fromJSON(value)
|
|
86
86
|
};
|
|
87
87
|
}
|
|
@@ -89,19 +89,19 @@ export const MessageComposer = {
|
|
|
89
89
|
fromPartial: {
|
|
90
90
|
registerOAuthClient(value) {
|
|
91
91
|
return {
|
|
92
|
-
typeUrl: "/
|
|
92
|
+
typeUrl: "/mythos.websrv.v1.MsgRegisterOAuthClient",
|
|
93
93
|
value: MsgRegisterOAuthClient.fromPartial(value)
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
editOAuthClient(value) {
|
|
97
97
|
return {
|
|
98
|
-
typeUrl: "/
|
|
98
|
+
typeUrl: "/mythos.websrv.v1.MsgEditOAuthClient",
|
|
99
99
|
value: MsgEditOAuthClient.fromPartial(value)
|
|
100
100
|
};
|
|
101
101
|
},
|
|
102
102
|
deregisterOAuthClient(value) {
|
|
103
103
|
return {
|
|
104
|
-
typeUrl: "/
|
|
104
|
+
typeUrl: "/mythos.websrv.v1.MsgDeregisterOAuthClient",
|
|
105
105
|
value: MsgDeregisterOAuthClient.fromPartial(value)
|
|
106
106
|
};
|
|
107
107
|
}
|
|
@@ -13,17 +13,17 @@ export class MsgClientImpl {
|
|
|
13
13
|
}
|
|
14
14
|
registerOAuthClient(request) {
|
|
15
15
|
const data = MsgRegisterOAuthClient.encode(request).finish();
|
|
16
|
-
const promise = this.rpc.request("
|
|
16
|
+
const promise = this.rpc.request("mythos.websrv.v1.Msg", "RegisterOAuthClient", data);
|
|
17
17
|
return promise.then(data => MsgRegisterOAuthClientResponse.decode(new _m0.Reader(data)));
|
|
18
18
|
}
|
|
19
19
|
editOAuthClient(request) {
|
|
20
20
|
const data = MsgEditOAuthClient.encode(request).finish();
|
|
21
|
-
const promise = this.rpc.request("
|
|
21
|
+
const promise = this.rpc.request("mythos.websrv.v1.Msg", "EditOAuthClient", data);
|
|
22
22
|
return promise.then(data => MsgEditOAuthClientResponse.decode(new _m0.Reader(data)));
|
|
23
23
|
}
|
|
24
24
|
deregisterOAuthClient(request) {
|
|
25
25
|
const data = MsgDeregisterOAuthClient.encode(request).finish();
|
|
26
|
-
const promise = this.rpc.request("
|
|
26
|
+
const promise = this.rpc.request("mythos.websrv.v1.Msg", "DeregisterOAuthClient", data);
|
|
27
27
|
return promise.then(data => MsgDeregisterOAuthClientResponse.decode(new _m0.Reader(data)));
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
4
|
+
import * as _28 from "./abci/types";
|
|
5
|
+
import * as _29 from "./crypto/keys";
|
|
6
|
+
import * as _30 from "./crypto/proof";
|
|
7
|
+
import * as _31 from "./libs/bits/types";
|
|
8
|
+
import * as _32 from "./p2p/types";
|
|
9
|
+
import * as _33 from "./types/block";
|
|
10
|
+
import * as _34 from "./types/evidence";
|
|
11
|
+
import * as _35 from "./types/params";
|
|
12
|
+
import * as _36 from "./types/types";
|
|
13
|
+
import * as _37 from "./types/validator";
|
|
14
|
+
import * as _38 from "./version/types";
|
|
15
15
|
export let tendermint;
|
|
16
16
|
(function (_tendermint) {
|
|
17
|
-
const abci = _tendermint.abci = _objectSpread({},
|
|
18
|
-
const crypto = _tendermint.crypto = _objectSpread(_objectSpread({},
|
|
17
|
+
const abci = _tendermint.abci = _objectSpread({}, _28);
|
|
18
|
+
const crypto = _tendermint.crypto = _objectSpread(_objectSpread({}, _29), _30);
|
|
19
19
|
let libs;
|
|
20
20
|
(function (_libs) {
|
|
21
|
-
const bits = _libs.bits = _objectSpread({},
|
|
21
|
+
const bits = _libs.bits = _objectSpread({}, _31);
|
|
22
22
|
})(libs || (libs = _tendermint.libs || (_tendermint.libs = {})));
|
|
23
|
-
const p2p = _tendermint.p2p = _objectSpread({},
|
|
24
|
-
const types = _tendermint.types = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},
|
|
25
|
-
const version = _tendermint.version = _objectSpread({},
|
|
23
|
+
const p2p = _tendermint.p2p = _objectSpread({}, _32);
|
|
24
|
+
const types = _tendermint.types = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _33), _34), _35), _36), _37);
|
|
25
|
+
const version = _tendermint.version = _objectSpread({}, _38);
|
|
26
26
|
})(tendermint || (tendermint = {}));
|
package/package.json
CHANGED
package/src/codegen/index.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
export * from "./cosmos/bundle";
|
|
8
8
|
export * from "./gogoproto/bundle";
|
|
9
9
|
export * from "./google/bundle";
|
|
10
|
+
export * from "./mythos/bundle";
|
|
11
|
+
export * from "./mythos/client";
|
|
10
12
|
export * from "./tendermint/bundle";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./wasmx/client";
|
|
13
|
-
export * from "./wasmx/index";
|
|
13
|
+
export * from "./mythos/index";
|
|
14
14
|
export * from "./extern";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
1
|
+
import * as _18 from "./wasmx/v1/contract";
|
|
2
|
+
import * as _19 from "./wasmx/v1/genesis";
|
|
3
|
+
import * as _20 from "./wasmx/v1/params";
|
|
4
|
+
import * as _21 from "./wasmx/v1/query";
|
|
5
|
+
import * as _22 from "./wasmx/v1/tx";
|
|
6
|
+
import * as _23 from "./websrv/v1/genesis";
|
|
7
|
+
import * as _24 from "./websrv/v1/params";
|
|
8
|
+
import * as _25 from "./websrv/v1/proposal";
|
|
9
|
+
import * as _26 from "./websrv/v1/query";
|
|
10
|
+
import * as _27 from "./websrv/v1/tx";
|
|
11
11
|
import * as _40 from "./wasmx/v1/tx.amino";
|
|
12
12
|
import * as _41 from "./websrv/v1/tx.amino";
|
|
13
13
|
import * as _42 from "./wasmx/v1/tx.registry";
|
|
@@ -18,13 +18,13 @@ import * as _46 from "./wasmx/v1/tx.rpc.msg";
|
|
|
18
18
|
import * as _47 from "./websrv/v1/tx.rpc.msg";
|
|
19
19
|
import * as _49 from "./rpc.query";
|
|
20
20
|
import * as _50 from "./rpc.tx";
|
|
21
|
-
export namespace
|
|
21
|
+
export namespace mythos {
|
|
22
22
|
export namespace wasmx {
|
|
23
|
-
export const v1 = { ...
|
|
24
|
-
...
|
|
25
|
-
...
|
|
26
|
-
...
|
|
27
|
-
...
|
|
23
|
+
export const v1 = { ..._18,
|
|
24
|
+
..._19,
|
|
25
|
+
..._20,
|
|
26
|
+
..._21,
|
|
27
|
+
..._22,
|
|
28
28
|
..._40,
|
|
29
29
|
..._42,
|
|
30
30
|
..._44,
|
|
@@ -32,11 +32,11 @@ export namespace wasmx {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export namespace websrv {
|
|
35
|
-
export const v1 = { ...
|
|
36
|
-
...
|
|
37
|
-
...
|
|
38
|
-
...
|
|
39
|
-
...
|
|
35
|
+
export const v1 = { ..._23,
|
|
36
|
+
..._24,
|
|
37
|
+
..._25,
|
|
38
|
+
..._26,
|
|
39
|
+
..._27,
|
|
40
40
|
..._41,
|
|
41
41
|
..._43,
|
|
42
42
|
..._45,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
|
|
2
2
|
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
3
3
|
import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
export const
|
|
9
|
-
...
|
|
4
|
+
import * as mythosWasmxV1TxRegistry from "./wasmx/v1/tx.registry";
|
|
5
|
+
import * as mythosWebsrvV1TxRegistry from "./websrv/v1/tx.registry";
|
|
6
|
+
import * as mythosWasmxV1TxAmino from "./wasmx/v1/tx.amino";
|
|
7
|
+
import * as mythosWebsrvV1TxAmino from "./websrv/v1/tx.amino";
|
|
8
|
+
export const mythosAminoConverters = { ...mythosWasmxV1TxAmino.AminoConverter,
|
|
9
|
+
...mythosWebsrvV1TxAmino.AminoConverter
|
|
10
10
|
};
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
11
|
+
export const mythosProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...mythosWasmxV1TxRegistry.registry, ...mythosWebsrvV1TxRegistry.registry];
|
|
12
|
+
export const getSigningMythosClientOptions = ({
|
|
13
13
|
defaultTypes = defaultRegistryTypes
|
|
14
14
|
}: {
|
|
15
15
|
defaultTypes?: ReadonlyArray<[string, GeneratedType]>;
|
|
@@ -17,15 +17,15 @@ export const getSigningWasmxClientOptions = ({
|
|
|
17
17
|
registry: Registry;
|
|
18
18
|
aminoTypes: AminoTypes;
|
|
19
19
|
} => {
|
|
20
|
-
const registry = new Registry([...defaultTypes, ...
|
|
21
|
-
const aminoTypes = new AminoTypes({ ...
|
|
20
|
+
const registry = new Registry([...defaultTypes, ...mythosProtoRegistry]);
|
|
21
|
+
const aminoTypes = new AminoTypes({ ...mythosAminoConverters
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
24
|
registry,
|
|
25
25
|
aminoTypes
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
28
|
+
export const getSigningMythosClient = async ({
|
|
29
29
|
rpcEndpoint,
|
|
30
30
|
signer,
|
|
31
31
|
defaultTypes = defaultRegistryTypes
|
|
@@ -37,7 +37,7 @@ export const getSigningWasmxClient = async ({
|
|
|
37
37
|
const {
|
|
38
38
|
registry,
|
|
39
39
|
aminoTypes
|
|
40
|
-
} =
|
|
40
|
+
} = getSigningMythosClientOptions({
|
|
41
41
|
defaultTypes
|
|
42
42
|
});
|
|
43
43
|
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
@@ -50,37 +50,37 @@ export class QueryClientImpl implements Query {
|
|
|
50
50
|
|
|
51
51
|
contractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse> {
|
|
52
52
|
const data = QueryContractInfoRequest.encode(request).finish();
|
|
53
|
-
const promise = this.rpc.request("
|
|
53
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "ContractInfo", data);
|
|
54
54
|
return promise.then(data => QueryContractInfoResponse.decode(new _m0.Reader(data)));
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
contractsByCode(request: QueryContractsByCodeRequest): Promise<QueryContractsByCodeResponse> {
|
|
58
58
|
const data = QueryContractsByCodeRequest.encode(request).finish();
|
|
59
|
-
const promise = this.rpc.request("
|
|
59
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "ContractsByCode", data);
|
|
60
60
|
return promise.then(data => QueryContractsByCodeResponse.decode(new _m0.Reader(data)));
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
allContractState(request: QueryAllContractStateRequest): Promise<QueryAllContractStateResponse> {
|
|
64
64
|
const data = QueryAllContractStateRequest.encode(request).finish();
|
|
65
|
-
const promise = this.rpc.request("
|
|
65
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "AllContractState", data);
|
|
66
66
|
return promise.then(data => QueryAllContractStateResponse.decode(new _m0.Reader(data)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
rawContractState(request: QueryRawContractStateRequest): Promise<QueryRawContractStateResponse> {
|
|
70
70
|
const data = QueryRawContractStateRequest.encode(request).finish();
|
|
71
|
-
const promise = this.rpc.request("
|
|
71
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "RawContractState", data);
|
|
72
72
|
return promise.then(data => QueryRawContractStateResponse.decode(new _m0.Reader(data)));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
smartContractCall(request: QuerySmartContractCallRequest): Promise<QuerySmartContractCallResponse> {
|
|
76
76
|
const data = QuerySmartContractCallRequest.encode(request).finish();
|
|
77
|
-
const promise = this.rpc.request("
|
|
77
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "SmartContractCall", data);
|
|
78
78
|
return promise.then(data => QuerySmartContractCallResponse.decode(new _m0.Reader(data)));
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
code(request: QueryCodeRequest): Promise<QueryCodeResponse> {
|
|
82
82
|
const data = QueryCodeRequest.encode(request).finish();
|
|
83
|
-
const promise = this.rpc.request("
|
|
83
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "Code", data);
|
|
84
84
|
return promise.then(data => QueryCodeResponse.decode(new _m0.Reader(data)));
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -88,19 +88,19 @@ export class QueryClientImpl implements Query {
|
|
|
88
88
|
pagination: undefined
|
|
89
89
|
}): Promise<QueryCodesResponse> {
|
|
90
90
|
const data = QueryCodesRequest.encode(request).finish();
|
|
91
|
-
const promise = this.rpc.request("
|
|
91
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "Codes", data);
|
|
92
92
|
return promise.then(data => QueryCodesResponse.decode(new _m0.Reader(data)));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
params(request: QueryParamsRequest = {}): Promise<QueryParamsResponse> {
|
|
96
96
|
const data = QueryParamsRequest.encode(request).finish();
|
|
97
|
-
const promise = this.rpc.request("
|
|
97
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "Params", data);
|
|
98
98
|
return promise.then(data => QueryParamsResponse.decode(new _m0.Reader(data)));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
contractsByCreator(request: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponse> {
|
|
102
102
|
const data = QueryContractsByCreatorRequest.encode(request).finish();
|
|
103
|
-
const promise = this.rpc.request("
|
|
103
|
+
const promise = this.rpc.request("mythos.wasmx.v1.Query", "ContractsByCreator", data);
|
|
104
104
|
return promise.then(data => QueryContractsByCreatorResponse.decode(new _m0.Reader(data)));
|
|
105
105
|
}
|
|
106
106
|
|