@firmachain/firma-js 0.3.4 → 0.3.6-beta1
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/dist/index.js +5 -1
- package/dist/sdk/FirmaAuthzService.d.ts +8 -7
- package/dist/sdk/FirmaAuthzService.js +12 -22
- package/dist/sdk/FirmaBankService.js +2 -2
- package/dist/sdk/FirmaChainService.js +1 -1
- package/dist/sdk/FirmaContractService.d.ts +1 -1
- package/dist/sdk/FirmaContractService.js +6 -6
- package/dist/sdk/FirmaCosmWasmCw20.d.ts +2 -2
- package/dist/sdk/FirmaCosmWasmCw20.js +8 -8
- package/dist/sdk/FirmaCosmWasmCw721.d.ts +2 -2
- package/dist/sdk/FirmaCosmWasmCw721.js +12 -12
- package/dist/sdk/FirmaCosmWasmCwBridge.d.ts +1 -1
- package/dist/sdk/FirmaCosmWasmCwBridge.js +8 -8
- package/dist/sdk/FirmaCosmWasmCwMarketplace.d.ts +1 -1
- package/dist/sdk/FirmaCosmWasmCwMarketplace.js +5 -5
- package/dist/sdk/FirmaCosmWasmService.d.ts +1 -1
- package/dist/sdk/FirmaCosmWasmService.js +13 -13
- package/dist/sdk/FirmaDistributionService.d.ts +1 -1
- package/dist/sdk/FirmaDistributionService.js +6 -6
- package/dist/sdk/FirmaFeeGrantService.d.ts +7 -6
- package/dist/sdk/FirmaFeeGrantService.js +9 -26
- package/dist/sdk/FirmaGovService.d.ts +1 -1
- package/dist/sdk/FirmaGovService.js +14 -14
- package/dist/sdk/FirmaIbcService.d.ts +3 -3
- package/dist/sdk/FirmaIbcService.js +11 -8
- package/dist/sdk/FirmaIpfsService.js +1 -1
- package/dist/sdk/FirmaMintService.js +1 -1
- package/dist/sdk/FirmaNftService.d.ts +1 -1
- package/dist/sdk/FirmaNftService.js +6 -6
- package/dist/sdk/FirmaSlashingService.js +1 -1
- package/dist/sdk/FirmaStakingService.d.ts +3 -3
- package/dist/sdk/FirmaStakingService.js +6 -6
- package/dist/sdk/FirmaTokenService.d.ts +1 -1
- package/dist/sdk/FirmaTokenService.js +5 -5
- package/dist/sdk/FirmaUtil.d.ts +26 -23
- package/dist/sdk/FirmaUtil.js +157 -137
- package/dist/sdk/FirmaWalletService.d.ts +5 -9
- package/dist/sdk/FirmaWalletService.js +86 -52
- package/dist/sdk/firmachain/authz/AuthzQueryClient.js +4 -4
- package/dist/sdk/firmachain/authz/AuthzTxTypes.d.ts +8 -11
- package/dist/sdk/firmachain/authz/AuthzTxTypes.js +6 -10
- package/dist/sdk/firmachain/authz/index.js +5 -1
- package/dist/sdk/firmachain/bank/BankQueryClient.js +5 -5
- package/dist/sdk/firmachain/bank/index.js +5 -1
- package/dist/sdk/firmachain/common/ITxClient.d.ts +3 -3
- package/dist/sdk/firmachain/common/ITxClient.js +25 -83
- package/dist/sdk/firmachain/common/LedgerWallet.d.ts +19 -3
- package/dist/sdk/firmachain/common/LedgerWallet.js +138 -68
- package/dist/sdk/firmachain/common/TendermintQueryClient.js +1 -1
- package/dist/sdk/firmachain/common/TxCommon.d.ts +14 -30
- package/dist/sdk/firmachain/common/accounts.d.ts +1 -1
- package/dist/sdk/firmachain/common/accounts.js +7 -7
- package/dist/sdk/firmachain/common/events.js +2 -2
- package/dist/sdk/firmachain/common/fee.d.ts +2 -2
- package/dist/sdk/firmachain/common/fee.js +4 -2
- package/dist/sdk/firmachain/common/index.d.ts +0 -1
- package/dist/sdk/firmachain/common/index.js +5 -4
- package/dist/sdk/firmachain/common/signing.d.ts +13 -9
- package/dist/sdk/firmachain/common/signing.js +81 -36
- package/dist/sdk/firmachain/common/signingprotobufstargateclient.d.ts +34 -0
- package/dist/sdk/firmachain/common/signingprotobufstargateclient.js +319 -0
- package/dist/sdk/firmachain/common/signingstargateclient.d.ts +21 -105
- package/dist/sdk/firmachain/common/signingstargateclient.js +120 -472
- package/dist/sdk/firmachain/common/{stargateclient.d.ts → stargateClient.d.ts} +11 -60
- package/dist/sdk/firmachain/common/{stargateclient.js → stargateClient.js} +109 -203
- package/dist/sdk/firmachain/{amino → common}/wallet.js +15 -11
- package/dist/sdk/firmachain/contract/ContractQueryClient.js +3 -3
- package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +6 -6
- package/dist/sdk/firmachain/contract/index.js +5 -1
- package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +9 -9
- package/dist/sdk/firmachain/cosmwasm/index.js +5 -1
- package/dist/sdk/firmachain/distribution/DistributionQueryClient.js +6 -6
- package/dist/sdk/firmachain/distribution/index.js +5 -1
- package/dist/sdk/firmachain/feegrant/FeeGrantQueryClient.js +3 -3
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.d.ts +4 -45
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.js +3 -82
- package/dist/sdk/firmachain/feegrant/index.js +5 -1
- package/dist/sdk/firmachain/google/protobuf/any.d.ts +3 -3
- package/dist/sdk/firmachain/google/protobuf/descriptor.d.ts +29 -29
- package/dist/sdk/firmachain/google/protobuf/duration.d.ts +3 -3
- package/dist/sdk/firmachain/gov/GovQueryClient.js +3 -3
- package/dist/sdk/firmachain/gov/index.js +5 -1
- package/dist/sdk/firmachain/ibc/IbcQueryClient.js +2 -2
- package/dist/sdk/firmachain/ibc/index.js +5 -1
- package/dist/sdk/firmachain/mint/MintQueryClient.js +1 -1
- package/dist/sdk/firmachain/mint/index.js +5 -1
- package/dist/sdk/firmachain/nft/NftQueryClient.js +1 -1
- package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +8 -8
- package/dist/sdk/firmachain/nft/index.js +5 -1
- package/dist/sdk/firmachain/slashing/SlashingQueryClient.js +1 -1
- package/dist/sdk/firmachain/slashing/index.js +5 -1
- package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +2 -2
- package/dist/sdk/firmachain/staking/StakingQueryClient.js +10 -9
- package/dist/sdk/firmachain/staking/index.js +5 -1
- package/dist/sdk/firmachain/token/TokenQueryClient.js +1 -1
- package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +11 -11
- package/dist/sdk/firmachain/token/TokenTxTypes.js +1 -1
- package/dist/sdk/firmachain/token/index.js +5 -1
- package/dist/test/00.wallet.test.js +4 -4
- package/dist/test/01.contract_tx.test.js +5 -5
- package/dist/test/02.contract_query.test.js +15 -15
- package/dist/test/03.contract_scenario.test.js +28 -28
- package/dist/test/04.bank_tx.test.js +4 -4
- package/dist/test/05.bank_query.test.js +9 -9
- package/dist/test/06.feegrant_tx.test.js +59 -35
- package/dist/test/07.feegrant_query.test.js +18 -15
- package/dist/test/08.gas_estimate.test.js +110 -70
- package/dist/test/09.ipfs.test.js +4 -4
- package/dist/test/10.nft_tx.test.js +7 -7
- package/dist/test/11.nft_query.test.js +9 -9
- package/dist/test/12.staking_tx.test.js +27 -15
- package/dist/test/13.staking_query.test.js +20 -20
- package/dist/test/14.distribution_tx.test.js +8 -8
- package/dist/test/15.distribution_query.test.js +15 -15
- package/dist/test/16.gov_tx.test.js +17 -17
- package/dist/test/17.gov_query.test.js +19 -19
- package/dist/test/18.util.test.js +105 -63
- package/dist/test/19.chain.test.js +38 -38
- package/dist/test/20.slashing_query.test.js +25 -25
- package/dist/test/21.token_tx.test.js +6 -6
- package/dist/test/22.token_query.test.js +4 -4
- package/dist/test/23.authz_tx.test.js +77 -47
- package/dist/test/24.authz_query.test.js +66 -67
- package/dist/test/25.cosmwasm_tx.test.js +7 -7
- package/dist/test/26.cosmwasm_query.test.js +127 -59
- package/dist/test/{27.arbitary_sign.test.js → 27.arbitrary_sign.test.js} +41 -40
- package/dist/test/28.ibc_tx.test.js +8 -8
- package/dist/test/29.mint_query.test.js +2 -2
- package/dist/test/30.cw20_tx.test.js +20 -20
- package/dist/test/31.cw20_query.test.js +24 -24
- package/dist/test/32.cw721_tx.test.js +19 -19
- package/dist/test/33.cw721_query.test.js +32 -32
- package/dist/test/34.cw_bridge_tx.test.js +19 -19
- package/dist/test/35.cw_bridge_tx_low.test.js +13 -13
- package/dist/test/36.cw_bridge_query.test.js +20 -20
- package/dist/test/37.cw_marketplace_tx.test.js +32 -32
- package/dist/test/38.cw_marketplace_query.test.js +2 -2
- package/dist/test/config_test.d.ts +2 -2
- package/dist/test/config_test.js +22 -5
- package/package.json +9 -10
- package/dist/sdk/firmachain/amino/addresses.d.ts +0 -5
- package/dist/sdk/firmachain/amino/addresses.js +0 -46
- package/dist/sdk/firmachain/amino/aminomsgs.d.ts +0 -291
- package/dist/sdk/firmachain/amino/aminomsgs.js +0 -81
- package/dist/sdk/firmachain/amino/aminotypes.d.ts +0 -22
- package/dist/sdk/firmachain/amino/aminotypes.js +0 -538
- package/dist/sdk/firmachain/amino/coins.d.ts +0 -42
- package/dist/sdk/firmachain/amino/coins.js +0 -90
- package/dist/sdk/firmachain/amino/encoding.d.ts +0 -33
- package/dist/sdk/firmachain/amino/encoding.js +0 -252
- package/dist/sdk/firmachain/amino/multisig.d.ts +0 -10
- package/dist/sdk/firmachain/amino/multisig.js +0 -42
- package/dist/sdk/firmachain/amino/pubkeys.d.ts +0 -47
- package/dist/sdk/firmachain/amino/pubkeys.js +0 -29
- package/dist/sdk/firmachain/amino/signature.d.ts +0 -16
- package/dist/sdk/firmachain/amino/signature.js +0 -36
- package/dist/sdk/firmachain/amino/signdoc.d.ts +0 -44
- package/dist/sdk/firmachain/amino/signdoc.js +0 -68
- package/dist/sdk/firmachain/amino/signer.d.ts +0 -33
- package/dist/sdk/firmachain/amino/signer.js +0 -2
- package/dist/sdk/firmachain/amino/stdtx.d.ts +0 -15
- package/dist/sdk/firmachain/amino/stdtx.js +0 -17
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.d.ts +0 -22
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +0 -170
- package/dist/sdk/firmachain/common/aminotypes.d.ts +0 -19
- package/dist/sdk/firmachain/common/aminotypes.js +0 -74
- package/dist/sdk/firmachain/common/modules/auth/queries.d.ts +0 -15
- package/dist/sdk/firmachain/common/modules/auth/queries.js +0 -64
- package/dist/sdk/firmachain/common/modules/authz/aminomessages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/authz/aminomessages.js +0 -15
- package/dist/sdk/firmachain/common/modules/authz/messages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/authz/messages.js +0 -9
- package/dist/sdk/firmachain/common/modules/authz/queries.d.ts +0 -10
- package/dist/sdk/firmachain/common/modules/authz/queries.js +0 -88
- package/dist/sdk/firmachain/common/modules/bank/aminomessages.d.ts +0 -35
- package/dist/sdk/firmachain/common/modules/bank/aminomessages.js +0 -85
- package/dist/sdk/firmachain/common/modules/bank/messages.d.ts +0 -8
- package/dist/sdk/firmachain/common/modules/bank/messages.js +0 -12
- package/dist/sdk/firmachain/common/modules/bank/queries.d.ts +0 -15
- package/dist/sdk/firmachain/common/modules/bank/queries.js +0 -128
- package/dist/sdk/firmachain/common/modules/crisis/aminomessages.d.ts +0 -14
- package/dist/sdk/firmachain/common/modules/crisis/aminomessages.js +0 -11
- package/dist/sdk/firmachain/common/modules/distribution/aminomessages.d.ts +0 -44
- package/dist/sdk/firmachain/common/modules/distribution/aminomessages.js +0 -113
- package/dist/sdk/firmachain/common/modules/distribution/messages.d.ts +0 -8
- package/dist/sdk/firmachain/common/modules/distribution/messages.js +0 -15
- package/dist/sdk/firmachain/common/modules/distribution/queries.d.ts +0 -16
- package/dist/sdk/firmachain/common/modules/distribution/queries.js +0 -171
- package/dist/sdk/firmachain/common/modules/evidence/aminomessages.d.ts +0 -18
- package/dist/sdk/firmachain/common/modules/evidence/aminomessages.js +0 -11
- package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.js +0 -14
- package/dist/sdk/firmachain/common/modules/feegrant/messages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/feegrant/messages.js +0 -8
- package/dist/sdk/firmachain/common/modules/feegrant/queries.d.ts +0 -9
- package/dist/sdk/firmachain/common/modules/feegrant/queries.js +0 -81
- package/dist/sdk/firmachain/common/modules/gov/aminomessages.d.ts +0 -79
- package/dist/sdk/firmachain/common/modules/gov/aminomessages.js +0 -152
- package/dist/sdk/firmachain/common/modules/gov/messages.d.ts +0 -29
- package/dist/sdk/firmachain/common/modules/gov/messages.js +0 -39
- package/dist/sdk/firmachain/common/modules/gov/queries.d.ts +0 -19
- package/dist/sdk/firmachain/common/modules/gov/queries.js +0 -160
- package/dist/sdk/firmachain/common/modules/group/aminomessages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/group/aminomessages.js +0 -8
- package/dist/sdk/firmachain/common/modules/group/messages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/group/messages.js +0 -28
- package/dist/sdk/firmachain/common/modules/ibc/aminomessages.d.ts +0 -38
- package/dist/sdk/firmachain/common/modules/ibc/aminomessages.js +0 -55
- package/dist/sdk/firmachain/common/modules/ibc/messages.d.ts +0 -8
- package/dist/sdk/firmachain/common/modules/ibc/messages.js +0 -32
- package/dist/sdk/firmachain/common/modules/ibc/queries.d.ts +0 -58
- package/dist/sdk/firmachain/common/modules/ibc/queries.js +0 -576
- package/dist/sdk/firmachain/common/modules/index.d.ts +0 -32
- package/dist/sdk/firmachain/common/modules/index.js +0 -101
- package/dist/sdk/firmachain/common/modules/mint/queries.d.ts +0 -21
- package/dist/sdk/firmachain/common/modules/mint/queries.js +0 -95
- package/dist/sdk/firmachain/common/modules/slashing/aminomessages.d.ts +0 -12
- package/dist/sdk/firmachain/common/modules/slashing/aminomessages.js +0 -11
- package/dist/sdk/firmachain/common/modules/slashing/queries.d.ts +0 -10
- package/dist/sdk/firmachain/common/modules/slashing/queries.js +0 -88
- package/dist/sdk/firmachain/common/modules/staking/aminomessages.d.ts +0 -112
- package/dist/sdk/firmachain/common/modules/staking/aminomessages.js +0 -234
- package/dist/sdk/firmachain/common/modules/staking/messages.d.ts +0 -33
- package/dist/sdk/firmachain/common/modules/staking/messages.js +0 -37
- package/dist/sdk/firmachain/common/modules/staking/queries.d.ts +0 -23
- package/dist/sdk/firmachain/common/modules/staking/queries.js +0 -242
- package/dist/sdk/firmachain/common/modules/tx/queries.d.ts +0 -11
- package/dist/sdk/firmachain/common/modules/tx/queries.js +0 -103
- package/dist/sdk/firmachain/common/modules/vesting/aminomessages.d.ts +0 -16
- package/dist/sdk/firmachain/common/modules/vesting/aminomessages.js +0 -56
- package/dist/sdk/firmachain/common/modules/vesting/messages.d.ts +0 -2
- package/dist/sdk/firmachain/common/modules/vesting/messages.js +0 -7
- package/dist/sdk/firmachain/common/queryclient/index.d.ts +0 -2
- package/dist/sdk/firmachain/common/queryclient/index.js +0 -10
- package/dist/sdk/firmachain/common/queryclient/queryclient.d.ts +0 -75
- package/dist/sdk/firmachain/common/queryclient/queryclient.js +0 -157
- package/dist/sdk/firmachain/common/queryclient/utils.d.ts +0 -33
- package/dist/sdk/firmachain/common/queryclient/utils.js +0 -101
- package/dist/sdk/firmachain/common/search.d.ts +0 -10
- package/dist/sdk/firmachain/common/search.js +0 -7
- package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +0 -110
- package/dist/sdk/firmachain/google/protobuf/timestamp.js +0 -108
- /package/dist/sdk/firmachain/{amino → common}/paths.d.ts +0 -0
- /package/dist/sdk/firmachain/{amino → common}/paths.js +0 -0
- /package/dist/sdk/firmachain/{amino → common}/wallet.d.ts +0 -0
- /package/dist/test/{27.arbitary_sign.test.d.ts → 27.arbitrary_sign.test.d.ts} +0 -0
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { Reader } from "protobufjs/minimal";
|
|
2
|
-
import { BinaryWriter } from "cosmjs-types/binary";
|
|
3
|
-
export declare const protobufPackage = "google.protobuf";
|
|
4
|
-
/**
|
|
5
|
-
* A Timestamp represents a point in time independent of any time zone
|
|
6
|
-
* or calendar, represented as seconds and fractions of seconds at
|
|
7
|
-
* nanosecond resolution in UTC Epoch time. It is encoded using the
|
|
8
|
-
* Proleptic Gregorian Calendar which extends the Gregorian calendar
|
|
9
|
-
* backwards to year one. It is encoded assuming all minutes are 60
|
|
10
|
-
* seconds long, i.e. leap seconds are "smeared" so that no leap second
|
|
11
|
-
* table is needed for interpretation. Range is from
|
|
12
|
-
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
|
|
13
|
-
* By restricting to that range, we ensure that we can convert to
|
|
14
|
-
* and from RFC 3339 date strings.
|
|
15
|
-
* See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
|
|
16
|
-
*
|
|
17
|
-
* # Examples
|
|
18
|
-
*
|
|
19
|
-
* Example 1: Compute Timestamp from POSIX `time()`.
|
|
20
|
-
*
|
|
21
|
-
* Timestamp timestamp;
|
|
22
|
-
* timestamp.set_seconds(time(NULL));
|
|
23
|
-
* timestamp.set_nanos(0);
|
|
24
|
-
*
|
|
25
|
-
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
|
26
|
-
*
|
|
27
|
-
* struct timeval tv;
|
|
28
|
-
* gettimeofday(&tv, NULL);
|
|
29
|
-
*
|
|
30
|
-
* Timestamp timestamp;
|
|
31
|
-
* timestamp.set_seconds(tv.tv_sec);
|
|
32
|
-
* timestamp.set_nanos(tv.tv_usec * 1000);
|
|
33
|
-
*
|
|
34
|
-
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
|
35
|
-
*
|
|
36
|
-
* FILETIME ft;
|
|
37
|
-
* GetSystemTimeAsFileTime(&ft);
|
|
38
|
-
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
|
39
|
-
*
|
|
40
|
-
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
|
41
|
-
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
|
42
|
-
* Timestamp timestamp;
|
|
43
|
-
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
|
44
|
-
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
|
45
|
-
*
|
|
46
|
-
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
|
47
|
-
*
|
|
48
|
-
* long millis = System.currentTimeMillis();
|
|
49
|
-
*
|
|
50
|
-
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
51
|
-
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* Example 5: Compute Timestamp from current time in Python.
|
|
55
|
-
*
|
|
56
|
-
* timestamp = Timestamp()
|
|
57
|
-
* timestamp.GetCurrentTime()
|
|
58
|
-
*
|
|
59
|
-
* # JSON Mapping
|
|
60
|
-
*
|
|
61
|
-
* In JSON format, the Timestamp type is encoded as a string in the
|
|
62
|
-
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
63
|
-
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
|
64
|
-
* where {year} is always expressed using four digits while {month}, {day},
|
|
65
|
-
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
66
|
-
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
67
|
-
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
68
|
-
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
69
|
-
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
70
|
-
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
71
|
-
*
|
|
72
|
-
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
73
|
-
* 01:30 UTC on January 15, 2017.
|
|
74
|
-
*
|
|
75
|
-
* In JavaScript, one can convert a Date object to this format using the
|
|
76
|
-
* standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
|
|
77
|
-
* method. In Python, a standard `datetime.datetime` object can be converted
|
|
78
|
-
* to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
|
|
79
|
-
* with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
|
80
|
-
* can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
81
|
-
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
|
|
82
|
-
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
83
|
-
*/
|
|
84
|
-
export interface Timestamp {
|
|
85
|
-
/**
|
|
86
|
-
* Represents seconds of UTC time since Unix epoch
|
|
87
|
-
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
88
|
-
* 9999-12-31T23:59:59Z inclusive.
|
|
89
|
-
*/
|
|
90
|
-
seconds: number;
|
|
91
|
-
/**
|
|
92
|
-
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
93
|
-
* second values with fractions must still have non-negative nanos values
|
|
94
|
-
* that count forward in time. Must be from 0 to 999,999,999
|
|
95
|
-
* inclusive.
|
|
96
|
-
*/
|
|
97
|
-
nanos: number;
|
|
98
|
-
}
|
|
99
|
-
export declare const Timestamp: {
|
|
100
|
-
encode(message: Timestamp, writer?: BinaryWriter): BinaryWriter;
|
|
101
|
-
decode(input: Reader | Uint8Array, length?: number | undefined): Timestamp;
|
|
102
|
-
fromJSON(object: any): Timestamp;
|
|
103
|
-
toJSON(message: Timestamp): unknown;
|
|
104
|
-
fromPartial(object: DeepPartial<Timestamp>): Timestamp;
|
|
105
|
-
};
|
|
106
|
-
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
107
|
-
export declare 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 {} ? {
|
|
108
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
109
|
-
} : Partial<T>;
|
|
110
|
-
export {};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Timestamp = exports.protobufPackage = void 0;
|
|
15
|
-
/* eslint-disable */
|
|
16
|
-
var minimal_1 = require("protobufjs/minimal");
|
|
17
|
-
var binary_1 = require("cosmjs-types/binary");
|
|
18
|
-
exports.protobufPackage = "google.protobuf";
|
|
19
|
-
var baseTimestamp = { seconds: 0, nanos: 0 };
|
|
20
|
-
exports.Timestamp = {
|
|
21
|
-
encode: function (message, writer) {
|
|
22
|
-
if (writer === void 0) { writer = binary_1.BinaryWriter.create(); }
|
|
23
|
-
if (message.seconds !== 0) {
|
|
24
|
-
writer.uint32(8).int64(message.seconds);
|
|
25
|
-
}
|
|
26
|
-
if (message.nanos !== 0) {
|
|
27
|
-
writer.uint32(16).int32(message.nanos);
|
|
28
|
-
}
|
|
29
|
-
return writer;
|
|
30
|
-
},
|
|
31
|
-
decode: function (input, length) {
|
|
32
|
-
var reader = input instanceof minimal_1.Reader ? input : new minimal_1.Reader(input);
|
|
33
|
-
var end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
-
var message = __assign({}, baseTimestamp);
|
|
35
|
-
while (reader.pos < end) {
|
|
36
|
-
var tag = reader.uint32();
|
|
37
|
-
switch (tag >>> 3) {
|
|
38
|
-
case 1:
|
|
39
|
-
message.seconds = longToNumber(reader.int64());
|
|
40
|
-
break;
|
|
41
|
-
case 2:
|
|
42
|
-
message.nanos = reader.int32();
|
|
43
|
-
break;
|
|
44
|
-
default:
|
|
45
|
-
reader.skipType(tag & 7);
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return message;
|
|
50
|
-
},
|
|
51
|
-
fromJSON: function (object) {
|
|
52
|
-
var message = __assign({}, baseTimestamp);
|
|
53
|
-
if (object.seconds !== undefined && object.seconds !== null) {
|
|
54
|
-
message.seconds = Number(object.seconds);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
message.seconds = 0;
|
|
58
|
-
}
|
|
59
|
-
if (object.nanos !== undefined && object.nanos !== null) {
|
|
60
|
-
message.nanos = Number(object.nanos);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
message.nanos = 0;
|
|
64
|
-
}
|
|
65
|
-
return message;
|
|
66
|
-
},
|
|
67
|
-
toJSON: function (message) {
|
|
68
|
-
var obj = {};
|
|
69
|
-
message.seconds !== undefined && (obj.seconds = message.seconds);
|
|
70
|
-
message.nanos !== undefined && (obj.nanos = message.nanos);
|
|
71
|
-
return obj;
|
|
72
|
-
},
|
|
73
|
-
fromPartial: function (object) {
|
|
74
|
-
var message = __assign({}, baseTimestamp);
|
|
75
|
-
if (object.seconds !== undefined && object.seconds !== null) {
|
|
76
|
-
message.seconds = object.seconds;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
message.seconds = 0;
|
|
80
|
-
}
|
|
81
|
-
if (object.nanos !== undefined && object.nanos !== null) {
|
|
82
|
-
message.nanos = object.nanos;
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
message.nanos = 0;
|
|
86
|
-
}
|
|
87
|
-
return message;
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
var globalThis = (function () {
|
|
91
|
-
if (typeof globalThis !== "undefined")
|
|
92
|
-
return globalThis;
|
|
93
|
-
if (typeof self !== "undefined")
|
|
94
|
-
return self;
|
|
95
|
-
if (typeof window !== "undefined")
|
|
96
|
-
return window;
|
|
97
|
-
if (typeof global !== "undefined")
|
|
98
|
-
return global;
|
|
99
|
-
throw "Unable to locate global object";
|
|
100
|
-
})();
|
|
101
|
-
function longToNumber(long) {
|
|
102
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
103
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
104
|
-
}
|
|
105
|
-
return long.toNumber();
|
|
106
|
-
}
|
|
107
|
-
// If you get a compile-error about 'Constructor<Long> and ... have no overlap',
|
|
108
|
-
// add '--ts_proto_opt=esModuleInterop=true' as a flag when calling 'protoc'.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|