@gitopia/gitopiajs 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/package.json +3 -3
- package/dist/LICENSE +0 -21
- package/dist/amino/amino.d.ts +0 -1
- package/dist/amino/amino.js +0 -2
- package/dist/amino/bundle.d.ts +0 -1
- package/dist/amino/bundle.js +0 -41
- package/dist/binary.d.ts +0 -130
- package/dist/binary.js +0 -371
- package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -407
- package/dist/cosmos/bank/v1beta1/bank.js +0 -664
- package/dist/cosmos/bank/v1beta1/query.d.ts +0 -1062
- package/dist/cosmos/bank/v1beta1/query.js +0 -1759
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +0 -19
- package/dist/cosmos/bank/v1beta1/query.lcd.js +0 -173
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +0 -106
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +0 -123
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -190
- package/dist/cosmos/base/query/v1beta1/pagination.js +0 -204
- package/dist/cosmos/base/v1beta1/coin.d.ts +0 -193
- package/dist/cosmos/base/v1beta1/coin.js +0 -306
- package/dist/cosmos/bundle.d.ts +0 -2311
- package/dist/cosmos/bundle.js +0 -134
- package/dist/cosmos/client.d.ts +0 -84
- package/dist/cosmos/client.js +0 -65
- package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -245
- package/dist/cosmos/feegrant/v1beta1/feegrant.js +0 -456
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -258
- package/dist/cosmos/feegrant/v1beta1/query.js +0 -487
- package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +0 -11
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +0 -44
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +0 -28
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -47
- package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -571
- package/dist/cosmos/gov/v1beta1/gov.js +0 -1122
- package/dist/cosmos/gov/v1beta1/query.d.ts +0 -636
- package/dist/cosmos/gov/v1beta1/query.js +0 -1264
- package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +0 -16
- package/dist/cosmos/gov/v1beta1/query.lcd.js +0 -87
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +0 -44
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +0 -92
- package/dist/cosmos/group/v1/query.d.ts +0 -1097
- package/dist/cosmos/group/v1/query.js +0 -2182
- package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
- package/dist/cosmos/group/v1/query.lcd.js +0 -158
- package/dist/cosmos/group/v1/query.rpc.Query.d.ts +0 -78
- package/dist/cosmos/group/v1/query.rpc.Query.js +0 -148
- package/dist/cosmos/group/v1/tx.amino.d.ts +0 -73
- package/dist/cosmos/group/v1/tx.amino.js +0 -77
- package/dist/cosmos/group/v1/tx.d.ts +0 -1198
- package/dist/cosmos/group/v1/tx.js +0 -2362
- package/dist/cosmos/group/v1/tx.registry.d.ts +0 -180
- package/dist/cosmos/group/v1/tx.registry.js +0 -271
- package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +0 -51
- package/dist/cosmos/group/v1/tx.rpc.msg.js +0 -96
- package/dist/cosmos/group/v1/types.d.ts +0 -873
- package/dist/cosmos/group/v1/types.js +0 -1495
- package/dist/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos/query/v1/query.d.ts +0 -1
- package/dist/cosmos/query/v1/query.js +0 -2
- package/dist/cosmos/rpc.query.d.ts +0 -59
- package/dist/cosmos/rpc.query.js +0 -60
- package/dist/cosmos/rpc.tx.d.ts +0 -10
- package/dist/cosmos/rpc.tx.js +0 -44
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -278
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -382
- package/dist/cosmos_proto/bundle.d.ts +0 -32
- package/dist/cosmos_proto/bundle.js +0 -41
- package/dist/cosmos_proto/cosmos.d.ts +0 -171
- package/dist/cosmos_proto/cosmos.js +0 -221
- package/dist/esm/amino/amino.js +0 -1
- package/dist/esm/amino/bundle.js +0 -5
- package/dist/esm/binary.js +0 -366
- package/dist/esm/cosmos/bank/v1beta1/bank.js +0 -661
- package/dist/esm/cosmos/bank/v1beta1/query.js +0 -1756
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +0 -169
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +0 -118
- package/dist/esm/cosmos/base/query/v1beta1/pagination.js +0 -201
- package/dist/esm/cosmos/base/v1beta1/coin.js +0 -303
- package/dist/esm/cosmos/bundle.js +0 -98
- package/dist/esm/cosmos/client.js +0 -27
- package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +0 -450
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -484
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +0 -40
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -42
- package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -1112
- package/dist/esm/cosmos/gov/v1beta1/query.js +0 -1261
- package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +0 -83
- package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +0 -87
- package/dist/esm/cosmos/group/v1/query.js +0 -2179
- package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
- package/dist/esm/cosmos/group/v1/query.rpc.Query.js +0 -143
- package/dist/esm/cosmos/group/v1/tx.amino.js +0 -74
- package/dist/esm/cosmos/group/v1/tx.js +0 -2354
- package/dist/esm/cosmos/group/v1/tx.registry.js +0 -267
- package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +0 -92
- package/dist/esm/cosmos/group/v1/types.js +0 -1483
- package/dist/esm/cosmos/msg/v1/msg.js +0 -1
- package/dist/esm/cosmos/query/v1/query.js +0 -1
- package/dist/esm/cosmos/rpc.query.js +0 -23
- package/dist/esm/cosmos/rpc.tx.js +0 -7
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -379
- package/dist/esm/cosmos_proto/bundle.js +0 -5
- package/dist/esm/cosmos_proto/cosmos.js +0 -216
- package/dist/esm/gitopia/bundle.js +0 -95
- package/dist/esm/gitopia/client.js +0 -32
- package/dist/esm/gitopia/custom-lcd-client.js +0 -50
- package/dist/esm/gitopia/gitopia/gitopia/attachment.js +0 -101
- package/dist/esm/gitopia/gitopia/gitopia/bounty.js +0 -255
- package/dist/esm/gitopia/gitopia/gitopia/branch.js +0 -137
- package/dist/esm/gitopia/gitopia/gitopia/comment.js +0 -488
- package/dist/esm/gitopia/gitopia/gitopia/dao.js +0 -451
- package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +0 -78
- package/dist/esm/gitopia/gitopia/gitopia/genesis.js +0 -460
- package/dist/esm/gitopia/gitopia/gitopia/issue.js +0 -323
- package/dist/esm/gitopia/gitopia/gitopia/params.js +0 -293
- package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +0 -565
- package/dist/esm/gitopia/gitopia/gitopia/query.js +0 -7351
- package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +0 -452
- package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -453
- package/dist/esm/gitopia/gitopia/gitopia/reaction.js +0 -123
- package/dist/esm/gitopia/gitopia/gitopia/release.js +0 -225
- package/dist/esm/gitopia/gitopia/gitopia/repository.js +0 -1200
- package/dist/esm/gitopia/gitopia/gitopia/tag.js +0 -125
- package/dist/esm/gitopia/gitopia/gitopia/task.js +0 -197
- package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +0 -464
- package/dist/esm/gitopia/gitopia/gitopia/tx.js +0 -14679
- package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +0 -1671
- package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -560
- package/dist/esm/gitopia/gitopia/gitopia/user.js +0 -340
- package/dist/esm/gitopia/gitopia/gitopia/whois.js +0 -146
- package/dist/esm/gitopia/gitopia/offchain/offchain.js +0 -144
- package/dist/esm/gitopia/gitopia/rewards/genesis.js +0 -82
- package/dist/esm/gitopia/gitopia/rewards/params.js +0 -81
- package/dist/esm/gitopia/gitopia/rewards/pool.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/query.js +0 -654
- package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +0 -40
- package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +0 -53
- package/dist/esm/gitopia/gitopia/rewards/rewards.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/task.js +0 -176
- package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +0 -19
- package/dist/esm/gitopia/gitopia/rewards/tx.js +0 -525
- package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +0 -69
- package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -26
- package/dist/esm/gitopia/rpc.query.js +0 -29
- package/dist/esm/gitopia/rpc.tx.js +0 -13
- package/dist/esm/gogoproto/bundle.js +0 -5
- package/dist/esm/gogoproto/gogo.js +0 -1
- package/dist/esm/google/api/annotations.js +0 -1
- package/dist/esm/google/api/http.js +0 -329
- package/dist/esm/google/bundle.js +0 -14
- package/dist/esm/google/protobuf/any.js +0 -74
- package/dist/esm/google/protobuf/descriptor.js +0 -4848
- package/dist/esm/google/protobuf/duration.js +0 -71
- package/dist/esm/google/protobuf/timestamp.js +0 -68
- package/dist/esm/helpers.js +0 -129
- package/dist/esm/ibc/applications/transfer/v1/query.js +0 -847
- package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +0 -70
- package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +0 -71
- package/dist/esm/ibc/applications/transfer/v1/transfer.js +0 -164
- package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +0 -9
- package/dist/esm/ibc/applications/transfer/v1/tx.js +0 -226
- package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +0 -33
- package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -14
- package/dist/esm/ibc/bundle.js +0 -44
- package/dist/esm/ibc/client.js +0 -29
- package/dist/esm/ibc/core/client/v1/client.js +0 -611
- package/dist/esm/ibc/rpc.query.js +0 -30
- package/dist/esm/ibc/rpc.tx.js +0 -14
- package/dist/esm/index.js +0 -19
- package/dist/esm/utf8.js +0 -137
- package/dist/esm/varint.js +0 -408
- package/dist/gitopia/bundle.d.ts +0 -6123
- package/dist/gitopia/bundle.js +0 -131
- package/dist/gitopia/client.d.ts +0 -492
- package/dist/gitopia/client.js +0 -70
- package/dist/gitopia/custom-lcd-client.d.ts +0 -31
- package/dist/gitopia/custom-lcd-client.js +0 -87
- package/dist/gitopia/gitopia/gitopia/attachment.d.ts +0 -39
- package/dist/gitopia/gitopia/gitopia/attachment.js +0 -104
- package/dist/gitopia/gitopia/gitopia/bounty.d.ts +0 -79
- package/dist/gitopia/gitopia/gitopia/bounty.js +0 -262
- package/dist/gitopia/gitopia/gitopia/branch.d.ts +0 -48
- package/dist/gitopia/gitopia/gitopia/branch.js +0 -140
- package/dist/gitopia/gitopia/gitopia/comment.d.ts +0 -125
- package/dist/gitopia/gitopia/gitopia/comment.js +0 -495
- package/dist/gitopia/gitopia/gitopia/dao.d.ts +0 -160
- package/dist/gitopia/gitopia/gitopia/dao.js +0 -454
- package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +0 -34
- package/dist/gitopia/gitopia/gitopia/exercised_amount.js +0 -81
- package/dist/gitopia/gitopia/gitopia/genesis.d.ts +0 -143
- package/dist/gitopia/gitopia/gitopia/genesis.js +0 -463
- package/dist/gitopia/gitopia/gitopia/issue.d.ts +0 -88
- package/dist/gitopia/gitopia/gitopia/issue.js +0 -328
- package/dist/gitopia/gitopia/gitopia/params.d.ts +0 -115
- package/dist/gitopia/gitopia/gitopia/params.js +0 -296
- package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +0 -177
- package/dist/gitopia/gitopia/gitopia/pullRequest.js +0 -570
- package/dist/gitopia/gitopia/gitopia/query.d.ts +0 -3130
- package/dist/gitopia/gitopia/gitopia/query.js +0 -7355
- package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +0 -54
- package/dist/gitopia/gitopia/gitopia/query.lcd.js +0 -456
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +0 -188
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -458
- package/dist/gitopia/gitopia/gitopia/reaction.d.ts +0 -42
- package/dist/gitopia/gitopia/gitopia/reaction.js +0 -128
- package/dist/gitopia/gitopia/gitopia/release.d.ts +0 -70
- package/dist/gitopia/gitopia/gitopia/release.js +0 -228
- package/dist/gitopia/gitopia/gitopia/repository.d.ts +0 -424
- package/dist/gitopia/gitopia/gitopia/repository.js +0 -1207
- package/dist/gitopia/gitopia/gitopia/tag.d.ts +0 -45
- package/dist/gitopia/gitopia/gitopia/tag.js +0 -128
- package/dist/gitopia/gitopia/gitopia/task.d.ts +0 -64
- package/dist/gitopia/gitopia/gitopia/task.js +0 -204
- package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +0 -463
- package/dist/gitopia/gitopia/gitopia/tx.amino.js +0 -467
- package/dist/gitopia/gitopia/gitopia/tx.d.ts +0 -6246
- package/dist/gitopia/gitopia/gitopia/tx.js +0 -14687
- package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +0 -1116
- package/dist/gitopia/gitopia/gitopia/tx.registry.js +0 -1675
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +0 -200
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -564
- package/dist/gitopia/gitopia/gitopia/user.d.ts +0 -104
- package/dist/gitopia/gitopia/gitopia/user.js +0 -343
- package/dist/gitopia/gitopia/gitopia/whois.d.ts +0 -51
- package/dist/gitopia/gitopia/gitopia/whois.js +0 -151
- package/dist/gitopia/gitopia/offchain/offchain.d.ts +0 -74
- package/dist/gitopia/gitopia/offchain/offchain.js +0 -147
- package/dist/gitopia/gitopia/rewards/genesis.d.ts +0 -40
- package/dist/gitopia/gitopia/rewards/genesis.js +0 -85
- package/dist/gitopia/gitopia/rewards/params.d.ts +0 -37
- package/dist/gitopia/gitopia/rewards/params.js +0 -84
- package/dist/gitopia/gitopia/rewards/pool.d.ts +0 -59
- package/dist/gitopia/gitopia/rewards/pool.js +0 -196
- package/dist/gitopia/gitopia/rewards/query.d.ts +0 -294
- package/dist/gitopia/gitopia/rewards/query.js +0 -657
- package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +0 -12
- package/dist/gitopia/gitopia/rewards/query.lcd.js +0 -44
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +0 -28
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +0 -58
- package/dist/gitopia/gitopia/rewards/rewards.d.ts +0 -79
- package/dist/gitopia/gitopia/rewards/rewards.js +0 -194
- package/dist/gitopia/gitopia/rewards/task.d.ts +0 -54
- package/dist/gitopia/gitopia/rewards/task.js +0 -181
- package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +0 -18
- package/dist/gitopia/gitopia/rewards/tx.amino.js +0 -22
- package/dist/gitopia/gitopia/rewards/tx.d.ts +0 -242
- package/dist/gitopia/gitopia/rewards/tx.js +0 -528
- package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +0 -48
- package/dist/gitopia/gitopia/rewards/tx.registry.js +0 -73
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +0 -19
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -30
- package/dist/gitopia/rpc.query.d.ts +0 -117
- package/dist/gitopia/rpc.query.js +0 -66
- package/dist/gitopia/rpc.tx.d.ts +0 -16
- package/dist/gitopia/rpc.tx.js +0 -50
- package/dist/gogoproto/bundle.d.ts +0 -1
- package/dist/gogoproto/bundle.js +0 -41
- package/dist/gogoproto/gogo.d.ts +0 -1
- package/dist/gogoproto/gogo.js +0 -2
- package/dist/google/api/annotations.d.ts +0 -1
- package/dist/google/api/annotations.js +0 -2
- package/dist/google/api/http.d.ts +0 -1049
- package/dist/google/api/http.js +0 -332
- package/dist/google/bundle.d.ts +0 -525
- package/dist/google/bundle.js +0 -50
- package/dist/google/protobuf/any.d.ts +0 -358
- package/dist/google/protobuf/any.js +0 -77
- package/dist/google/protobuf/descriptor.d.ts +0 -3178
- package/dist/google/protobuf/descriptor.js +0 -4886
- package/dist/google/protobuf/duration.d.ts +0 -223
- package/dist/google/protobuf/duration.js +0 -74
- package/dist/google/protobuf/timestamp.d.ts +0 -314
- package/dist/google/protobuf/timestamp.js +0 -71
- package/dist/helpers.d.ts +0 -82
- package/dist/helpers.js +0 -144
- package/dist/ibc/applications/transfer/v1/query.d.ts +0 -479
- package/dist/ibc/applications/transfer/v1/query.js +0 -850
- package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +0 -14
- package/dist/ibc/applications/transfer/v1/query.lcd.js +0 -74
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +0 -36
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +0 -76
- package/dist/ibc/applications/transfer/v1/transfer.d.ts +0 -123
- package/dist/ibc/applications/transfer/v1/transfer.js +0 -167
- package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +0 -8
- package/dist/ibc/applications/transfer/v1/tx.amino.js +0 -12
- package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -132
- package/dist/ibc/applications/transfer/v1/tx.js +0 -229
- package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +0 -24
- package/dist/ibc/applications/transfer/v1/tx.registry.js +0 -37
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +0 -12
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -18
- package/dist/ibc/bundle.d.ts +0 -450
- package/dist/ibc/bundle.js +0 -80
- package/dist/ibc/client.d.ts +0 -22
- package/dist/ibc/client.js +0 -67
- package/dist/ibc/core/client/v1/client.d.ts +0 -408
- package/dist/ibc/core/client/v1/client.js +0 -614
- package/dist/ibc/rpc.query.d.ts +0 -73
- package/dist/ibc/rpc.query.js +0 -67
- package/dist/ibc/rpc.tx.d.ts +0 -17
- package/dist/ibc/rpc.tx.js +0 -51
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -35
- package/dist/package.json +0 -46
- package/dist/utf8.d.ts +0 -27
- package/dist/utf8.js +0 -141
- package/dist/varint.d.ts +0 -105
- package/dist/varint.js +0 -426
package/dist/helpers.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.0
|
|
3
|
-
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
4
|
-
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
5
|
-
*/
|
|
6
|
-
export declare function bytesFromBase64(b64: string): Uint8Array;
|
|
7
|
-
export declare function base64FromBytes(arr: Uint8Array): string;
|
|
8
|
-
export interface AminoHeight {
|
|
9
|
-
readonly revision_number?: string;
|
|
10
|
-
readonly revision_height?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function omitDefault<T extends string | number | bigint | boolean>(input: T): T | undefined;
|
|
13
|
-
interface Duration {
|
|
14
|
-
/**
|
|
15
|
-
* Signed seconds of the span of time. Must be from -315,576,000,000
|
|
16
|
-
* to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
|
17
|
-
* 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
|
18
|
-
*/
|
|
19
|
-
seconds: bigint;
|
|
20
|
-
/**
|
|
21
|
-
* Signed fractions of a second at nanosecond resolution of the span
|
|
22
|
-
* of time. Durations less than one second are represented with a 0
|
|
23
|
-
* `seconds` field and a positive or negative `nanos` field. For durations
|
|
24
|
-
* of one second or more, a non-zero value for the `nanos` field must be
|
|
25
|
-
* of the same sign as the `seconds` field. Must be from -999,999,999
|
|
26
|
-
* to +999,999,999 inclusive.
|
|
27
|
-
*/
|
|
28
|
-
nanos: number;
|
|
29
|
-
}
|
|
30
|
-
export declare function toDuration(duration: string): Duration;
|
|
31
|
-
export declare function fromDuration(duration: Duration): string;
|
|
32
|
-
export declare function isSet(value: any): boolean;
|
|
33
|
-
export declare function isObject(value: any): boolean;
|
|
34
|
-
export interface PageRequest {
|
|
35
|
-
key: Uint8Array;
|
|
36
|
-
offset: bigint;
|
|
37
|
-
limit: bigint;
|
|
38
|
-
countTotal: boolean;
|
|
39
|
-
reverse: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface PageRequestParams {
|
|
42
|
-
'pagination.key'?: string;
|
|
43
|
-
'pagination.offset'?: string;
|
|
44
|
-
'pagination.limit'?: string;
|
|
45
|
-
'pagination.count_total'?: boolean;
|
|
46
|
-
'pagination.reverse'?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export interface Params {
|
|
49
|
-
params: PageRequestParams;
|
|
50
|
-
}
|
|
51
|
-
export declare const setPaginationParams: (options: Params, pagination?: PageRequest) => Params;
|
|
52
|
-
type Builtin = Date | Function | Uint8Array | string | number | bigint | boolean | undefined;
|
|
53
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
54
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
55
|
-
} : Partial<T>;
|
|
56
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
57
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
58
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
59
|
-
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
60
|
-
export interface Rpc {
|
|
61
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
62
|
-
}
|
|
63
|
-
export declare function isRpc(rpc: unknown): rpc is Rpc;
|
|
64
|
-
interface Timestamp {
|
|
65
|
-
/**
|
|
66
|
-
* Represents seconds of UTC time since Unix epoch
|
|
67
|
-
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
68
|
-
* 9999-12-31T23:59:59Z inclusive.
|
|
69
|
-
*/
|
|
70
|
-
seconds: bigint;
|
|
71
|
-
/**
|
|
72
|
-
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
73
|
-
* second values with fractions must still have non-negative nanos values
|
|
74
|
-
* that count forward in time. Must be from 0 to 999,999,999
|
|
75
|
-
* inclusive.
|
|
76
|
-
*/
|
|
77
|
-
nanos: number;
|
|
78
|
-
}
|
|
79
|
-
export declare function toTimestamp(date: Date): Timestamp;
|
|
80
|
-
export declare function fromTimestamp(t: Timestamp): Date;
|
|
81
|
-
export declare function fromJsonTimestamp(o: any): Timestamp;
|
|
82
|
-
export {};
|
package/dist/helpers.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//@ts-nocheck
|
|
3
|
-
/**
|
|
4
|
-
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.0
|
|
5
|
-
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
|
|
6
|
-
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.setPaginationParams = void 0;
|
|
10
|
-
exports.bytesFromBase64 = bytesFromBase64;
|
|
11
|
-
exports.base64FromBytes = base64FromBytes;
|
|
12
|
-
exports.omitDefault = omitDefault;
|
|
13
|
-
exports.toDuration = toDuration;
|
|
14
|
-
exports.fromDuration = fromDuration;
|
|
15
|
-
exports.isSet = isSet;
|
|
16
|
-
exports.isObject = isObject;
|
|
17
|
-
exports.isRpc = isRpc;
|
|
18
|
-
exports.toTimestamp = toTimestamp;
|
|
19
|
-
exports.fromTimestamp = fromTimestamp;
|
|
20
|
-
exports.fromJsonTimestamp = fromJsonTimestamp;
|
|
21
|
-
var globalThis = (() => {
|
|
22
|
-
if (typeof globalThis !== 'undefined')
|
|
23
|
-
return globalThis;
|
|
24
|
-
if (typeof self !== 'undefined')
|
|
25
|
-
return self;
|
|
26
|
-
if (typeof window !== 'undefined')
|
|
27
|
-
return window;
|
|
28
|
-
if (typeof global !== 'undefined')
|
|
29
|
-
return global;
|
|
30
|
-
throw 'Unable to locate global object';
|
|
31
|
-
})();
|
|
32
|
-
const atob = globalThis.atob ||
|
|
33
|
-
((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary'));
|
|
34
|
-
function bytesFromBase64(b64) {
|
|
35
|
-
const bin = atob(b64);
|
|
36
|
-
const arr = new Uint8Array(bin.length);
|
|
37
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
38
|
-
arr[i] = bin.charCodeAt(i);
|
|
39
|
-
}
|
|
40
|
-
return arr;
|
|
41
|
-
}
|
|
42
|
-
const btoa = globalThis.btoa ||
|
|
43
|
-
((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64'));
|
|
44
|
-
function base64FromBytes(arr) {
|
|
45
|
-
const bin = [];
|
|
46
|
-
arr.forEach((byte) => {
|
|
47
|
-
bin.push(String.fromCharCode(byte));
|
|
48
|
-
});
|
|
49
|
-
return btoa(bin.join(''));
|
|
50
|
-
}
|
|
51
|
-
function omitDefault(input) {
|
|
52
|
-
if (typeof input === 'string') {
|
|
53
|
-
return input === '' ? undefined : input;
|
|
54
|
-
}
|
|
55
|
-
if (typeof input === 'number') {
|
|
56
|
-
return input === 0 ? undefined : input;
|
|
57
|
-
}
|
|
58
|
-
if (typeof input === "boolean") {
|
|
59
|
-
return input === false ? undefined : input;
|
|
60
|
-
}
|
|
61
|
-
if (typeof input === 'bigint') {
|
|
62
|
-
return input === BigInt(0) ? undefined : input;
|
|
63
|
-
}
|
|
64
|
-
throw new Error(`Got unsupported type ${typeof input}`);
|
|
65
|
-
}
|
|
66
|
-
function toDuration(duration) {
|
|
67
|
-
return {
|
|
68
|
-
seconds: BigInt(Math.floor(parseInt(duration) / 1000000000)),
|
|
69
|
-
nanos: parseInt(duration) % 1000000000
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function fromDuration(duration) {
|
|
73
|
-
return (parseInt(duration.seconds.toString()) * 1000000000 +
|
|
74
|
-
duration.nanos).toString();
|
|
75
|
-
}
|
|
76
|
-
function isSet(value) {
|
|
77
|
-
return value !== null && value !== undefined;
|
|
78
|
-
}
|
|
79
|
-
function isObject(value) {
|
|
80
|
-
return typeof value === 'object' && value !== null;
|
|
81
|
-
}
|
|
82
|
-
const setPaginationParams = (options, pagination) => {
|
|
83
|
-
if (!pagination) {
|
|
84
|
-
return options;
|
|
85
|
-
}
|
|
86
|
-
if (typeof pagination?.countTotal !== 'undefined') {
|
|
87
|
-
options.params['pagination.count_total'] = pagination.countTotal;
|
|
88
|
-
}
|
|
89
|
-
if (typeof pagination?.key !== 'undefined') {
|
|
90
|
-
// String to Uint8Array
|
|
91
|
-
// let uint8arr = new Uint8Array(Buffer.from(data,'base64'));
|
|
92
|
-
// Uint8Array to String
|
|
93
|
-
options.params['pagination.key'] = Buffer.from(pagination.key).toString('base64');
|
|
94
|
-
}
|
|
95
|
-
if (typeof pagination?.limit !== 'undefined') {
|
|
96
|
-
options.params['pagination.limit'] = pagination.limit.toString();
|
|
97
|
-
}
|
|
98
|
-
if (typeof pagination?.offset !== 'undefined') {
|
|
99
|
-
options.params['pagination.offset'] = pagination.offset.toString();
|
|
100
|
-
}
|
|
101
|
-
if (typeof pagination?.reverse !== 'undefined') {
|
|
102
|
-
options.params['pagination.reverse'] = pagination.reverse;
|
|
103
|
-
}
|
|
104
|
-
return options;
|
|
105
|
-
};
|
|
106
|
-
exports.setPaginationParams = setPaginationParams;
|
|
107
|
-
function isRpc(rpc) {
|
|
108
|
-
return rpc !== null && rpc !== undefined && typeof rpc.request === 'function';
|
|
109
|
-
}
|
|
110
|
-
function toTimestamp(date) {
|
|
111
|
-
const seconds = numberToLong(date.getTime() / 1_000);
|
|
112
|
-
const nanos = (date.getTime() % 1000) * 1000000;
|
|
113
|
-
return {
|
|
114
|
-
seconds,
|
|
115
|
-
nanos
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
function fromTimestamp(t) {
|
|
119
|
-
let millis = Number(t.seconds) * 1000;
|
|
120
|
-
millis += t.nanos / 1000000;
|
|
121
|
-
return new Date(millis);
|
|
122
|
-
}
|
|
123
|
-
const timestampFromJSON = (object) => {
|
|
124
|
-
return {
|
|
125
|
-
seconds: isSet(object.seconds)
|
|
126
|
-
? BigInt(object.seconds.toString())
|
|
127
|
-
: BigInt(0),
|
|
128
|
-
nanos: isSet(object.nanos) ? Number(object.nanos) : 0
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
function fromJsonTimestamp(o) {
|
|
132
|
-
if (o instanceof Date) {
|
|
133
|
-
return toTimestamp(o);
|
|
134
|
-
}
|
|
135
|
-
else if (typeof o === 'string') {
|
|
136
|
-
return toTimestamp(new Date(o));
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
return timestampFromJSON(o);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
function numberToLong(number) {
|
|
143
|
-
return BigInt(Math.trunc(number));
|
|
144
|
-
}
|