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,318 @@
|
|
|
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.StorageChallenge = exports.Proof = exports.MerkleProof = void 0;
|
|
37
|
+
//@ts-nocheck
|
|
38
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
39
|
+
const registry_1 = require("../../../registry");
|
|
40
|
+
function createBaseMerkleProof() {
|
|
41
|
+
return {
|
|
42
|
+
chunk: new Uint8Array(),
|
|
43
|
+
path: 0,
|
|
44
|
+
siblings: []
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @name MerkleProof
|
|
49
|
+
* @package atlas.storage.v1
|
|
50
|
+
* @see proto type: atlas.storage.v1.MerkleProof
|
|
51
|
+
*/
|
|
52
|
+
exports.MerkleProof = {
|
|
53
|
+
typeUrl: "/atlas.storage.v1.MerkleProof",
|
|
54
|
+
is(o) {
|
|
55
|
+
return o && (o.$typeUrl === exports.MerkleProof.typeUrl || (o.chunk instanceof Uint8Array || typeof o.chunk === "string") && typeof o.path === "bigint" && Array.isArray(o.siblings) && (!o.siblings.length || o.siblings[0] instanceof Uint8Array || typeof o.siblings[0] === "string"));
|
|
56
|
+
},
|
|
57
|
+
isSDK(o) {
|
|
58
|
+
return o && (o.$typeUrl === exports.MerkleProof.typeUrl || (o.chunk instanceof Uint8Array || typeof o.chunk === "string") && typeof o.path === "bigint" && Array.isArray(o.siblings) && (!o.siblings.length || o.siblings[0] instanceof Uint8Array || typeof o.siblings[0] === "string"));
|
|
59
|
+
},
|
|
60
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
61
|
+
if (message.chunk.length !== 0) {
|
|
62
|
+
writer.uint32(10).bytes(message.chunk);
|
|
63
|
+
}
|
|
64
|
+
if (message.path !== 0) {
|
|
65
|
+
writer.uint32(16).uint64(message.path);
|
|
66
|
+
}
|
|
67
|
+
for (const v of message.siblings) {
|
|
68
|
+
writer.uint32(26).bytes(v);
|
|
69
|
+
}
|
|
70
|
+
return writer;
|
|
71
|
+
},
|
|
72
|
+
decode(input, length) {
|
|
73
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
74
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
75
|
+
const message = createBaseMerkleProof();
|
|
76
|
+
while (reader.pos < end) {
|
|
77
|
+
const tag = reader.uint32();
|
|
78
|
+
switch (tag >>> 3) {
|
|
79
|
+
case 1:
|
|
80
|
+
message.chunk = reader.bytes();
|
|
81
|
+
break;
|
|
82
|
+
case 2:
|
|
83
|
+
message.path = Number(reader.uint64().toString());
|
|
84
|
+
break;
|
|
85
|
+
case 3:
|
|
86
|
+
message.siblings.push(reader.bytes());
|
|
87
|
+
break;
|
|
88
|
+
default:
|
|
89
|
+
reader.skipType(tag & 7);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
fromPartial(object) {
|
|
96
|
+
const message = createBaseMerkleProof();
|
|
97
|
+
message.chunk = object.chunk ?? new Uint8Array();
|
|
98
|
+
message.path = object.path !== undefined && object.path !== null ? Number(object.path.toString()) : 0;
|
|
99
|
+
message.siblings = object.siblings?.map(e => e) || [];
|
|
100
|
+
return message;
|
|
101
|
+
},
|
|
102
|
+
fromProtoMsg(message) {
|
|
103
|
+
return exports.MerkleProof.decode(message.value);
|
|
104
|
+
},
|
|
105
|
+
toProto(message) {
|
|
106
|
+
return exports.MerkleProof.encode(message).finish();
|
|
107
|
+
},
|
|
108
|
+
toProtoMsg(message) {
|
|
109
|
+
return {
|
|
110
|
+
typeUrl: "/atlas.storage.v1.MerkleProof",
|
|
111
|
+
value: exports.MerkleProof.encode(message).finish()
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
registerTypeUrl() { }
|
|
115
|
+
};
|
|
116
|
+
registry_1.GlobalDecoderRegistry.register(exports.MerkleProof.typeUrl, exports.MerkleProof);
|
|
117
|
+
function createBaseProof() {
|
|
118
|
+
return {
|
|
119
|
+
challengeId: "",
|
|
120
|
+
data: new Uint8Array(),
|
|
121
|
+
index: 0,
|
|
122
|
+
path: 0,
|
|
123
|
+
hashes: []
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @name Proof
|
|
128
|
+
* @package atlas.storage.v1
|
|
129
|
+
* @see proto type: atlas.storage.v1.Proof
|
|
130
|
+
*/
|
|
131
|
+
exports.Proof = {
|
|
132
|
+
typeUrl: "/atlas.storage.v1.Proof",
|
|
133
|
+
is(o) {
|
|
134
|
+
return o && (o.$typeUrl === exports.Proof.typeUrl || typeof o.challengeId === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.index === "bigint" && typeof o.path === "bigint" && Array.isArray(o.hashes) && (!o.hashes.length || o.hashes[0] instanceof Uint8Array || typeof o.hashes[0] === "string"));
|
|
135
|
+
},
|
|
136
|
+
isSDK(o) {
|
|
137
|
+
return o && (o.$typeUrl === exports.Proof.typeUrl || typeof o.challenge_id === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.index === "bigint" && typeof o.path === "bigint" && Array.isArray(o.hashes) && (!o.hashes.length || o.hashes[0] instanceof Uint8Array || typeof o.hashes[0] === "string"));
|
|
138
|
+
},
|
|
139
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
140
|
+
if (message.challengeId !== "") {
|
|
141
|
+
writer.uint32(10).string(message.challengeId);
|
|
142
|
+
}
|
|
143
|
+
if (message.data.length !== 0) {
|
|
144
|
+
writer.uint32(18).bytes(message.data);
|
|
145
|
+
}
|
|
146
|
+
if (message.index !== 0) {
|
|
147
|
+
writer.uint32(24).uint64(message.index);
|
|
148
|
+
}
|
|
149
|
+
if (message.path !== 0) {
|
|
150
|
+
writer.uint32(32).uint64(message.path);
|
|
151
|
+
}
|
|
152
|
+
for (const v of message.hashes) {
|
|
153
|
+
writer.uint32(42).bytes(v);
|
|
154
|
+
}
|
|
155
|
+
return writer;
|
|
156
|
+
},
|
|
157
|
+
decode(input, length) {
|
|
158
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
159
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
160
|
+
const message = createBaseProof();
|
|
161
|
+
while (reader.pos < end) {
|
|
162
|
+
const tag = reader.uint32();
|
|
163
|
+
switch (tag >>> 3) {
|
|
164
|
+
case 1:
|
|
165
|
+
message.challengeId = reader.string();
|
|
166
|
+
break;
|
|
167
|
+
case 2:
|
|
168
|
+
message.data = reader.bytes();
|
|
169
|
+
break;
|
|
170
|
+
case 3:
|
|
171
|
+
message.index = Number(reader.uint64().toString());
|
|
172
|
+
break;
|
|
173
|
+
case 4:
|
|
174
|
+
message.path = Number(reader.uint64().toString());
|
|
175
|
+
break;
|
|
176
|
+
case 5:
|
|
177
|
+
message.hashes.push(reader.bytes());
|
|
178
|
+
break;
|
|
179
|
+
default:
|
|
180
|
+
reader.skipType(tag & 7);
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
fromPartial(object) {
|
|
187
|
+
const message = createBaseProof();
|
|
188
|
+
message.challengeId = object.challengeId ?? "";
|
|
189
|
+
message.data = object.data ?? new Uint8Array();
|
|
190
|
+
message.index = object.index !== undefined && object.index !== null ? Number(object.index.toString()) : 0;
|
|
191
|
+
message.path = object.path !== undefined && object.path !== null ? Number(object.path.toString()) : 0;
|
|
192
|
+
message.hashes = object.hashes?.map(e => e) || [];
|
|
193
|
+
return message;
|
|
194
|
+
},
|
|
195
|
+
fromProtoMsg(message) {
|
|
196
|
+
return exports.Proof.decode(message.value);
|
|
197
|
+
},
|
|
198
|
+
toProto(message) {
|
|
199
|
+
return exports.Proof.encode(message).finish();
|
|
200
|
+
},
|
|
201
|
+
toProtoMsg(message) {
|
|
202
|
+
return {
|
|
203
|
+
typeUrl: "/atlas.storage.v1.Proof",
|
|
204
|
+
value: exports.Proof.encode(message).finish()
|
|
205
|
+
};
|
|
206
|
+
},
|
|
207
|
+
registerTypeUrl() { }
|
|
208
|
+
};
|
|
209
|
+
registry_1.GlobalDecoderRegistry.register(exports.Proof.typeUrl, exports.Proof);
|
|
210
|
+
function createBaseStorageChallenge() {
|
|
211
|
+
return {
|
|
212
|
+
challengeId: "",
|
|
213
|
+
fileId: "",
|
|
214
|
+
fileMerkle: "",
|
|
215
|
+
provider: "",
|
|
216
|
+
chunkIndex: 0,
|
|
217
|
+
createdHeight: 0,
|
|
218
|
+
deadlineHeight: 0
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @name StorageChallenge
|
|
223
|
+
* @package atlas.storage.v1
|
|
224
|
+
* @see proto type: atlas.storage.v1.StorageChallenge
|
|
225
|
+
*/
|
|
226
|
+
exports.StorageChallenge = {
|
|
227
|
+
typeUrl: "/atlas.storage.v1.StorageChallenge",
|
|
228
|
+
is(o) {
|
|
229
|
+
return o && (o.$typeUrl === exports.StorageChallenge.typeUrl || typeof o.challengeId === "string" && typeof o.fileId === "string" && typeof o.fileMerkle === "string" && typeof o.provider === "string" && typeof o.chunkIndex === "bigint" && typeof o.createdHeight === "bigint" && typeof o.deadlineHeight === "bigint");
|
|
230
|
+
},
|
|
231
|
+
isSDK(o) {
|
|
232
|
+
return o && (o.$typeUrl === exports.StorageChallenge.typeUrl || typeof o.challenge_id === "string" && typeof o.file_id === "string" && typeof o.file_merkle === "string" && typeof o.provider === "string" && typeof o.chunk_index === "bigint" && typeof o.created_height === "bigint" && typeof o.deadline_height === "bigint");
|
|
233
|
+
},
|
|
234
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
235
|
+
if (message.challengeId !== "") {
|
|
236
|
+
writer.uint32(10).string(message.challengeId);
|
|
237
|
+
}
|
|
238
|
+
if (message.fileId !== "") {
|
|
239
|
+
writer.uint32(18).string(message.fileId);
|
|
240
|
+
}
|
|
241
|
+
if (message.fileMerkle !== "") {
|
|
242
|
+
writer.uint32(26).string(message.fileMerkle);
|
|
243
|
+
}
|
|
244
|
+
if (message.provider !== "") {
|
|
245
|
+
writer.uint32(34).string(message.provider);
|
|
246
|
+
}
|
|
247
|
+
if (message.chunkIndex !== 0) {
|
|
248
|
+
writer.uint32(40).uint64(message.chunkIndex);
|
|
249
|
+
}
|
|
250
|
+
if (message.createdHeight !== 0) {
|
|
251
|
+
writer.uint32(48).uint64(message.createdHeight);
|
|
252
|
+
}
|
|
253
|
+
if (message.deadlineHeight !== 0) {
|
|
254
|
+
writer.uint32(56).uint64(message.deadlineHeight);
|
|
255
|
+
}
|
|
256
|
+
return writer;
|
|
257
|
+
},
|
|
258
|
+
decode(input, length) {
|
|
259
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
260
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
261
|
+
const message = createBaseStorageChallenge();
|
|
262
|
+
while (reader.pos < end) {
|
|
263
|
+
const tag = reader.uint32();
|
|
264
|
+
switch (tag >>> 3) {
|
|
265
|
+
case 1:
|
|
266
|
+
message.challengeId = reader.string();
|
|
267
|
+
break;
|
|
268
|
+
case 2:
|
|
269
|
+
message.fileId = reader.string();
|
|
270
|
+
break;
|
|
271
|
+
case 3:
|
|
272
|
+
message.fileMerkle = reader.string();
|
|
273
|
+
break;
|
|
274
|
+
case 4:
|
|
275
|
+
message.provider = reader.string();
|
|
276
|
+
break;
|
|
277
|
+
case 5:
|
|
278
|
+
message.chunkIndex = Number(reader.uint64().toString());
|
|
279
|
+
break;
|
|
280
|
+
case 6:
|
|
281
|
+
message.createdHeight = Number(reader.uint64().toString());
|
|
282
|
+
break;
|
|
283
|
+
case 7:
|
|
284
|
+
message.deadlineHeight = Number(reader.uint64().toString());
|
|
285
|
+
break;
|
|
286
|
+
default:
|
|
287
|
+
reader.skipType(tag & 7);
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
return message;
|
|
292
|
+
},
|
|
293
|
+
fromPartial(object) {
|
|
294
|
+
const message = createBaseStorageChallenge();
|
|
295
|
+
message.challengeId = object.challengeId ?? "";
|
|
296
|
+
message.fileId = object.fileId ?? "";
|
|
297
|
+
message.fileMerkle = object.fileMerkle ?? "";
|
|
298
|
+
message.provider = object.provider ?? "";
|
|
299
|
+
message.chunkIndex = object.chunkIndex !== undefined && object.chunkIndex !== null ? Number(object.chunkIndex.toString()) : 0;
|
|
300
|
+
message.createdHeight = object.createdHeight !== undefined && object.createdHeight !== null ? Number(object.createdHeight.toString()) : 0;
|
|
301
|
+
message.deadlineHeight = object.deadlineHeight !== undefined && object.deadlineHeight !== null ? Number(object.deadlineHeight.toString()) : 0;
|
|
302
|
+
return message;
|
|
303
|
+
},
|
|
304
|
+
fromProtoMsg(message) {
|
|
305
|
+
return exports.StorageChallenge.decode(message.value);
|
|
306
|
+
},
|
|
307
|
+
toProto(message) {
|
|
308
|
+
return exports.StorageChallenge.encode(message).finish();
|
|
309
|
+
},
|
|
310
|
+
toProtoMsg(message) {
|
|
311
|
+
return {
|
|
312
|
+
typeUrl: "/atlas.storage.v1.StorageChallenge",
|
|
313
|
+
value: exports.StorageChallenge.encode(message).finish()
|
|
314
|
+
};
|
|
315
|
+
},
|
|
316
|
+
registerTypeUrl() { }
|
|
317
|
+
};
|
|
318
|
+
registry_1.GlobalDecoderRegistry.register(exports.StorageChallenge.typeUrl, exports.StorageChallenge);
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
4
|
+
function createBaseMerkleProof() {
|
|
5
|
+
return {
|
|
6
|
+
chunk: new Uint8Array(),
|
|
7
|
+
path: 0,
|
|
8
|
+
siblings: []
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @name MerkleProof
|
|
13
|
+
* @package atlas.storage.v1
|
|
14
|
+
* @see proto type: atlas.storage.v1.MerkleProof
|
|
15
|
+
*/
|
|
16
|
+
export const MerkleProof = {
|
|
17
|
+
typeUrl: "/atlas.storage.v1.MerkleProof",
|
|
18
|
+
is(o) {
|
|
19
|
+
return o && (o.$typeUrl === MerkleProof.typeUrl || (o.chunk instanceof Uint8Array || typeof o.chunk === "string") && typeof o.path === "bigint" && Array.isArray(o.siblings) && (!o.siblings.length || o.siblings[0] instanceof Uint8Array || typeof o.siblings[0] === "string"));
|
|
20
|
+
},
|
|
21
|
+
isSDK(o) {
|
|
22
|
+
return o && (o.$typeUrl === MerkleProof.typeUrl || (o.chunk instanceof Uint8Array || typeof o.chunk === "string") && typeof o.path === "bigint" && Array.isArray(o.siblings) && (!o.siblings.length || o.siblings[0] instanceof Uint8Array || typeof o.siblings[0] === "string"));
|
|
23
|
+
},
|
|
24
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
25
|
+
if (message.chunk.length !== 0) {
|
|
26
|
+
writer.uint32(10).bytes(message.chunk);
|
|
27
|
+
}
|
|
28
|
+
if (message.path !== 0) {
|
|
29
|
+
writer.uint32(16).uint64(message.path);
|
|
30
|
+
}
|
|
31
|
+
for (const v of message.siblings) {
|
|
32
|
+
writer.uint32(26).bytes(v);
|
|
33
|
+
}
|
|
34
|
+
return writer;
|
|
35
|
+
},
|
|
36
|
+
decode(input, length) {
|
|
37
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
38
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39
|
+
const message = createBaseMerkleProof();
|
|
40
|
+
while (reader.pos < end) {
|
|
41
|
+
const tag = reader.uint32();
|
|
42
|
+
switch (tag >>> 3) {
|
|
43
|
+
case 1:
|
|
44
|
+
message.chunk = reader.bytes();
|
|
45
|
+
break;
|
|
46
|
+
case 2:
|
|
47
|
+
message.path = Number(reader.uint64().toString());
|
|
48
|
+
break;
|
|
49
|
+
case 3:
|
|
50
|
+
message.siblings.push(reader.bytes());
|
|
51
|
+
break;
|
|
52
|
+
default:
|
|
53
|
+
reader.skipType(tag & 7);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return message;
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBaseMerkleProof();
|
|
61
|
+
message.chunk = object.chunk ?? new Uint8Array();
|
|
62
|
+
message.path = object.path !== undefined && object.path !== null ? Number(object.path.toString()) : 0;
|
|
63
|
+
message.siblings = object.siblings?.map(e => e) || [];
|
|
64
|
+
return message;
|
|
65
|
+
},
|
|
66
|
+
fromProtoMsg(message) {
|
|
67
|
+
return MerkleProof.decode(message.value);
|
|
68
|
+
},
|
|
69
|
+
toProto(message) {
|
|
70
|
+
return MerkleProof.encode(message).finish();
|
|
71
|
+
},
|
|
72
|
+
toProtoMsg(message) {
|
|
73
|
+
return {
|
|
74
|
+
typeUrl: "/atlas.storage.v1.MerkleProof",
|
|
75
|
+
value: MerkleProof.encode(message).finish()
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
registerTypeUrl() { }
|
|
79
|
+
};
|
|
80
|
+
GlobalDecoderRegistry.register(MerkleProof.typeUrl, MerkleProof);
|
|
81
|
+
function createBaseProof() {
|
|
82
|
+
return {
|
|
83
|
+
challengeId: "",
|
|
84
|
+
data: new Uint8Array(),
|
|
85
|
+
index: 0,
|
|
86
|
+
path: 0,
|
|
87
|
+
hashes: []
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @name Proof
|
|
92
|
+
* @package atlas.storage.v1
|
|
93
|
+
* @see proto type: atlas.storage.v1.Proof
|
|
94
|
+
*/
|
|
95
|
+
export const Proof = {
|
|
96
|
+
typeUrl: "/atlas.storage.v1.Proof",
|
|
97
|
+
is(o) {
|
|
98
|
+
return o && (o.$typeUrl === Proof.typeUrl || typeof o.challengeId === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.index === "bigint" && typeof o.path === "bigint" && Array.isArray(o.hashes) && (!o.hashes.length || o.hashes[0] instanceof Uint8Array || typeof o.hashes[0] === "string"));
|
|
99
|
+
},
|
|
100
|
+
isSDK(o) {
|
|
101
|
+
return o && (o.$typeUrl === Proof.typeUrl || typeof o.challenge_id === "string" && (o.data instanceof Uint8Array || typeof o.data === "string") && typeof o.index === "bigint" && typeof o.path === "bigint" && Array.isArray(o.hashes) && (!o.hashes.length || o.hashes[0] instanceof Uint8Array || typeof o.hashes[0] === "string"));
|
|
102
|
+
},
|
|
103
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
104
|
+
if (message.challengeId !== "") {
|
|
105
|
+
writer.uint32(10).string(message.challengeId);
|
|
106
|
+
}
|
|
107
|
+
if (message.data.length !== 0) {
|
|
108
|
+
writer.uint32(18).bytes(message.data);
|
|
109
|
+
}
|
|
110
|
+
if (message.index !== 0) {
|
|
111
|
+
writer.uint32(24).uint64(message.index);
|
|
112
|
+
}
|
|
113
|
+
if (message.path !== 0) {
|
|
114
|
+
writer.uint32(32).uint64(message.path);
|
|
115
|
+
}
|
|
116
|
+
for (const v of message.hashes) {
|
|
117
|
+
writer.uint32(42).bytes(v);
|
|
118
|
+
}
|
|
119
|
+
return writer;
|
|
120
|
+
},
|
|
121
|
+
decode(input, length) {
|
|
122
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
123
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
124
|
+
const message = createBaseProof();
|
|
125
|
+
while (reader.pos < end) {
|
|
126
|
+
const tag = reader.uint32();
|
|
127
|
+
switch (tag >>> 3) {
|
|
128
|
+
case 1:
|
|
129
|
+
message.challengeId = reader.string();
|
|
130
|
+
break;
|
|
131
|
+
case 2:
|
|
132
|
+
message.data = reader.bytes();
|
|
133
|
+
break;
|
|
134
|
+
case 3:
|
|
135
|
+
message.index = Number(reader.uint64().toString());
|
|
136
|
+
break;
|
|
137
|
+
case 4:
|
|
138
|
+
message.path = Number(reader.uint64().toString());
|
|
139
|
+
break;
|
|
140
|
+
case 5:
|
|
141
|
+
message.hashes.push(reader.bytes());
|
|
142
|
+
break;
|
|
143
|
+
default:
|
|
144
|
+
reader.skipType(tag & 7);
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return message;
|
|
149
|
+
},
|
|
150
|
+
fromPartial(object) {
|
|
151
|
+
const message = createBaseProof();
|
|
152
|
+
message.challengeId = object.challengeId ?? "";
|
|
153
|
+
message.data = object.data ?? new Uint8Array();
|
|
154
|
+
message.index = object.index !== undefined && object.index !== null ? Number(object.index.toString()) : 0;
|
|
155
|
+
message.path = object.path !== undefined && object.path !== null ? Number(object.path.toString()) : 0;
|
|
156
|
+
message.hashes = object.hashes?.map(e => e) || [];
|
|
157
|
+
return message;
|
|
158
|
+
},
|
|
159
|
+
fromProtoMsg(message) {
|
|
160
|
+
return Proof.decode(message.value);
|
|
161
|
+
},
|
|
162
|
+
toProto(message) {
|
|
163
|
+
return Proof.encode(message).finish();
|
|
164
|
+
},
|
|
165
|
+
toProtoMsg(message) {
|
|
166
|
+
return {
|
|
167
|
+
typeUrl: "/atlas.storage.v1.Proof",
|
|
168
|
+
value: Proof.encode(message).finish()
|
|
169
|
+
};
|
|
170
|
+
},
|
|
171
|
+
registerTypeUrl() { }
|
|
172
|
+
};
|
|
173
|
+
GlobalDecoderRegistry.register(Proof.typeUrl, Proof);
|
|
174
|
+
function createBaseStorageChallenge() {
|
|
175
|
+
return {
|
|
176
|
+
challengeId: "",
|
|
177
|
+
fileId: "",
|
|
178
|
+
fileMerkle: "",
|
|
179
|
+
provider: "",
|
|
180
|
+
chunkIndex: 0,
|
|
181
|
+
createdHeight: 0,
|
|
182
|
+
deadlineHeight: 0
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @name StorageChallenge
|
|
187
|
+
* @package atlas.storage.v1
|
|
188
|
+
* @see proto type: atlas.storage.v1.StorageChallenge
|
|
189
|
+
*/
|
|
190
|
+
export const StorageChallenge = {
|
|
191
|
+
typeUrl: "/atlas.storage.v1.StorageChallenge",
|
|
192
|
+
is(o) {
|
|
193
|
+
return o && (o.$typeUrl === StorageChallenge.typeUrl || typeof o.challengeId === "string" && typeof o.fileId === "string" && typeof o.fileMerkle === "string" && typeof o.provider === "string" && typeof o.chunkIndex === "bigint" && typeof o.createdHeight === "bigint" && typeof o.deadlineHeight === "bigint");
|
|
194
|
+
},
|
|
195
|
+
isSDK(o) {
|
|
196
|
+
return o && (o.$typeUrl === StorageChallenge.typeUrl || typeof o.challenge_id === "string" && typeof o.file_id === "string" && typeof o.file_merkle === "string" && typeof o.provider === "string" && typeof o.chunk_index === "bigint" && typeof o.created_height === "bigint" && typeof o.deadline_height === "bigint");
|
|
197
|
+
},
|
|
198
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
199
|
+
if (message.challengeId !== "") {
|
|
200
|
+
writer.uint32(10).string(message.challengeId);
|
|
201
|
+
}
|
|
202
|
+
if (message.fileId !== "") {
|
|
203
|
+
writer.uint32(18).string(message.fileId);
|
|
204
|
+
}
|
|
205
|
+
if (message.fileMerkle !== "") {
|
|
206
|
+
writer.uint32(26).string(message.fileMerkle);
|
|
207
|
+
}
|
|
208
|
+
if (message.provider !== "") {
|
|
209
|
+
writer.uint32(34).string(message.provider);
|
|
210
|
+
}
|
|
211
|
+
if (message.chunkIndex !== 0) {
|
|
212
|
+
writer.uint32(40).uint64(message.chunkIndex);
|
|
213
|
+
}
|
|
214
|
+
if (message.createdHeight !== 0) {
|
|
215
|
+
writer.uint32(48).uint64(message.createdHeight);
|
|
216
|
+
}
|
|
217
|
+
if (message.deadlineHeight !== 0) {
|
|
218
|
+
writer.uint32(56).uint64(message.deadlineHeight);
|
|
219
|
+
}
|
|
220
|
+
return writer;
|
|
221
|
+
},
|
|
222
|
+
decode(input, length) {
|
|
223
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
224
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
225
|
+
const message = createBaseStorageChallenge();
|
|
226
|
+
while (reader.pos < end) {
|
|
227
|
+
const tag = reader.uint32();
|
|
228
|
+
switch (tag >>> 3) {
|
|
229
|
+
case 1:
|
|
230
|
+
message.challengeId = reader.string();
|
|
231
|
+
break;
|
|
232
|
+
case 2:
|
|
233
|
+
message.fileId = reader.string();
|
|
234
|
+
break;
|
|
235
|
+
case 3:
|
|
236
|
+
message.fileMerkle = reader.string();
|
|
237
|
+
break;
|
|
238
|
+
case 4:
|
|
239
|
+
message.provider = reader.string();
|
|
240
|
+
break;
|
|
241
|
+
case 5:
|
|
242
|
+
message.chunkIndex = Number(reader.uint64().toString());
|
|
243
|
+
break;
|
|
244
|
+
case 6:
|
|
245
|
+
message.createdHeight = Number(reader.uint64().toString());
|
|
246
|
+
break;
|
|
247
|
+
case 7:
|
|
248
|
+
message.deadlineHeight = Number(reader.uint64().toString());
|
|
249
|
+
break;
|
|
250
|
+
default:
|
|
251
|
+
reader.skipType(tag & 7);
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return message;
|
|
256
|
+
},
|
|
257
|
+
fromPartial(object) {
|
|
258
|
+
const message = createBaseStorageChallenge();
|
|
259
|
+
message.challengeId = object.challengeId ?? "";
|
|
260
|
+
message.fileId = object.fileId ?? "";
|
|
261
|
+
message.fileMerkle = object.fileMerkle ?? "";
|
|
262
|
+
message.provider = object.provider ?? "";
|
|
263
|
+
message.chunkIndex = object.chunkIndex !== undefined && object.chunkIndex !== null ? Number(object.chunkIndex.toString()) : 0;
|
|
264
|
+
message.createdHeight = object.createdHeight !== undefined && object.createdHeight !== null ? Number(object.createdHeight.toString()) : 0;
|
|
265
|
+
message.deadlineHeight = object.deadlineHeight !== undefined && object.deadlineHeight !== null ? Number(object.deadlineHeight.toString()) : 0;
|
|
266
|
+
return message;
|
|
267
|
+
},
|
|
268
|
+
fromProtoMsg(message) {
|
|
269
|
+
return StorageChallenge.decode(message.value);
|
|
270
|
+
},
|
|
271
|
+
toProto(message) {
|
|
272
|
+
return StorageChallenge.encode(message).finish();
|
|
273
|
+
},
|
|
274
|
+
toProtoMsg(message) {
|
|
275
|
+
return {
|
|
276
|
+
typeUrl: "/atlas.storage.v1.StorageChallenge",
|
|
277
|
+
value: StorageChallenge.encode(message).finish()
|
|
278
|
+
};
|
|
279
|
+
},
|
|
280
|
+
registerTypeUrl() { }
|
|
281
|
+
};
|
|
282
|
+
GlobalDecoderRegistry.register(StorageChallenge.typeUrl, StorageChallenge);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
/**
|
|
3
|
+
* Provider defines the Provider message.
|
|
4
|
+
* @name Provider
|
|
5
|
+
* @package atlas.storage.v1
|
|
6
|
+
* @see proto type: atlas.storage.v1.Provider
|
|
7
|
+
*/
|
|
8
|
+
export interface Provider {
|
|
9
|
+
address: string;
|
|
10
|
+
hostname: string;
|
|
11
|
+
spaceAvailable: number;
|
|
12
|
+
spaceUsed: number;
|
|
13
|
+
createdAt: number;
|
|
14
|
+
creditDelta: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ProviderProtoMsg {
|
|
17
|
+
typeUrl: "/atlas.storage.v1.Provider";
|
|
18
|
+
value: Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Provider defines the Provider message.
|
|
22
|
+
* @name ProviderSDKType
|
|
23
|
+
* @package atlas.storage.v1
|
|
24
|
+
* @see proto type: atlas.storage.v1.Provider
|
|
25
|
+
*/
|
|
26
|
+
export interface ProviderSDKType {
|
|
27
|
+
address: string;
|
|
28
|
+
hostname: string;
|
|
29
|
+
space_available: number;
|
|
30
|
+
space_used: number;
|
|
31
|
+
created_at: number;
|
|
32
|
+
credit_delta: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Provider defines the Provider message.
|
|
36
|
+
* @name Provider
|
|
37
|
+
* @package atlas.storage.v1
|
|
38
|
+
* @see proto type: atlas.storage.v1.Provider
|
|
39
|
+
*/
|
|
40
|
+
export declare const Provider: {
|
|
41
|
+
typeUrl: string;
|
|
42
|
+
is(o: any): o is Provider;
|
|
43
|
+
isSDK(o: any): o is ProviderSDKType;
|
|
44
|
+
encode(message: Provider, writer?: _m0.Writer): _m0.Writer;
|
|
45
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Provider;
|
|
46
|
+
fromPartial(object: Partial<Provider>): Provider;
|
|
47
|
+
fromProtoMsg(message: ProviderProtoMsg): Provider;
|
|
48
|
+
toProto(message: Provider): Uint8Array;
|
|
49
|
+
toProtoMsg(message: Provider): ProviderProtoMsg;
|
|
50
|
+
registerTypeUrl(): void;
|
|
51
|
+
};
|