atlas.js-protos 0.1.0
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/LICENSE +21 -0
- package/README.md +85 -0
- package/dist/filetree/index.d.ts +2 -0
- package/dist/filetree/index.js +8 -0
- package/dist/filetree/index.mjs +3 -0
- package/dist/filetree/query.d.ts +1 -0
- package/dist/filetree/query.js +13 -0
- package/dist/filetree/query.mjs +2 -0
- package/dist/filetree/tx.d.ts +1 -0
- package/dist/filetree/tx.js +11 -0
- package/dist/filetree/tx.mjs +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/index.mjs +1 -0
- package/dist/storage/index.d.ts +5 -0
- package/dist/storage/index.js +16 -0
- package/dist/storage/index.mjs +6 -0
- package/dist/storage/query.d.ts +1 -0
- package/dist/storage/query.js +27 -0
- package/dist/storage/query.mjs +2 -0
- package/dist/storage/tx.d.ts +1 -0
- package/dist/storage/tx.js +21 -0
- package/dist/storage/tx.mjs +2 -0
- package/dist/types/amino/amino.d.ts +1 -0
- package/dist/types/amino/amino.js +2 -0
- package/dist/types/amino/amino.mjs +1 -0
- package/dist/types/amino/bundle.d.ts +1 -0
- package/dist/types/amino/bundle.js +41 -0
- package/dist/types/amino/bundle.mjs +5 -0
- package/dist/types/atlas/bundle.d.ts +905 -0
- package/dist/types/atlas/bundle.js +98 -0
- package/dist/types/atlas/bundle.mjs +62 -0
- package/dist/types/atlas/filetree/v1/genesis.d.ts +45 -0
- package/dist/types/atlas/filetree/v1/genesis.js +107 -0
- package/dist/types/atlas/filetree/v1/genesis.mjs +71 -0
- package/dist/types/atlas/filetree/v1/params.d.ts +40 -0
- package/dist/types/atlas/filetree/v1/params.js +94 -0
- package/dist/types/atlas/filetree/v1/params.mjs +58 -0
- package/dist/types/atlas/filetree/v1/query.d.ts +330 -0
- package/dist/types/atlas/filetree/v1/query.js +567 -0
- package/dist/types/atlas/filetree/v1/query.mjs +531 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.d.ts +28 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.js +89 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.mjs +51 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.d.ts +29 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.js +58 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.mjs +55 -0
- package/dist/types/atlas/filetree/v1/tree.d.ts +44 -0
- package/dist/types/atlas/filetree/v1/tree.js +124 -0
- package/dist/types/atlas/filetree/v1/tree.mjs +88 -0
- package/dist/types/atlas/filetree/v1/tx.d.ts +260 -0
- package/dist/types/atlas/filetree/v1/tx.js +449 -0
- package/dist/types/atlas/filetree/v1/tx.mjs +413 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.d.ts +23 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.js +34 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.mjs +31 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.d.ts +22 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.js +67 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.mjs +29 -0
- package/dist/types/atlas/rpc.query.d.ts +49 -0
- package/dist/types/atlas/rpc.query.js +59 -0
- package/dist/types/atlas/rpc.query.mjs +22 -0
- package/dist/types/atlas/rpc.tx.d.ts +18 -0
- package/dist/types/atlas/rpc.tx.js +52 -0
- package/dist/types/atlas/rpc.tx.mjs +15 -0
- package/dist/types/atlas/storage/v1/file.d.ts +59 -0
- package/dist/types/atlas/storage/v1/file.js +173 -0
- package/dist/types/atlas/storage/v1/file.mjs +137 -0
- package/dist/types/atlas/storage/v1/genesis.d.ts +45 -0
- package/dist/types/atlas/storage/v1/genesis.js +107 -0
- package/dist/types/atlas/storage/v1/genesis.mjs +71 -0
- package/dist/types/atlas/storage/v1/params.d.ts +48 -0
- package/dist/types/atlas/storage/v1/params.js +127 -0
- package/dist/types/atlas/storage/v1/params.mjs +91 -0
- package/dist/types/atlas/storage/v1/proof.d.ts +145 -0
- package/dist/types/atlas/storage/v1/proof.js +318 -0
- package/dist/types/atlas/storage/v1/proof.mjs +282 -0
- package/dist/types/atlas/storage/v1/provider.d.ts +51 -0
- package/dist/types/atlas/storage/v1/provider.js +141 -0
- package/dist/types/atlas/storage/v1/provider.mjs +105 -0
- package/dist/types/atlas/storage/v1/query.d.ts +914 -0
- package/dist/types/atlas/storage/v1/query.js +1570 -0
- package/dist/types/atlas/storage/v1/query.mjs +1534 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.d.ts +56 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.js +154 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.mjs +116 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.d.ts +78 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.js +149 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.mjs +146 -0
- package/dist/types/atlas/storage/v1/subscription.d.ts +55 -0
- package/dist/types/atlas/storage/v1/subscription.js +159 -0
- package/dist/types/atlas/storage/v1/subscription.mjs +123 -0
- package/dist/types/atlas/storage/v1/tx.d.ts +694 -0
- package/dist/types/atlas/storage/v1/tx.js +1203 -0
- package/dist/types/atlas/storage/v1/tx.mjs +1167 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.d.ts +56 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.js +77 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.mjs +74 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.d.ts +35 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.js +97 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.mjs +59 -0
- package/dist/types/cosmos/bank/v1beta1/authz.d.ts +62 -0
- package/dist/types/cosmos/bank/v1beta1/authz.js +123 -0
- package/dist/types/cosmos/bank/v1beta1/authz.mjs +87 -0
- package/dist/types/cosmos/bank/v1beta1/bank.d.ts +391 -0
- package/dist/types/cosmos/bank/v1beta1/bank.js +626 -0
- package/dist/types/cosmos/bank/v1beta1/bank.mjs +590 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.d.ts +122 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.js +224 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.mjs +188 -0
- package/dist/types/cosmos/bank/v1beta1/query.d.ts +1377 -0
- package/dist/types/cosmos/bank/v1beta1/query.js +2038 -0
- package/dist/types/cosmos/bank/v1beta1/query.mjs +2002 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.d.ts +119 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.js +174 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.mjs +136 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.d.ts +129 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.js +212 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.mjs +209 -0
- package/dist/types/cosmos/bank/v1beta1/tx.d.ts +398 -0
- package/dist/types/cosmos/bank/v1beta1/tx.js +599 -0
- package/dist/types/cosmos/bank/v1beta1/tx.mjs +563 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.d.ts +37 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.js +50 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.mjs +47 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +34 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.js +73 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.mjs +35 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts +163 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.js +219 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.mjs +183 -0
- package/dist/types/cosmos/base/v1beta1/coin.d.ts +193 -0
- package/dist/types/cosmos/base/v1beta1/coin.js +320 -0
- package/dist/types/cosmos/base/v1beta1/coin.mjs +284 -0
- package/dist/types/cosmos/bundle.d.ts +761 -0
- package/dist/types/cosmos/bundle.js +97 -0
- package/dist/types/cosmos/bundle.mjs +61 -0
- package/dist/types/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/types/cosmos/msg/v1/msg.mjs +1 -0
- package/dist/types/cosmos/query/v1/query.d.ts +1 -0
- package/dist/types/cosmos/query/v1/query.js +2 -0
- package/dist/types/cosmos/query/v1/query.mjs +1 -0
- package/dist/types/cosmos/rpc.query.d.ts +24 -0
- package/dist/types/cosmos/rpc.query.js +51 -0
- package/dist/types/cosmos/rpc.query.mjs +14 -0
- package/dist/types/cosmos/rpc.tx.d.ts +10 -0
- package/dist/types/cosmos/rpc.tx.js +44 -0
- package/dist/types/cosmos/rpc.tx.mjs +7 -0
- package/dist/types/cosmos_proto/bundle.d.ts +31 -0
- package/dist/types/cosmos_proto/bundle.js +41 -0
- package/dist/types/cosmos_proto/bundle.mjs +5 -0
- package/dist/types/cosmos_proto/cosmos.d.ts +144 -0
- package/dist/types/cosmos_proto/cosmos.js +244 -0
- package/dist/types/cosmos_proto/cosmos.mjs +206 -0
- package/dist/types/extern.d.ts +11 -0
- package/dist/types/extern.js +47 -0
- package/dist/types/extern.mjs +41 -0
- package/dist/types/gogoproto/bundle.d.ts +1 -0
- package/dist/types/gogoproto/bundle.js +41 -0
- package/dist/types/gogoproto/bundle.mjs +5 -0
- package/dist/types/gogoproto/gogo.d.ts +1 -0
- package/dist/types/gogoproto/gogo.js +2 -0
- package/dist/types/gogoproto/gogo.mjs +1 -0
- package/dist/types/google/api/annotations.d.ts +1 -0
- package/dist/types/google/api/annotations.js +2 -0
- package/dist/types/google/api/annotations.mjs +1 -0
- package/dist/types/google/api/http.d.ts +1006 -0
- package/dist/types/google/api/http.js +589 -0
- package/dist/types/google/api/http.mjs +553 -0
- package/dist/types/google/bundle.d.ts +545 -0
- package/dist/types/google/bundle.js +52 -0
- package/dist/types/google/bundle.mjs +16 -0
- package/dist/types/google/protobuf/descriptor.d.ts +2755 -0
- package/dist/types/google/protobuf/descriptor.js +4612 -0
- package/dist/types/google/protobuf/descriptor.mjs +4535 -0
- package/dist/types/google/protobuf/timestamp.d.ts +319 -0
- package/dist/types/google/protobuf/timestamp.js +197 -0
- package/dist/types/google/protobuf/timestamp.mjs +161 -0
- package/dist/types/helper-func-types.d.ts +40 -0
- package/dist/types/helper-func-types.js +57 -0
- package/dist/types/helper-func-types.mjs +53 -0
- package/dist/types/helpers.d.ts +56 -0
- package/dist/types/helpers.js +161 -0
- package/dist/types/helpers.mjs +110 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.js +32 -0
- package/dist/types/index.mjs +16 -0
- package/dist/types/registry.d.ts +35 -0
- package/dist/types/registry.js +200 -0
- package/dist/types/registry.mjs +163 -0
- package/dist/types/types.d.ts +74 -0
- package/dist/types/types.js +8 -0
- package/dist/types/types.mjs +7 -0
- package/package.json +97 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.createRPCQueryClient = void 0;
|
|
37
|
+
//@ts-nocheck
|
|
38
|
+
const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc");
|
|
39
|
+
const stargate_1 = require("@cosmjs/stargate");
|
|
40
|
+
const createRPCQueryClient = async ({ rpcEndpoint }) => {
|
|
41
|
+
const tmClient = await (0, tendermint_rpc_1.connectComet)(rpcEndpoint);
|
|
42
|
+
const client = new stargate_1.QueryClient(tmClient);
|
|
43
|
+
return {
|
|
44
|
+
atlas: {
|
|
45
|
+
filetree: {
|
|
46
|
+
v1: (await Promise.resolve().then(() => __importStar(require("./filetree/v1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
47
|
+
},
|
|
48
|
+
storage: {
|
|
49
|
+
v1: (await Promise.resolve().then(() => __importStar(require("./storage/v1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
cosmos: {
|
|
53
|
+
bank: {
|
|
54
|
+
v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
exports.createRPCQueryClient = createRPCQueryClient;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { connectComet } from "@cosmjs/tendermint-rpc";
|
|
3
|
+
import { QueryClient } from "@cosmjs/stargate";
|
|
4
|
+
export const createRPCQueryClient = async ({ rpcEndpoint }) => {
|
|
5
|
+
const tmClient = await connectComet(rpcEndpoint);
|
|
6
|
+
const client = new QueryClient(tmClient);
|
|
7
|
+
return {
|
|
8
|
+
atlas: {
|
|
9
|
+
filetree: {
|
|
10
|
+
v1: (await import("./filetree/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
11
|
+
},
|
|
12
|
+
storage: {
|
|
13
|
+
v1: (await import("./storage/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
cosmos: {
|
|
17
|
+
bank: {
|
|
18
|
+
v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Rpc } from "../helpers";
|
|
2
|
+
export declare const createRPCMsgClient: ({ rpc }: {
|
|
3
|
+
rpc: Rpc;
|
|
4
|
+
}) => Promise<{
|
|
5
|
+
atlas: {
|
|
6
|
+
filetree: {
|
|
7
|
+
v1: import("./filetree/v1/tx.rpc.msg").MsgClientImpl;
|
|
8
|
+
};
|
|
9
|
+
storage: {
|
|
10
|
+
v1: import("./storage/v1/tx.rpc.msg").MsgClientImpl;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
cosmos: {
|
|
14
|
+
bank: {
|
|
15
|
+
v1beta1: import("../cosmos/bank/v1beta1/tx.rpc.msg").MsgClientImpl;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.createRPCMsgClient = void 0;
|
|
37
|
+
const createRPCMsgClient = async ({ rpc }) => ({
|
|
38
|
+
atlas: {
|
|
39
|
+
filetree: {
|
|
40
|
+
v1: new (await Promise.resolve().then(() => __importStar(require("./filetree/v1/tx.rpc.msg")))).MsgClientImpl(rpc)
|
|
41
|
+
},
|
|
42
|
+
storage: {
|
|
43
|
+
v1: new (await Promise.resolve().then(() => __importStar(require("./storage/v1/tx.rpc.msg")))).MsgClientImpl(rpc)
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
cosmos: {
|
|
47
|
+
bank: {
|
|
48
|
+
v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/tx.rpc.msg")))).MsgClientImpl(rpc)
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
exports.createRPCMsgClient = createRPCMsgClient;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const createRPCMsgClient = async ({ rpc }) => ({
|
|
2
|
+
atlas: {
|
|
3
|
+
filetree: {
|
|
4
|
+
v1: new (await import("./filetree/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
5
|
+
},
|
|
6
|
+
storage: {
|
|
7
|
+
v1: new (await import("./storage/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
cosmos: {
|
|
11
|
+
bank: {
|
|
12
|
+
v1beta1: new (await import("../cosmos/bank/v1beta1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
/**
|
|
3
|
+
* File defines the File message.
|
|
4
|
+
* @name File
|
|
5
|
+
* @package atlas.storage.v1
|
|
6
|
+
* @see proto type: atlas.storage.v1.File
|
|
7
|
+
*/
|
|
8
|
+
export interface File {
|
|
9
|
+
fid: string;
|
|
10
|
+
merkle: string;
|
|
11
|
+
creator: string;
|
|
12
|
+
subscription: string;
|
|
13
|
+
status: string;
|
|
14
|
+
fileSize: number;
|
|
15
|
+
replicas: number;
|
|
16
|
+
providers: string[];
|
|
17
|
+
unstableProviders: string[];
|
|
18
|
+
start: number;
|
|
19
|
+
}
|
|
20
|
+
export interface FileProtoMsg {
|
|
21
|
+
typeUrl: "/atlas.storage.v1.File";
|
|
22
|
+
value: Uint8Array;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* File defines the File message.
|
|
26
|
+
* @name FileSDKType
|
|
27
|
+
* @package atlas.storage.v1
|
|
28
|
+
* @see proto type: atlas.storage.v1.File
|
|
29
|
+
*/
|
|
30
|
+
export interface FileSDKType {
|
|
31
|
+
fid: string;
|
|
32
|
+
merkle: string;
|
|
33
|
+
creator: string;
|
|
34
|
+
subscription: string;
|
|
35
|
+
status: string;
|
|
36
|
+
file_size: number;
|
|
37
|
+
replicas: number;
|
|
38
|
+
providers: string[];
|
|
39
|
+
unstable_providers: string[];
|
|
40
|
+
start: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* File defines the File message.
|
|
44
|
+
* @name File
|
|
45
|
+
* @package atlas.storage.v1
|
|
46
|
+
* @see proto type: atlas.storage.v1.File
|
|
47
|
+
*/
|
|
48
|
+
export declare const File: {
|
|
49
|
+
typeUrl: string;
|
|
50
|
+
is(o: any): o is File;
|
|
51
|
+
isSDK(o: any): o is FileSDKType;
|
|
52
|
+
encode(message: File, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): File;
|
|
54
|
+
fromPartial(object: Partial<File>): File;
|
|
55
|
+
fromProtoMsg(message: FileProtoMsg): File;
|
|
56
|
+
toProto(message: File): Uint8Array;
|
|
57
|
+
toProtoMsg(message: File): FileProtoMsg;
|
|
58
|
+
registerTypeUrl(): void;
|
|
59
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.File = void 0;
|
|
37
|
+
//@ts-nocheck
|
|
38
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
39
|
+
const registry_1 = require("../../../registry");
|
|
40
|
+
function createBaseFile() {
|
|
41
|
+
return {
|
|
42
|
+
fid: "",
|
|
43
|
+
merkle: "",
|
|
44
|
+
creator: "",
|
|
45
|
+
subscription: "",
|
|
46
|
+
status: "",
|
|
47
|
+
fileSize: 0,
|
|
48
|
+
replicas: 0,
|
|
49
|
+
providers: [],
|
|
50
|
+
unstableProviders: [],
|
|
51
|
+
start: 0
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* File defines the File message.
|
|
56
|
+
* @name File
|
|
57
|
+
* @package atlas.storage.v1
|
|
58
|
+
* @see proto type: atlas.storage.v1.File
|
|
59
|
+
*/
|
|
60
|
+
exports.File = {
|
|
61
|
+
typeUrl: "/atlas.storage.v1.File",
|
|
62
|
+
is(o) {
|
|
63
|
+
return o && (o.$typeUrl === exports.File.typeUrl || typeof o.fid === "string" && typeof o.merkle === "string" && typeof o.creator === "string" && typeof o.subscription === "string" && typeof o.status === "string" && typeof o.fileSize === "bigint" && typeof o.replicas === "number" && Array.isArray(o.providers) && (!o.providers.length || typeof o.providers[0] === "string") && Array.isArray(o.unstableProviders) && (!o.unstableProviders.length || typeof o.unstableProviders[0] === "string") && typeof o.start === "bigint");
|
|
64
|
+
},
|
|
65
|
+
isSDK(o) {
|
|
66
|
+
return o && (o.$typeUrl === exports.File.typeUrl || typeof o.fid === "string" && typeof o.merkle === "string" && typeof o.creator === "string" && typeof o.subscription === "string" && typeof o.status === "string" && typeof o.file_size === "bigint" && typeof o.replicas === "number" && Array.isArray(o.providers) && (!o.providers.length || typeof o.providers[0] === "string") && Array.isArray(o.unstable_providers) && (!o.unstable_providers.length || typeof o.unstable_providers[0] === "string") && typeof o.start === "bigint");
|
|
67
|
+
},
|
|
68
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
69
|
+
if (message.fid !== "") {
|
|
70
|
+
writer.uint32(10).string(message.fid);
|
|
71
|
+
}
|
|
72
|
+
if (message.merkle !== "") {
|
|
73
|
+
writer.uint32(18).string(message.merkle);
|
|
74
|
+
}
|
|
75
|
+
if (message.creator !== "") {
|
|
76
|
+
writer.uint32(26).string(message.creator);
|
|
77
|
+
}
|
|
78
|
+
if (message.subscription !== "") {
|
|
79
|
+
writer.uint32(34).string(message.subscription);
|
|
80
|
+
}
|
|
81
|
+
if (message.status !== "") {
|
|
82
|
+
writer.uint32(42).string(message.status);
|
|
83
|
+
}
|
|
84
|
+
if (message.fileSize !== 0) {
|
|
85
|
+
writer.uint32(48).int64(message.fileSize);
|
|
86
|
+
}
|
|
87
|
+
if (message.replicas !== 0) {
|
|
88
|
+
writer.uint32(56).int32(message.replicas);
|
|
89
|
+
}
|
|
90
|
+
for (const v of message.providers) {
|
|
91
|
+
writer.uint32(66).string(v);
|
|
92
|
+
}
|
|
93
|
+
for (const v of message.unstableProviders) {
|
|
94
|
+
writer.uint32(74).string(v);
|
|
95
|
+
}
|
|
96
|
+
if (message.start !== 0) {
|
|
97
|
+
writer.uint32(80).int64(message.start);
|
|
98
|
+
}
|
|
99
|
+
return writer;
|
|
100
|
+
},
|
|
101
|
+
decode(input, length) {
|
|
102
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
103
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
104
|
+
const message = createBaseFile();
|
|
105
|
+
while (reader.pos < end) {
|
|
106
|
+
const tag = reader.uint32();
|
|
107
|
+
switch (tag >>> 3) {
|
|
108
|
+
case 1:
|
|
109
|
+
message.fid = reader.string();
|
|
110
|
+
break;
|
|
111
|
+
case 2:
|
|
112
|
+
message.merkle = reader.string();
|
|
113
|
+
break;
|
|
114
|
+
case 3:
|
|
115
|
+
message.creator = reader.string();
|
|
116
|
+
break;
|
|
117
|
+
case 4:
|
|
118
|
+
message.subscription = reader.string();
|
|
119
|
+
break;
|
|
120
|
+
case 5:
|
|
121
|
+
message.status = reader.string();
|
|
122
|
+
break;
|
|
123
|
+
case 6:
|
|
124
|
+
message.fileSize = Number(reader.int64().toString());
|
|
125
|
+
break;
|
|
126
|
+
case 7:
|
|
127
|
+
message.replicas = reader.int32();
|
|
128
|
+
break;
|
|
129
|
+
case 8:
|
|
130
|
+
message.providers.push(reader.string());
|
|
131
|
+
break;
|
|
132
|
+
case 9:
|
|
133
|
+
message.unstableProviders.push(reader.string());
|
|
134
|
+
break;
|
|
135
|
+
case 10:
|
|
136
|
+
message.start = Number(reader.int64().toString());
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
reader.skipType(tag & 7);
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
fromPartial(object) {
|
|
146
|
+
const message = createBaseFile();
|
|
147
|
+
message.fid = object.fid ?? "";
|
|
148
|
+
message.merkle = object.merkle ?? "";
|
|
149
|
+
message.creator = object.creator ?? "";
|
|
150
|
+
message.subscription = object.subscription ?? "";
|
|
151
|
+
message.status = object.status ?? "";
|
|
152
|
+
message.fileSize = object.fileSize !== undefined && object.fileSize !== null ? Number(object.fileSize.toString()) : 0;
|
|
153
|
+
message.replicas = object.replicas ?? 0;
|
|
154
|
+
message.providers = object.providers?.map(e => e) || [];
|
|
155
|
+
message.unstableProviders = object.unstableProviders?.map(e => e) || [];
|
|
156
|
+
message.start = object.start !== undefined && object.start !== null ? Number(object.start.toString()) : 0;
|
|
157
|
+
return message;
|
|
158
|
+
},
|
|
159
|
+
fromProtoMsg(message) {
|
|
160
|
+
return exports.File.decode(message.value);
|
|
161
|
+
},
|
|
162
|
+
toProto(message) {
|
|
163
|
+
return exports.File.encode(message).finish();
|
|
164
|
+
},
|
|
165
|
+
toProtoMsg(message) {
|
|
166
|
+
return {
|
|
167
|
+
typeUrl: "/atlas.storage.v1.File",
|
|
168
|
+
value: exports.File.encode(message).finish()
|
|
169
|
+
};
|
|
170
|
+
},
|
|
171
|
+
registerTypeUrl() { }
|
|
172
|
+
};
|
|
173
|
+
registry_1.GlobalDecoderRegistry.register(exports.File.typeUrl, exports.File);
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
function createBaseFile() {
|
|
5
|
+
return {
|
|
6
|
+
fid: "",
|
|
7
|
+
merkle: "",
|
|
8
|
+
creator: "",
|
|
9
|
+
subscription: "",
|
|
10
|
+
status: "",
|
|
11
|
+
fileSize: 0,
|
|
12
|
+
replicas: 0,
|
|
13
|
+
providers: [],
|
|
14
|
+
unstableProviders: [],
|
|
15
|
+
start: 0
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* File defines the File message.
|
|
20
|
+
* @name File
|
|
21
|
+
* @package atlas.storage.v1
|
|
22
|
+
* @see proto type: atlas.storage.v1.File
|
|
23
|
+
*/
|
|
24
|
+
export const File = {
|
|
25
|
+
typeUrl: "/atlas.storage.v1.File",
|
|
26
|
+
is(o) {
|
|
27
|
+
return o && (o.$typeUrl === File.typeUrl || typeof o.fid === "string" && typeof o.merkle === "string" && typeof o.creator === "string" && typeof o.subscription === "string" && typeof o.status === "string" && typeof o.fileSize === "bigint" && typeof o.replicas === "number" && Array.isArray(o.providers) && (!o.providers.length || typeof o.providers[0] === "string") && Array.isArray(o.unstableProviders) && (!o.unstableProviders.length || typeof o.unstableProviders[0] === "string") && typeof o.start === "bigint");
|
|
28
|
+
},
|
|
29
|
+
isSDK(o) {
|
|
30
|
+
return o && (o.$typeUrl === File.typeUrl || typeof o.fid === "string" && typeof o.merkle === "string" && typeof o.creator === "string" && typeof o.subscription === "string" && typeof o.status === "string" && typeof o.file_size === "bigint" && typeof o.replicas === "number" && Array.isArray(o.providers) && (!o.providers.length || typeof o.providers[0] === "string") && Array.isArray(o.unstable_providers) && (!o.unstable_providers.length || typeof o.unstable_providers[0] === "string") && typeof o.start === "bigint");
|
|
31
|
+
},
|
|
32
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
33
|
+
if (message.fid !== "") {
|
|
34
|
+
writer.uint32(10).string(message.fid);
|
|
35
|
+
}
|
|
36
|
+
if (message.merkle !== "") {
|
|
37
|
+
writer.uint32(18).string(message.merkle);
|
|
38
|
+
}
|
|
39
|
+
if (message.creator !== "") {
|
|
40
|
+
writer.uint32(26).string(message.creator);
|
|
41
|
+
}
|
|
42
|
+
if (message.subscription !== "") {
|
|
43
|
+
writer.uint32(34).string(message.subscription);
|
|
44
|
+
}
|
|
45
|
+
if (message.status !== "") {
|
|
46
|
+
writer.uint32(42).string(message.status);
|
|
47
|
+
}
|
|
48
|
+
if (message.fileSize !== 0) {
|
|
49
|
+
writer.uint32(48).int64(message.fileSize);
|
|
50
|
+
}
|
|
51
|
+
if (message.replicas !== 0) {
|
|
52
|
+
writer.uint32(56).int32(message.replicas);
|
|
53
|
+
}
|
|
54
|
+
for (const v of message.providers) {
|
|
55
|
+
writer.uint32(66).string(v);
|
|
56
|
+
}
|
|
57
|
+
for (const v of message.unstableProviders) {
|
|
58
|
+
writer.uint32(74).string(v);
|
|
59
|
+
}
|
|
60
|
+
if (message.start !== 0) {
|
|
61
|
+
writer.uint32(80).int64(message.start);
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
67
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
+
const message = createBaseFile();
|
|
69
|
+
while (reader.pos < end) {
|
|
70
|
+
const tag = reader.uint32();
|
|
71
|
+
switch (tag >>> 3) {
|
|
72
|
+
case 1:
|
|
73
|
+
message.fid = reader.string();
|
|
74
|
+
break;
|
|
75
|
+
case 2:
|
|
76
|
+
message.merkle = reader.string();
|
|
77
|
+
break;
|
|
78
|
+
case 3:
|
|
79
|
+
message.creator = reader.string();
|
|
80
|
+
break;
|
|
81
|
+
case 4:
|
|
82
|
+
message.subscription = reader.string();
|
|
83
|
+
break;
|
|
84
|
+
case 5:
|
|
85
|
+
message.status = reader.string();
|
|
86
|
+
break;
|
|
87
|
+
case 6:
|
|
88
|
+
message.fileSize = Number(reader.int64().toString());
|
|
89
|
+
break;
|
|
90
|
+
case 7:
|
|
91
|
+
message.replicas = reader.int32();
|
|
92
|
+
break;
|
|
93
|
+
case 8:
|
|
94
|
+
message.providers.push(reader.string());
|
|
95
|
+
break;
|
|
96
|
+
case 9:
|
|
97
|
+
message.unstableProviders.push(reader.string());
|
|
98
|
+
break;
|
|
99
|
+
case 10:
|
|
100
|
+
message.start = Number(reader.int64().toString());
|
|
101
|
+
break;
|
|
102
|
+
default:
|
|
103
|
+
reader.skipType(tag & 7);
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBaseFile();
|
|
111
|
+
message.fid = object.fid ?? "";
|
|
112
|
+
message.merkle = object.merkle ?? "";
|
|
113
|
+
message.creator = object.creator ?? "";
|
|
114
|
+
message.subscription = object.subscription ?? "";
|
|
115
|
+
message.status = object.status ?? "";
|
|
116
|
+
message.fileSize = object.fileSize !== undefined && object.fileSize !== null ? Number(object.fileSize.toString()) : 0;
|
|
117
|
+
message.replicas = object.replicas ?? 0;
|
|
118
|
+
message.providers = object.providers?.map(e => e) || [];
|
|
119
|
+
message.unstableProviders = object.unstableProviders?.map(e => e) || [];
|
|
120
|
+
message.start = object.start !== undefined && object.start !== null ? Number(object.start.toString()) : 0;
|
|
121
|
+
return message;
|
|
122
|
+
},
|
|
123
|
+
fromProtoMsg(message) {
|
|
124
|
+
return File.decode(message.value);
|
|
125
|
+
},
|
|
126
|
+
toProto(message) {
|
|
127
|
+
return File.encode(message).finish();
|
|
128
|
+
},
|
|
129
|
+
toProtoMsg(message) {
|
|
130
|
+
return {
|
|
131
|
+
typeUrl: "/atlas.storage.v1.File",
|
|
132
|
+
value: File.encode(message).finish()
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
registerTypeUrl() { }
|
|
136
|
+
};
|
|
137
|
+
GlobalDecoderRegistry.register(File.typeUrl, File);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Params, ParamsSDKType } from "./params";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
/**
|
|
4
|
+
* GenesisState defines the storage module's genesis state.
|
|
5
|
+
* @name GenesisState
|
|
6
|
+
* @package atlas.storage.v1
|
|
7
|
+
* @see proto type: atlas.storage.v1.GenesisState
|
|
8
|
+
*/
|
|
9
|
+
export interface GenesisState {
|
|
10
|
+
/**
|
|
11
|
+
* params defines all the parameters of the module.
|
|
12
|
+
*/
|
|
13
|
+
params: Params;
|
|
14
|
+
}
|
|
15
|
+
export interface GenesisStateProtoMsg {
|
|
16
|
+
typeUrl: "/atlas.storage.v1.GenesisState";
|
|
17
|
+
value: Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* GenesisState defines the storage module's genesis state.
|
|
21
|
+
* @name GenesisStateSDKType
|
|
22
|
+
* @package atlas.storage.v1
|
|
23
|
+
* @see proto type: atlas.storage.v1.GenesisState
|
|
24
|
+
*/
|
|
25
|
+
export interface GenesisStateSDKType {
|
|
26
|
+
params: ParamsSDKType;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* GenesisState defines the storage module's genesis state.
|
|
30
|
+
* @name GenesisState
|
|
31
|
+
* @package atlas.storage.v1
|
|
32
|
+
* @see proto type: atlas.storage.v1.GenesisState
|
|
33
|
+
*/
|
|
34
|
+
export declare const GenesisState: {
|
|
35
|
+
typeUrl: string;
|
|
36
|
+
is(o: any): o is GenesisState;
|
|
37
|
+
isSDK(o: any): o is GenesisStateSDKType;
|
|
38
|
+
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
39
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
|
40
|
+
fromPartial(object: Partial<GenesisState>): GenesisState;
|
|
41
|
+
fromProtoMsg(message: GenesisStateProtoMsg): GenesisState;
|
|
42
|
+
toProto(message: GenesisState): Uint8Array;
|
|
43
|
+
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
44
|
+
registerTypeUrl(): void;
|
|
45
|
+
};
|