@firmachain/firma-js 0.2.64 → 0.3.1
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/README.md +1 -1
- package/dist/sdk/FirmaAuthzService.d.ts +8 -8
- package/dist/sdk/FirmaAuthzService.js +12 -6
- package/dist/sdk/FirmaBankService.d.ts +4 -4
- package/dist/sdk/FirmaContractService.d.ts +4 -4
- package/dist/sdk/FirmaCosmWasmCw20.d.ts +14 -14
- package/dist/sdk/FirmaCosmWasmCw721.d.ts +14 -14
- package/dist/sdk/FirmaCosmWasmCwBridge.d.ts +9 -9
- package/dist/sdk/FirmaCosmWasmCwMarketplace.d.ts +8 -8
- package/dist/sdk/FirmaCosmWasmService.d.ts +8 -8
- package/dist/sdk/FirmaCosmWasmService.js +2 -3
- package/dist/sdk/FirmaDistributionService.d.ts +6 -6
- package/dist/sdk/FirmaFeeGrantService.d.ts +4 -4
- package/dist/sdk/FirmaGovService.d.ts +27 -16
- package/dist/sdk/FirmaGovService.js +305 -195
- package/dist/sdk/FirmaIbcService.d.ts +3 -4
- package/dist/sdk/FirmaIbcService.js +5 -2
- package/dist/sdk/FirmaNftService.d.ts +5 -5
- package/dist/sdk/FirmaStakingService.d.ts +6 -6
- package/dist/sdk/FirmaTokenService.d.ts +5 -5
- package/dist/sdk/FirmaUtil.d.ts +1 -1
- package/dist/sdk/FirmaUtil.js +12 -14
- package/dist/sdk/firmachain/amino/addresses.js +1 -1
- package/dist/sdk/firmachain/amino/aminomsgs.d.ts +10 -0
- package/dist/sdk/firmachain/amino/aminomsgs.js +5 -1
- package/dist/sdk/firmachain/amino/aminotypes.js +27 -10
- package/dist/sdk/firmachain/amino/coins.d.ts +14 -2
- package/dist/sdk/firmachain/amino/coins.js +26 -5
- package/dist/sdk/firmachain/amino/encoding.d.ts +10 -1
- package/dist/sdk/firmachain/amino/encoding.js +21 -3
- package/dist/sdk/firmachain/amino/signdoc.d.ts +21 -3
- package/dist/sdk/firmachain/amino/signdoc.js +37 -11
- package/dist/sdk/firmachain/amino/signer.d.ts +2 -1
- package/dist/sdk/firmachain/authz/AuthzTxTypes.d.ts +7 -6
- package/dist/sdk/firmachain/authz/AuthzTxTypes.js +7 -6
- package/dist/sdk/firmachain/bank/BankQueryClient.js +1 -1
- package/dist/sdk/firmachain/common/CommonTxClient.js +11 -9
- package/dist/sdk/firmachain/common/ITxClient.d.ts +6 -6
- package/dist/sdk/firmachain/common/ITxClient.js +82 -24
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.d.ts +4 -9
- package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +37 -32
- package/dist/sdk/firmachain/common/LedgerWallet.js +4 -8
- package/dist/sdk/firmachain/common/TxCommon.d.ts +1 -2
- package/dist/sdk/firmachain/common/accounts.d.ts +7 -3
- package/dist/sdk/firmachain/common/accounts.js +28 -33
- package/dist/sdk/firmachain/common/aminotypes.d.ts +19 -0
- package/dist/sdk/firmachain/common/aminotypes.js +74 -0
- package/dist/sdk/firmachain/common/events.d.ts +32 -0
- package/dist/sdk/firmachain/common/events.js +18 -0
- package/dist/sdk/firmachain/common/fee.d.ts +26 -0
- package/dist/sdk/firmachain/common/fee.js +83 -0
- package/dist/sdk/firmachain/common/index.d.ts +1 -0
- package/dist/sdk/firmachain/common/index.js +3 -0
- package/dist/sdk/firmachain/common/modules/auth/queries.d.ts +15 -0
- package/dist/sdk/firmachain/common/modules/auth/queries.js +64 -0
- package/dist/sdk/firmachain/common/modules/authz/aminomessages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/authz/aminomessages.js +15 -0
- package/dist/sdk/firmachain/common/modules/authz/messages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/authz/messages.js +9 -0
- package/dist/sdk/firmachain/common/modules/authz/queries.d.ts +10 -0
- package/dist/sdk/firmachain/common/modules/authz/queries.js +88 -0
- package/dist/sdk/firmachain/common/modules/bank/aminomessages.d.ts +35 -0
- package/dist/sdk/firmachain/common/modules/bank/aminomessages.js +85 -0
- package/dist/sdk/firmachain/common/modules/bank/messages.d.ts +8 -0
- package/dist/sdk/firmachain/common/modules/bank/messages.js +12 -0
- package/dist/sdk/firmachain/common/modules/bank/queries.d.ts +15 -0
- package/dist/sdk/firmachain/common/modules/bank/queries.js +128 -0
- package/dist/sdk/firmachain/common/modules/crisis/aminomessages.d.ts +14 -0
- package/dist/sdk/firmachain/common/modules/crisis/aminomessages.js +11 -0
- package/dist/sdk/firmachain/common/modules/distribution/aminomessages.d.ts +44 -0
- package/dist/sdk/firmachain/common/modules/distribution/aminomessages.js +113 -0
- package/dist/sdk/firmachain/common/modules/distribution/messages.d.ts +8 -0
- package/dist/sdk/firmachain/common/modules/distribution/messages.js +15 -0
- package/dist/sdk/firmachain/common/modules/distribution/queries.d.ts +16 -0
- package/dist/sdk/firmachain/common/modules/distribution/queries.js +171 -0
- package/dist/sdk/firmachain/common/modules/evidence/aminomessages.d.ts +18 -0
- package/dist/sdk/firmachain/common/modules/evidence/aminomessages.js +11 -0
- package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.js +14 -0
- package/dist/sdk/firmachain/common/modules/feegrant/messages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/feegrant/messages.js +8 -0
- package/dist/sdk/firmachain/common/modules/feegrant/queries.d.ts +9 -0
- package/dist/sdk/firmachain/common/modules/feegrant/queries.js +81 -0
- package/dist/sdk/firmachain/common/modules/gov/aminomessages.d.ts +79 -0
- package/dist/sdk/firmachain/common/modules/gov/aminomessages.js +152 -0
- package/dist/sdk/firmachain/common/modules/gov/messages.d.ts +29 -0
- package/dist/sdk/firmachain/common/modules/gov/messages.js +38 -0
- package/dist/sdk/firmachain/common/modules/gov/queries.d.ts +19 -0
- package/dist/sdk/firmachain/common/modules/gov/queries.js +160 -0
- package/dist/sdk/firmachain/common/modules/group/aminomessages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/group/aminomessages.js +8 -0
- package/dist/sdk/firmachain/common/modules/group/messages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/group/messages.js +28 -0
- package/dist/sdk/firmachain/common/modules/ibc/aminomessages.d.ts +38 -0
- package/dist/sdk/firmachain/common/modules/ibc/aminomessages.js +55 -0
- package/dist/sdk/firmachain/common/modules/ibc/messages.d.ts +8 -0
- package/dist/sdk/firmachain/common/modules/ibc/messages.js +32 -0
- package/dist/sdk/firmachain/common/modules/ibc/queries.d.ts +58 -0
- package/dist/sdk/firmachain/common/modules/ibc/queries.js +576 -0
- package/dist/sdk/firmachain/common/modules/index.d.ts +32 -0
- package/dist/sdk/firmachain/common/modules/index.js +101 -0
- package/dist/sdk/firmachain/common/modules/mint/queries.d.ts +21 -0
- package/dist/sdk/firmachain/common/modules/mint/queries.js +95 -0
- package/dist/sdk/firmachain/common/modules/slashing/aminomessages.d.ts +12 -0
- package/dist/sdk/firmachain/common/modules/slashing/aminomessages.js +11 -0
- package/dist/sdk/firmachain/common/modules/slashing/queries.d.ts +10 -0
- package/dist/sdk/firmachain/common/modules/slashing/queries.js +88 -0
- package/dist/sdk/firmachain/common/modules/staking/aminomessages.d.ts +112 -0
- package/dist/sdk/firmachain/common/modules/staking/aminomessages.js +234 -0
- package/dist/sdk/firmachain/common/modules/staking/messages.d.ts +33 -0
- package/dist/sdk/firmachain/common/modules/staking/messages.js +37 -0
- package/dist/sdk/firmachain/common/modules/staking/queries.d.ts +23 -0
- package/dist/sdk/firmachain/common/modules/staking/queries.js +242 -0
- package/dist/sdk/firmachain/common/modules/tx/queries.d.ts +11 -0
- package/dist/sdk/firmachain/common/modules/tx/queries.js +103 -0
- package/dist/sdk/firmachain/common/modules/vesting/aminomessages.d.ts +16 -0
- package/dist/sdk/firmachain/common/modules/vesting/aminomessages.js +56 -0
- package/dist/sdk/firmachain/common/modules/vesting/messages.d.ts +2 -0
- package/dist/sdk/firmachain/common/modules/vesting/messages.js +7 -0
- package/dist/sdk/firmachain/common/queryclient/index.d.ts +2 -0
- package/dist/sdk/firmachain/common/queryclient/index.js +10 -0
- package/dist/sdk/firmachain/common/queryclient/queryclient.d.ts +75 -0
- package/dist/sdk/firmachain/common/queryclient/queryclient.js +157 -0
- package/dist/sdk/firmachain/common/queryclient/utils.d.ts +33 -0
- package/dist/sdk/firmachain/common/queryclient/utils.js +101 -0
- package/dist/sdk/firmachain/common/search.d.ts +10 -0
- package/dist/sdk/firmachain/common/search.js +7 -0
- package/dist/sdk/firmachain/common/signing.d.ts +8 -3
- package/dist/sdk/firmachain/common/signing.js +24 -12
- package/dist/sdk/firmachain/common/signingstargateclient.d.ts +107 -30
- package/dist/sdk/firmachain/common/signingstargateclient.js +445 -128
- package/dist/sdk/firmachain/common/stargateclient.d.ts +184 -20
- package/dist/sdk/firmachain/common/stargateclient.js +351 -35
- package/dist/sdk/firmachain/contract/ContractTxClient.d.ts +2 -2
- package/dist/sdk/firmachain/contract/ContractTxClient.js +4 -4
- package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +1 -1
- package/dist/sdk/firmachain/contract/ContractTxTypes.js +3 -3
- package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +1 -1
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.d.ts +5 -5
- package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.js +10 -8
- package/dist/sdk/firmachain/google/protobuf/any.d.ts +3 -2
- package/dist/sdk/firmachain/google/protobuf/any.js +2 -1
- package/dist/sdk/firmachain/google/protobuf/duration.d.ts +3 -2
- package/dist/sdk/firmachain/google/protobuf/duration.js +2 -1
- package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +3 -2
- package/dist/sdk/firmachain/google/protobuf/timestamp.js +2 -1
- package/dist/sdk/firmachain/gov/GovQueryClient.d.ts +13 -1
- package/dist/sdk/firmachain/gov/GovQueryClient.js +9 -2
- package/dist/sdk/firmachain/gov/GovTxClient.d.ts +12 -0
- package/dist/sdk/firmachain/gov/GovTxClient.js +11 -1
- package/dist/sdk/firmachain/nft/NftTxClient.d.ts +3 -3
- package/dist/sdk/firmachain/nft/NftTxClient.js +6 -6
- package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +1 -1
- package/dist/sdk/firmachain/nft/NftTxTypes.js +4 -4
- package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +1 -0
- package/dist/sdk/firmachain/staking/StakingQueryClient.js +0 -1
- package/dist/sdk/firmachain/token/TokenTxClient.d.ts +4 -4
- package/dist/sdk/firmachain/token/TokenTxClient.js +8 -8
- package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +1 -1
- package/dist/sdk/firmachain/token/TokenTxTypes.js +5 -5
- package/dist/test/00.wallet.test.js +15 -9
- package/dist/test/01.contract_tx.test.js +53 -45
- package/dist/test/02.contract_query.test.js +54 -31
- package/dist/test/03.contract_scenario.test.js +170 -326
- package/dist/test/04.bank_tx.test.js +58 -59
- package/dist/test/05.bank_query.test.js +51 -56
- package/dist/test/06.feegrant_tx.test.js +74 -89
- package/dist/test/07.feegrant_query.test.js +69 -27
- package/dist/test/08.gas_estimate.test.js +422 -392
- package/dist/test/09.ipfs.test.js +3 -3
- package/dist/test/10.nft_tx.test.js +108 -76
- package/dist/test/11.nft_query.test.js +41 -46
- package/dist/test/12.staking_tx.test.js +81 -98
- package/dist/test/13.staking_query.test.js +66 -12
- package/dist/test/14.distribution_tx.test.js +69 -78
- package/dist/test/15.distribution_query.test.js +81 -57
- package/dist/test/16.gov_tx.test.js +247 -107
- package/dist/test/17.gov_query.test.js +48 -9
- package/dist/test/18.util.test.js +6 -1
- package/dist/test/19.chain.test.js +50 -4
- package/dist/test/20.slashing_query.test.js +31 -1
- package/dist/test/21.token_tx.test.js +48 -56
- package/dist/test/22.token_query.test.js +24 -20
- package/dist/test/23.authz_tx.test.js +119 -240
- package/dist/test/24.authz_query.test.js +116 -56
- package/dist/test/25.cosmwasm_tx.test.js +95 -57
- package/dist/test/26.cosmwasm_query.test.js +66 -26
- package/dist/test/27.arbitary_sign.test.js +59 -67
- package/dist/test/28.ibc_tx.test.js +29 -17
- package/dist/test/29.mint_query.test.js +2 -0
- package/dist/test/30.cw20_tx.test.js +161 -226
- package/dist/test/31.cw20_query.test.js +183 -37
- package/dist/test/32.cw721_tx.test.js +147 -149
- package/dist/test/33.cw721_query.test.js +188 -36
- package/dist/test/34.cw_bridge_tx.test.js +266 -155
- package/dist/test/35.cw_bridge_tx_low.test.js +221 -81
- package/dist/test/36.cw_bridge_query.test.js +157 -21
- package/dist/test/37.cw_marketplace_tx.test.js +22 -22
- package/dist/test/38.cw_marketplace_query.test.js +9 -9
- package/dist/test/config_test.d.ts +10 -4
- package/dist/test/config_test.js +16 -9
- package/dist/test/config_test.sample.d.ts +11 -0
- package/dist/test/config_test.sample.js +14 -0
- package/package.json +9 -7
- package/dist/sdk/firmachain/common/signingaminostargateclient.d.ts +0 -50
- package/dist/sdk/firmachain/common/signingaminostargateclient.js +0 -267
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://badge.fury.io/js/%40firmachain%2Ffirma-js)
|
|
4
4
|
[](https://github.com/firmachain/firma-js/releases)
|
|
5
5
|
[](https://github.com/firmachain/firma-js/blob/master/LICENSE)
|
|
6
|
-
](https://github.com/FirmaChain/firma-js)
|
|
7
7
|
|
|
8
8
|
The Javascript & TypeScript SDK for FirmaChain
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
2
2
|
import { FirmaConfig } from "./FirmaConfig";
|
|
3
|
-
import {
|
|
3
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
4
4
|
import { Any } from "./firmachain/google/protobuf/any";
|
|
5
5
|
import { GrantGenericData, GrantSendData, GrantStakingData, Pagination, TxMisc } from "./firmachain/authz";
|
|
6
6
|
import { AuthorizationType } from "./firmachain/authz/AuthzTxTypes";
|
|
@@ -13,19 +13,19 @@ export declare class FirmaAuthzService {
|
|
|
13
13
|
private getSignedTxRevokeGenericAuthorization;
|
|
14
14
|
private getSignedTxExecuteAllowance;
|
|
15
15
|
getGasEstimationGrantSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, expirationDate: Date, maxTokens: number, txMisc?: TxMisc): Promise<number>;
|
|
16
|
-
grantSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, expirationDate: Date, maxTokens: number, txMisc?: TxMisc): Promise<
|
|
16
|
+
grantSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, expirationDate: Date, maxTokens: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
17
17
|
getGasEstimationGrantStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, validatorAddressList: string[], type: AuthorizationType, expirationDate: Date, maxTokens?: number, txMisc?: TxMisc): Promise<number>;
|
|
18
|
-
grantStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, validatorAddressList: string[], type: AuthorizationType, expirationDate: Date, maxTokens?: number, txMisc?: TxMisc): Promise<
|
|
18
|
+
grantStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, validatorAddressList: string[], type: AuthorizationType, expirationDate: Date, maxTokens?: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
19
19
|
getGasEstimationGrantGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msg: string, expirationDate: Date, txMisc?: TxMisc): Promise<number>;
|
|
20
|
-
grantGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msg: string, expirationDate: Date, txMisc?: TxMisc): Promise<
|
|
20
|
+
grantGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msg: string, expirationDate: Date, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
21
21
|
getGasEstimationRevokeGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msgType: string, txMisc?: TxMisc): Promise<number>;
|
|
22
|
-
revokeGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msgType: string, txMisc?: TxMisc): Promise<
|
|
22
|
+
revokeGenericAuthorization(wallet: FirmaWalletService, granteeAddress: string, msgType: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
23
23
|
getGasEstimationRevokeSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<number>;
|
|
24
|
-
revokeSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<
|
|
24
|
+
revokeSendAuthorization(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
25
25
|
getGasEstimationRevokeStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, type: AuthorizationType, txMisc?: TxMisc): Promise<number>;
|
|
26
|
-
revokeStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, type: AuthorizationType, txMisc?: TxMisc): Promise<
|
|
26
|
+
revokeStakeAuthorization(wallet: FirmaWalletService, granteeAddress: string, type: AuthorizationType, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
27
27
|
getGasEstimationExecuteAllowance(wallet: FirmaWalletService, msgs: Any[], txMisc?: TxMisc): Promise<number>;
|
|
28
|
-
executeAllowance(wallet: FirmaWalletService, msgs: Any[], txMisc?: TxMisc): Promise<
|
|
28
|
+
executeAllowance(wallet: FirmaWalletService, msgs: Any[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
29
29
|
getSendGrantData(granterAddress: string, granteeAddress: string, paginationKey?: string): Promise<{
|
|
30
30
|
dataList: GrantSendData[];
|
|
31
31
|
pagination: Pagination;
|
|
@@ -49,7 +49,7 @@ var FirmaAuthzService = /** @class */ (function () {
|
|
|
49
49
|
FirmaAuthzService.prototype.getSignedTxGrantSendAutorization = function (wallet, granteeAddress, maxTokens, expirationDate, txMisc) {
|
|
50
50
|
if (txMisc === void 0) { txMisc = FirmaUtil_1.DefaultTxMisc; }
|
|
51
51
|
return __awaiter(this, void 0, void 0, function () {
|
|
52
|
-
var address, authorization, timestamp, message, authzTxClient, error_1;
|
|
52
|
+
var address, authorization, seconds, nanos, timestamp, message, authzTxClient, error_1;
|
|
53
53
|
return __generator(this, function (_a) {
|
|
54
54
|
switch (_a.label) {
|
|
55
55
|
case 0:
|
|
@@ -63,7 +63,9 @@ var FirmaAuthzService = /** @class */ (function () {
|
|
|
63
63
|
spendLimit: [{ denom: this.config.denom, amount: maxTokens }],
|
|
64
64
|
})).finish()),
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
seconds = Math.floor(expirationDate.getTime() / 1000);
|
|
67
|
+
nanos = (expirationDate.getMilliseconds() % 1000) * 1000000;
|
|
68
|
+
timestamp = timestamp_1.Timestamp.fromPartial({ seconds: seconds, nanos: nanos });
|
|
67
69
|
message = authz_1.AuthzTxClient.msgGrantAllowance({
|
|
68
70
|
granter: address,
|
|
69
71
|
grantee: granteeAddress,
|
|
@@ -87,7 +89,7 @@ var FirmaAuthzService = /** @class */ (function () {
|
|
|
87
89
|
FirmaAuthzService.prototype.getSignedTxGrantStakeAutorization = function (wallet, granteeAddress, validatorAddressList, type, maxTokens, expirationDate, txMisc) {
|
|
88
90
|
if (txMisc === void 0) { txMisc = FirmaUtil_1.DefaultTxMisc; }
|
|
89
91
|
return __awaiter(this, void 0, void 0, function () {
|
|
90
|
-
var address, authorization, timestamp, message, authzTxClient, error_2;
|
|
92
|
+
var address, authorization, seconds, nanos, timestamp, message, authzTxClient, error_2;
|
|
91
93
|
return __generator(this, function (_a) {
|
|
92
94
|
switch (_a.label) {
|
|
93
95
|
case 0:
|
|
@@ -103,7 +105,9 @@ var FirmaAuthzService = /** @class */ (function () {
|
|
|
103
105
|
authorizationType: type
|
|
104
106
|
})).finish()),
|
|
105
107
|
});
|
|
106
|
-
|
|
108
|
+
seconds = Math.floor(expirationDate.getTime() / 1000);
|
|
109
|
+
nanos = (expirationDate.getMilliseconds() % 1000) * 1000000;
|
|
110
|
+
timestamp = timestamp_1.Timestamp.fromPartial({ seconds: seconds, nanos: nanos });
|
|
107
111
|
message = authz_1.AuthzTxClient.msgGrantAllowance({
|
|
108
112
|
granter: address,
|
|
109
113
|
grantee: granteeAddress,
|
|
@@ -127,7 +131,7 @@ var FirmaAuthzService = /** @class */ (function () {
|
|
|
127
131
|
FirmaAuthzService.prototype.getSignedTxGrantGenericAuthorization = function (wallet, granteeAddress, msgType, expirationDate, txMisc) {
|
|
128
132
|
if (txMisc === void 0) { txMisc = FirmaUtil_1.DefaultTxMisc; }
|
|
129
133
|
return __awaiter(this, void 0, void 0, function () {
|
|
130
|
-
var address, authorization, timestamp, message, authzTxClient, error_3;
|
|
134
|
+
var address, authorization, seconds, nanos, timestamp, message, authzTxClient, error_3;
|
|
131
135
|
return __generator(this, function (_a) {
|
|
132
136
|
switch (_a.label) {
|
|
133
137
|
case 0:
|
|
@@ -141,7 +145,9 @@ var FirmaAuthzService = /** @class */ (function () {
|
|
|
141
145
|
msg: msgType
|
|
142
146
|
})).finish()),
|
|
143
147
|
});
|
|
144
|
-
|
|
148
|
+
seconds = Math.floor(expirationDate.getTime() / 1000);
|
|
149
|
+
nanos = (expirationDate.getMilliseconds() % 1000) * 1000000;
|
|
150
|
+
timestamp = timestamp_1.Timestamp.fromPartial({ seconds: seconds, nanos: nanos });
|
|
145
151
|
message = authz_1.AuthzTxClient.msgGrantAllowance({
|
|
146
152
|
granter: address,
|
|
147
153
|
grantee: granteeAddress,
|
|
@@ -2,16 +2,16 @@ import { BankTxClient, TxMisc, Token } from "./firmachain/bank";
|
|
|
2
2
|
import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx";
|
|
3
3
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
4
4
|
import { FirmaConfig } from "./FirmaConfig";
|
|
5
|
-
import {
|
|
5
|
+
import { DeliverTxResponse } from "@cosmjs/stargate";
|
|
6
6
|
export declare class FirmaBankService {
|
|
7
7
|
private readonly config;
|
|
8
8
|
constructor(config: FirmaConfig);
|
|
9
9
|
getTxClient(wallet: FirmaWalletService): BankTxClient;
|
|
10
10
|
getGasEstimationSend(wallet: FirmaWalletService, targetAddress: string, amount: number, txMisc?: TxMisc): Promise<number>;
|
|
11
11
|
getGasEstimationSendToken(wallet: FirmaWalletService, targetAddress: string, tokenID: string, amount: number, decimal: number, txMisc?: TxMisc): Promise<number>;
|
|
12
|
-
sendToken(wallet: FirmaWalletService, targetAddress: string, tokenID: string, amount: number, decimal: number, txMisc?: TxMisc): Promise<
|
|
13
|
-
send(wallet: FirmaWalletService, targetAddress: string, amount: number, txMisc?: TxMisc): Promise<
|
|
14
|
-
send_raw(wallet: FirmaWalletService, targetAddress: string, ufctAmount: string, txMisc?: TxMisc): Promise<
|
|
12
|
+
sendToken(wallet: FirmaWalletService, targetAddress: string, tokenID: string, amount: number, decimal: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
13
|
+
send(wallet: FirmaWalletService, targetAddress: string, amount: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
14
|
+
send_raw(wallet: FirmaWalletService, targetAddress: string, ufctAmount: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
15
15
|
getSupply(): Promise<string>;
|
|
16
16
|
getTokenSupply(tokenID: string): Promise<string>;
|
|
17
17
|
getTokenBalanceList(address: string): Promise<Token[]>;
|
|
@@ -2,7 +2,7 @@ import { ContractLogType, ContractFileType, Pagination, TxMisc } from "./firmach
|
|
|
2
2
|
import { EncodeObject } from "@cosmjs/proto-signing";
|
|
3
3
|
import { FirmaConfig } from "./FirmaConfig";
|
|
4
4
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
5
|
-
import {
|
|
5
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
6
6
|
export declare class ContractService {
|
|
7
7
|
private readonly config;
|
|
8
8
|
constructor(config: FirmaConfig);
|
|
@@ -22,11 +22,11 @@ export declare class ContractService {
|
|
|
22
22
|
getGasEstimationCreateContractFile(wallet: FirmaWalletService, fileHash: string, timeStamp: number, ownerList: string[], metaDataJsonString: string, txMisc?: TxMisc): Promise<number>;
|
|
23
23
|
getUnsignedTxCreateContractFile(wallet: FirmaWalletService, fileHash: string, timeStamp: number, ownerList: string[], metaDataJsonString: string): Promise<EncodeObject>;
|
|
24
24
|
private getSignedTxCreateContractFile;
|
|
25
|
-
createContractFile(wallet: FirmaWalletService, fileHash: string, timeStamp: number, ownerList: string[], metaDataJsonString: string, txMisc?: TxMisc): Promise<
|
|
25
|
+
createContractFile(wallet: FirmaWalletService, fileHash: string, timeStamp: number, ownerList: string[], metaDataJsonString: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
26
26
|
getGasEstimationAddContractLog(wallet: FirmaWalletService, contractHash: string, timeStamp: number, eventName: string, ownerAddress: string, jsonString: string, txMisc?: TxMisc): Promise<number>;
|
|
27
27
|
private getSignedTxAddContractLog;
|
|
28
|
-
addContractLog(wallet: FirmaWalletService, contractHash: string, timeStamp: number, eventName: string, ownerAddress: string, jsonString: string, txMisc?: TxMisc): Promise<
|
|
28
|
+
addContractLog(wallet: FirmaWalletService, contractHash: string, timeStamp: number, eventName: string, ownerAddress: string, jsonString: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
29
29
|
getUnsignedTxAddContractLog(wallet: FirmaWalletService, contractHash: string, timeStamp: number, eventName: string, ownerAddress: string, jsonString: string): Promise<EncodeObject>;
|
|
30
30
|
getGasEstimationSignAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<number>;
|
|
31
|
-
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<
|
|
31
|
+
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
32
32
|
}
|
|
@@ -3,7 +3,7 @@ import { FirmaCosmWasmService } from "./FirmaCosmWasmService";
|
|
|
3
3
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
4
4
|
import { TxMisc } from "./firmachain/common";
|
|
5
5
|
import { EncodeObject } from "@cosmjs/proto-signing";
|
|
6
|
-
import {
|
|
6
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
7
7
|
export interface Cw20Minter {
|
|
8
8
|
minter: string;
|
|
9
9
|
cap: string;
|
|
@@ -59,31 +59,31 @@ export declare class FirmaCosmWasmCw20Service {
|
|
|
59
59
|
private readonly config;
|
|
60
60
|
private readonly cosmwasmService;
|
|
61
61
|
constructor(config: FirmaConfig, cosmwasmService: FirmaCosmWasmService);
|
|
62
|
-
transfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, amount: string, txMisc?: TxMisc): Promise<
|
|
62
|
+
transfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, amount: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
63
63
|
getUnsignedTxTransfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, amount: string): Promise<EncodeObject>;
|
|
64
|
-
transferFrom(wallet: FirmaWalletService, contractAddress: string, owner: string, recipient: string, amount: string, txMisc?: TxMisc): Promise<
|
|
64
|
+
transferFrom(wallet: FirmaWalletService, contractAddress: string, owner: string, recipient: string, amount: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
65
65
|
getUnsignedTxTransferFrom(wallet: FirmaWalletService, contractAddress: string, owner: string, recipient: string, amount: string): Promise<EncodeObject>;
|
|
66
|
-
mint(wallet: FirmaWalletService, contractAddress: string, recipient: string, amount: string, txMisc?: TxMisc): Promise<
|
|
66
|
+
mint(wallet: FirmaWalletService, contractAddress: string, recipient: string, amount: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
67
67
|
getUnsignedTxMint(wallet: FirmaWalletService, contractAddress: string, recipient: string, amount: string): Promise<EncodeObject>;
|
|
68
|
-
burn(wallet: FirmaWalletService, contractAddress: string, amount: string, txMisc?: TxMisc): Promise<
|
|
68
|
+
burn(wallet: FirmaWalletService, contractAddress: string, amount: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
69
69
|
getUnsignedTxBurn(wallet: FirmaWalletService, contractAddress: string, amount: string): Promise<EncodeObject>;
|
|
70
|
-
burnFrom(wallet: FirmaWalletService, contractAddress: string, owner: string, amount: string, txMisc?: TxMisc): Promise<
|
|
70
|
+
burnFrom(wallet: FirmaWalletService, contractAddress: string, owner: string, amount: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
71
71
|
getUnsignedTxBurnFrom(wallet: FirmaWalletService, contractAddress: string, owner: string, amount: string): Promise<EncodeObject>;
|
|
72
|
-
increaseAllowance(wallet: FirmaWalletService, contractAddress: string, spender: string, amount: string, expires: Expires, txMisc?: TxMisc): Promise<
|
|
72
|
+
increaseAllowance(wallet: FirmaWalletService, contractAddress: string, spender: string, amount: string, expires: Expires, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
73
73
|
getUnsignedTxIncreaseAllowance(wallet: FirmaWalletService, contractAddress: string, spender: string, amount: string, expires: Expires): Promise<EncodeObject>;
|
|
74
|
-
decreaseAllowance(wallet: FirmaWalletService, contractAddress: string, spender: string, amount: string, expires: Expires, txMisc?: TxMisc): Promise<
|
|
74
|
+
decreaseAllowance(wallet: FirmaWalletService, contractAddress: string, spender: string, amount: string, expires: Expires, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
75
75
|
getUnsignedTxDecreaseAllowance(wallet: FirmaWalletService, contractAddress: string, spender: string, amount: string, expires: Expires): Promise<EncodeObject>;
|
|
76
|
-
updateMinter(wallet: FirmaWalletService, contractAddress: string, new_minter: string, txMisc?: TxMisc): Promise<
|
|
76
|
+
updateMinter(wallet: FirmaWalletService, contractAddress: string, new_minter: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
77
77
|
getUnsignedTxUpdateMinter(wallet: FirmaWalletService, contractAddress: string, new_minter: string): Promise<EncodeObject>;
|
|
78
|
-
updateMarketing(wallet: FirmaWalletService, contractAddress: string, description: string, marketing: string, project: string, txMisc?: TxMisc): Promise<
|
|
78
|
+
updateMarketing(wallet: FirmaWalletService, contractAddress: string, description: string, marketing: string, project: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
79
79
|
getUnsignedTxUpdateMarketing(wallet: FirmaWalletService, contractAddress: string, description: string, marketing: string, project: string): Promise<EncodeObject>;
|
|
80
|
-
uploadLogo(wallet: FirmaWalletService, contractAddress: string, url: string, txMisc?: TxMisc): Promise<
|
|
80
|
+
uploadLogo(wallet: FirmaWalletService, contractAddress: string, url: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
81
81
|
getUnsignedTxUploadLogo(wallet: FirmaWalletService, contractAddress: string, url: string): Promise<EncodeObject>;
|
|
82
|
-
send(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, amount: string, msg: any, txMisc?: TxMisc): Promise<
|
|
82
|
+
send(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, amount: string, msg: any, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
83
83
|
getUnsignedTxSend(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, amount: string, msg: any): Promise<EncodeObject>;
|
|
84
|
-
sendFrom(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, owner: string, amount: string, msg: any, txMisc?: TxMisc): Promise<
|
|
84
|
+
sendFrom(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, owner: string, amount: string, msg: any, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
85
85
|
getUnsignedTxSendFrom(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, owner: string, amount: string, msg: any): Promise<EncodeObject>;
|
|
86
|
-
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<
|
|
86
|
+
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
87
87
|
getGasEstimationSignAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<number>;
|
|
88
88
|
getGasEstimationTransfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, amount: string): Promise<number>;
|
|
89
89
|
getGasEstimationTransferFrom(wallet: FirmaWalletService, contractAddress: string, owner: string, recipient: string, amount: string): Promise<number>;
|
|
@@ -3,7 +3,7 @@ import { FirmaCosmWasmService } from "./FirmaCosmWasmService";
|
|
|
3
3
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
4
4
|
import { TxMisc } from "./firmachain/common";
|
|
5
5
|
import { EncodeObject } from "@cosmjs/proto-signing";
|
|
6
|
-
import {
|
|
6
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
7
7
|
export interface Cw721ExpiresAtHeight {
|
|
8
8
|
at_height: number;
|
|
9
9
|
}
|
|
@@ -71,30 +71,30 @@ export declare class FirmaCosmWasmCw721Service {
|
|
|
71
71
|
private readonly config;
|
|
72
72
|
private readonly cosmwasmService;
|
|
73
73
|
constructor(config: FirmaConfig, cosmwasmService: FirmaCosmWasmService);
|
|
74
|
-
mint(wallet: FirmaWalletService, contractAddress: string, owner: string, token_id: string, token_uri?: string, txMisc?: TxMisc): Promise<
|
|
75
|
-
mintWithExtension(wallet: FirmaWalletService, contractAddress: string, owner: string, token_id: string, extension: Cw721Extension, token_uri?: string, txMisc?: TxMisc): Promise<
|
|
74
|
+
mint(wallet: FirmaWalletService, contractAddress: string, owner: string, token_id: string, token_uri?: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
75
|
+
mintWithExtension(wallet: FirmaWalletService, contractAddress: string, owner: string, token_id: string, extension: Cw721Extension, token_uri?: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
76
76
|
getUnsignedTxMint(wallet: FirmaWalletService, contractAddress: string, owner: string, token_id: string, token_uri?: string): Promise<EncodeObject>;
|
|
77
|
-
burn(wallet: FirmaWalletService, contractAddress: string, token_id: string, txMisc?: TxMisc): Promise<
|
|
77
|
+
burn(wallet: FirmaWalletService, contractAddress: string, token_id: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
78
78
|
getUnsignedTxBurn(wallet: FirmaWalletService, contractAddress: string, token_id: string): Promise<EncodeObject>;
|
|
79
|
-
transfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, token_id: string, txMisc?: TxMisc): Promise<
|
|
79
|
+
transfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, token_id: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
80
80
|
getUnsignedTxTransfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, token_id: string): Promise<EncodeObject>;
|
|
81
|
-
approve(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, expires: Cw721Expires, txMisc?: TxMisc): Promise<
|
|
81
|
+
approve(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, expires: Cw721Expires, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
82
82
|
getUnsignedTxApprove(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, expires: Cw721Expires): Promise<EncodeObject>;
|
|
83
|
-
revoke(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, txMisc?: TxMisc): Promise<
|
|
83
|
+
revoke(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
84
84
|
getUnsignedTxRevoke(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string): Promise<EncodeObject>;
|
|
85
|
-
approveAll(wallet: FirmaWalletService, contractAddress: string, operator: string, expires: Cw721Expires, txMisc?: TxMisc): Promise<
|
|
85
|
+
approveAll(wallet: FirmaWalletService, contractAddress: string, operator: string, expires: Cw721Expires, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
86
86
|
getUnsignedTxApproveAll(wallet: FirmaWalletService, contractAddress: string, operator: string, expires: Cw721Expires): Promise<EncodeObject>;
|
|
87
|
-
revokeAll(wallet: FirmaWalletService, contractAddress: string, operator: string, txMisc?: TxMisc): Promise<
|
|
87
|
+
revokeAll(wallet: FirmaWalletService, contractAddress: string, operator: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
88
88
|
getUnsignedTxRevokeAll(wallet: FirmaWalletService, contractAddress: string, operator: string): Promise<EncodeObject>;
|
|
89
|
-
sendNft(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, token_id: string, msg: any, txMisc?: TxMisc): Promise<
|
|
89
|
+
sendNft(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, token_id: string, msg: any, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
90
90
|
getUnsignedTxSendNft(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, token_id: string, msg: any): Promise<EncodeObject>;
|
|
91
|
-
updateOwnerShipTransfer(wallet: FirmaWalletService, contractAddress: string, new_owner: string, expiry: Cw721Expires, txMisc?: TxMisc): Promise<
|
|
91
|
+
updateOwnerShipTransfer(wallet: FirmaWalletService, contractAddress: string, new_owner: string, expiry: Cw721Expires, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
92
92
|
getUnsignedTxUpdateOwnerShipTransfer(wallet: FirmaWalletService, contractAddress: string, new_owner: string, expiry: Cw721Expires): Promise<EncodeObject>;
|
|
93
|
-
updateOwnerShipAccept(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<
|
|
93
|
+
updateOwnerShipAccept(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
94
94
|
getUnsignedTxUpdateOwnerShipAccept(wallet: FirmaWalletService, contractAddress: string): Promise<EncodeObject>;
|
|
95
|
-
updateOwnerShipRenounce(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<
|
|
95
|
+
updateOwnerShipRenounce(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
96
96
|
getUnsignedTxUpdateOwnerShipRenounce(wallet: FirmaWalletService, contractAddress: string): Promise<EncodeObject>;
|
|
97
|
-
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<
|
|
97
|
+
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
98
98
|
getGasEstimationSignAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<number>;
|
|
99
99
|
getGasEstimationMint(wallet: FirmaWalletService, contractAddress: string, owner: string, token_id: string, token_uri?: string): Promise<number>;
|
|
100
100
|
getGasEstimationBurn(wallet: FirmaWalletService, contractAddress: string, token_id: string): Promise<number>;
|
|
@@ -3,7 +3,7 @@ import { FirmaCosmWasmService } from "./FirmaCosmWasmService";
|
|
|
3
3
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
4
4
|
import { TxMisc } from "./firmachain/common";
|
|
5
5
|
import { EncodeObject } from "@cosmjs/proto-signing";
|
|
6
|
-
import {
|
|
6
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
7
7
|
import { FirmaCosmWasmCw721Service } from "./FirmaCosmWasmCw721";
|
|
8
8
|
export interface BridgeGlobalTxCounts {
|
|
9
9
|
lock_count: number;
|
|
@@ -42,21 +42,21 @@ export declare class FirmaCosmWasmCwBridgeService {
|
|
|
42
42
|
private readonly cw721Service;
|
|
43
43
|
constructor(config: FirmaConfig, cosmwasmService: FirmaCosmWasmService, cw721Service: FirmaCosmWasmCw721Service);
|
|
44
44
|
getCwBridgeMsgData(): typeof CwBridgeMsgData;
|
|
45
|
-
changeOwner(wallet: FirmaWalletService, contractAddress: string, new_owner: string, txMisc?: TxMisc): Promise<
|
|
45
|
+
changeOwner(wallet: FirmaWalletService, contractAddress: string, new_owner: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
46
46
|
getUnsignedTxChangeOwner(wallet: FirmaWalletService, contractAddress: string, new_owner: string): Promise<EncodeObject>;
|
|
47
|
-
addAuthorizedUser(wallet: FirmaWalletService, contractAddress: string, user: string, txMisc?: TxMisc): Promise<
|
|
47
|
+
addAuthorizedUser(wallet: FirmaWalletService, contractAddress: string, user: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
48
48
|
getUnsignedTxAddAuthorizedUser(wallet: FirmaWalletService, contractAddress: string, user: string): Promise<EncodeObject>;
|
|
49
|
-
removeAuthorizedUser(wallet: FirmaWalletService, contractAddress: string, user: string, txMisc?: TxMisc): Promise<
|
|
49
|
+
removeAuthorizedUser(wallet: FirmaWalletService, contractAddress: string, user: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
50
50
|
getUnsignedTxRemoveAuthorizedUser(wallet: FirmaWalletService, contractAddress: string, user: string): Promise<EncodeObject>;
|
|
51
|
-
lock(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, txMisc?: TxMisc): Promise<
|
|
51
|
+
lock(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
52
52
|
getUnsignedTxLock(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string): Promise<EncodeObject>;
|
|
53
|
-
deposit(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, toAddress: string, txMisc?: TxMisc): Promise<
|
|
53
|
+
deposit(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, toAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
54
54
|
getUnsignedTxDeposit(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, toAddress: string): Promise<EncodeObject>;
|
|
55
|
-
unlock(wallet: FirmaWalletService, contractAddress: string, token_id: string, txMisc?: TxMisc): Promise<
|
|
55
|
+
unlock(wallet: FirmaWalletService, contractAddress: string, token_id: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
56
56
|
getUnsignedTxUnlock(wallet: FirmaWalletService, contractAddress: string, token_id: string): Promise<EncodeObject>;
|
|
57
|
-
withdraw(wallet: FirmaWalletService, contractAddress: string, token_id: string, txMisc?: TxMisc): Promise<
|
|
57
|
+
withdraw(wallet: FirmaWalletService, contractAddress: string, token_id: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
58
58
|
getUnsignedTxWithdraw(wallet: FirmaWalletService, contractAddress: string, token_id: string): Promise<EncodeObject>;
|
|
59
|
-
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<
|
|
59
|
+
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
60
60
|
getGasEstimationSignAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<number>;
|
|
61
61
|
getGasEstimationChangeOwner(wallet: FirmaWalletService, contractAddress: string, new_owner: string): Promise<number>;
|
|
62
62
|
getGasEstimationAddAuthorizedUser(wallet: FirmaWalletService, contractAddress: string, user: string): Promise<number>;
|
|
@@ -3,7 +3,7 @@ import { FirmaCosmWasmService } from "./FirmaCosmWasmService";
|
|
|
3
3
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
4
4
|
import { TxMisc } from "./firmachain/common";
|
|
5
5
|
import { EncodeObject } from "@cosmjs/proto-signing";
|
|
6
|
-
import {
|
|
6
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
7
7
|
import { FirmaCosmWasmCw721Service } from "./FirmaCosmWasmCw721";
|
|
8
8
|
import { FirmaCosmWasmCw20Service } from "./FirmaCosmWasmCw20";
|
|
9
9
|
export interface MarketplaceConfig {
|
|
@@ -48,18 +48,18 @@ export declare class FirmaCosmWasmCwMarketplaceService {
|
|
|
48
48
|
private readonly cw20Service;
|
|
49
49
|
constructor(config: FirmaConfig, cosmwasmService: FirmaCosmWasmService, cw721Service: FirmaCosmWasmCw721Service, cw20Service: FirmaCosmWasmCw20Service);
|
|
50
50
|
getCwMarketplaceMsgData(): typeof CwMarketplaceMsgData;
|
|
51
|
-
changeOwner(wallet: FirmaWalletService, contractAddress: string, new_owner: string, txMisc?: TxMisc): Promise<
|
|
51
|
+
changeOwner(wallet: FirmaWalletService, contractAddress: string, new_owner: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
52
52
|
getUnsignedTxChangeOwner(wallet: FirmaWalletService, contractAddress: string, new_owner: string): Promise<EncodeObject>;
|
|
53
|
-
registerSaleFCT(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, fctAmount: number, txMisc?: TxMisc): Promise<
|
|
53
|
+
registerSaleFCT(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, fctAmount: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
54
54
|
getUnsignedTxRegisterSaleFCT(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, fctAmount: number): Promise<EncodeObject>;
|
|
55
|
-
registerSaleCw20(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, cw20Address: string, cw20Amount: number, cw20Decimal: number, txMisc?: TxMisc): Promise<
|
|
56
|
-
purchaseSaleFCT(wallet: FirmaWalletService, contractAddress: string, tokenId: string, fctAmount: number, txMisc?: TxMisc): Promise<
|
|
55
|
+
registerSaleCw20(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, cw20Address: string, cw20Amount: number, cw20Decimal: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
56
|
+
purchaseSaleFCT(wallet: FirmaWalletService, contractAddress: string, tokenId: string, fctAmount: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
57
57
|
getUnsignedTxPurchaseSaleFCT(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, fctAmount: string): Promise<EncodeObject>;
|
|
58
|
-
purchaseSaleCw20(wallet: FirmaWalletService, contractAddress: string, tokenId: string, cw20Address: string, cw20Amount: number, cw20Decimal: number, txMisc?: TxMisc): Promise<
|
|
58
|
+
purchaseSaleCw20(wallet: FirmaWalletService, contractAddress: string, tokenId: string, cw20Address: string, cw20Amount: number, cw20Decimal: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
59
59
|
getUnsignedTxPurchaseSaleCw20(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, cw20Address: string, cw20Amount: number, cw20Decimal: number): Promise<EncodeObject>;
|
|
60
|
-
cancelSale(wallet: FirmaWalletService, contractAddress: string, tokenId: string, txMisc?: TxMisc): Promise<
|
|
60
|
+
cancelSale(wallet: FirmaWalletService, contractAddress: string, tokenId: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
61
61
|
getUnsignedTxCancelSale(wallet: FirmaWalletService, contractAddress: string, tokenId: string): Promise<EncodeObject>;
|
|
62
|
-
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<
|
|
62
|
+
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
63
63
|
getGasEstimationSignAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<number>;
|
|
64
64
|
getGasEstimationChangeOwner(wallet: FirmaWalletService, contractAddress: string, new_owner: string): Promise<number>;
|
|
65
65
|
getGasEstimationRegisterSaleFCT(wallet: FirmaWalletService, contractAddress: string, cw721ContractAddress: string, tokenId: string, fctAmount: number): Promise<number>;
|
|
@@ -2,7 +2,7 @@ import { CosmWasmTxClient, TxMisc, CodeInfo, CodeData, ContractInfo, ContractHis
|
|
|
2
2
|
import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx";
|
|
3
3
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
4
4
|
import { FirmaConfig } from "./FirmaConfig";
|
|
5
|
-
import {
|
|
5
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
6
6
|
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
7
7
|
import { AccessConfig } from "cosmjs-types/cosmwasm/wasm/v1/types";
|
|
8
8
|
import { EncodeObject } from "@cosmjs/proto-signing";
|
|
@@ -12,19 +12,19 @@ export declare class FirmaCosmWasmService {
|
|
|
12
12
|
constructor(config: FirmaConfig);
|
|
13
13
|
getTxClient(wallet: FirmaWalletService): CosmWasmTxClient;
|
|
14
14
|
getGasEstimationStoreCode(wallet: FirmaWalletService, wasmCode: Uint8Array, accessConfig: AccessConfig, txMisc?: TxMisc): Promise<number>;
|
|
15
|
-
storeCode(wallet: FirmaWalletService, wasmCode: Uint8Array, accessConfig: AccessConfig, txMisc?: TxMisc): Promise<
|
|
15
|
+
storeCode(wallet: FirmaWalletService, wasmCode: Uint8Array, accessConfig: AccessConfig, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
16
16
|
getGasEstimationUpdateAdmin(wallet: FirmaWalletService, contractAddress: string, adminAddress: string, txMisc?: TxMisc): Promise<number>;
|
|
17
|
-
updateAdmin(wallet: FirmaWalletService, contractAddress: string, adminAddress: string, txMisc?: TxMisc): Promise<
|
|
17
|
+
updateAdmin(wallet: FirmaWalletService, contractAddress: string, adminAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
18
18
|
getGasEstimationClearAdmin(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<number>;
|
|
19
|
-
clearAdmin(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<
|
|
19
|
+
clearAdmin(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
20
20
|
getGasEstimationMigrateContract(wallet: FirmaWalletService, contractAddress: string, codeId: string, msg: string, txMisc?: TxMisc): Promise<number>;
|
|
21
|
-
migrateContract(wallet: FirmaWalletService, contractAddress: string, codeId: string, msg: string, txMisc?: TxMisc): Promise<
|
|
21
|
+
migrateContract(wallet: FirmaWalletService, contractAddress: string, codeId: string, msg: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
22
22
|
getGasEstimationExecuteContract(wallet: FirmaWalletService, contractAddress: string, msg: string, funds?: Coin[], txMisc?: TxMisc): Promise<number>;
|
|
23
|
-
executeContract(wallet: FirmaWalletService, contractAddress: string, msg: string, funds?: Coin[], txMisc?: TxMisc): Promise<
|
|
24
|
-
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<
|
|
23
|
+
executeContract(wallet: FirmaWalletService, contractAddress: string, msg: string, funds?: Coin[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
24
|
+
signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
25
25
|
getGasEstimationSignAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<number>;
|
|
26
26
|
getGasEstimationInstantiateContract(wallet: FirmaWalletService, admin: string, codeId: string, label: string, msg: string, funds: Coin[], txMisc?: TxMisc): Promise<number>;
|
|
27
|
-
instantiateContract(wallet: FirmaWalletService, admin: string, codeId: string, label: string, msg: string, funds: Coin[], txMisc?: TxMisc): Promise<
|
|
27
|
+
instantiateContract(wallet: FirmaWalletService, admin: string, codeId: string, label: string, msg: string, funds: Coin[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
28
28
|
private getSignedTxInstantiateContract;
|
|
29
29
|
private getSignedTxUpdateAdmin;
|
|
30
30
|
private getSignedTxClearAdmin;
|
|
@@ -44,7 +44,6 @@ var cosmwasm_1 = require("./firmachain/cosmwasm");
|
|
|
44
44
|
var encoding_1 = require("@cosmjs/encoding");
|
|
45
45
|
var FirmaUtil_1 = require("./FirmaUtil");
|
|
46
46
|
var pako_1 = __importDefault(require("pako"));
|
|
47
|
-
var long_1 = __importDefault(require("long"));
|
|
48
47
|
var types_1 = require("cosmjs-types/cosmwasm/wasm/v1/types");
|
|
49
48
|
Object.defineProperty(exports, "AccessConfig", { enumerable: true, get: function () { return types_1.AccessConfig; } });
|
|
50
49
|
Object.defineProperty(exports, "AccessType", { enumerable: true, get: function () { return types_1.AccessType; } });
|
|
@@ -382,7 +381,7 @@ var FirmaCosmWasmService = /** @class */ (function () {
|
|
|
382
381
|
case 1:
|
|
383
382
|
address = _a.sent();
|
|
384
383
|
utfMsg = encoding_1.toUtf8(msg);
|
|
385
|
-
message = cosmwasm_1.CosmWasmTxClient.msgInstantiateContract({ sender: address, admin: admin, codeId:
|
|
384
|
+
message = cosmwasm_1.CosmWasmTxClient.msgInstantiateContract({ sender: address, admin: admin, codeId: BigInt(codeId), label: label, msg: utfMsg, funds: funds });
|
|
386
385
|
txClient = new cosmwasm_1.CosmWasmTxClient(wallet, this.config.rpcAddress);
|
|
387
386
|
return [4 /*yield*/, txClient.sign([message], FirmaUtil_1.getSignAndBroadcastOption(this.config.denom, txMisc))];
|
|
388
387
|
case 2: return [2 /*return*/, _a.sent()];
|
|
@@ -455,7 +454,7 @@ var FirmaCosmWasmService = /** @class */ (function () {
|
|
|
455
454
|
case 1:
|
|
456
455
|
address = _a.sent();
|
|
457
456
|
utfMsg = encoding_1.toUtf8(msg);
|
|
458
|
-
message = cosmwasm_1.CosmWasmTxClient.msgMigrateContract({ sender: address, contract: contractAddress, codeId:
|
|
457
|
+
message = cosmwasm_1.CosmWasmTxClient.msgMigrateContract({ sender: address, contract: contractAddress, codeId: BigInt(codeId), msg: utfMsg });
|
|
459
458
|
txClient = new cosmwasm_1.CosmWasmTxClient(wallet, this.config.rpcAddress);
|
|
460
459
|
return [4 /*yield*/, txClient.sign([message], FirmaUtil_1.getSignAndBroadcastOption(this.config.denom, txMisc))];
|
|
461
460
|
case 2: return [2 /*return*/, _a.sent()];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DistributionTxClient, TxMisc, TotalRewardInfo } from "./firmachain/distribution";
|
|
2
2
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
3
3
|
import { FirmaConfig } from "./FirmaConfig";
|
|
4
|
-
import {
|
|
4
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
5
5
|
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
6
6
|
import { DelegationInfo } from "./firmachain/staking";
|
|
7
7
|
export declare class FirmaDistributionService {
|
|
@@ -17,12 +17,12 @@ export declare class FirmaDistributionService {
|
|
|
17
17
|
private getSignedTxSetWithdrawAddress;
|
|
18
18
|
private getSignedTxFundCommunityPool;
|
|
19
19
|
private getSignedTxWithdrawValidatorCommission;
|
|
20
|
-
setWithdrawAddress(wallet: FirmaWalletService, withdrawAddress: string, txMisc?: TxMisc): Promise<
|
|
21
|
-
fundCommunityPool(wallet: FirmaWalletService, amount: number, txMisc?: TxMisc): Promise<
|
|
22
|
-
withdrawValidatorCommission(wallet: FirmaWalletService, validatorAddres: string, txMisc?: TxMisc): Promise<
|
|
20
|
+
setWithdrawAddress(wallet: FirmaWalletService, withdrawAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
21
|
+
fundCommunityPool(wallet: FirmaWalletService, amount: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
22
|
+
withdrawValidatorCommission(wallet: FirmaWalletService, validatorAddres: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
23
23
|
private getSignedTxwithdrawAllRewardsFromAllValidator;
|
|
24
|
-
withdrawAllRewardsFromAllValidator(wallet: FirmaWalletService, delegationList: DelegationInfo[], txMisc?: TxMisc): Promise<
|
|
25
|
-
withdrawAllRewards(wallet: FirmaWalletService, validatorAddress: string, txMisc?: TxMisc): Promise<
|
|
24
|
+
withdrawAllRewardsFromAllValidator(wallet: FirmaWalletService, delegationList: DelegationInfo[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
25
|
+
withdrawAllRewards(wallet: FirmaWalletService, validatorAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
26
26
|
getRewardInfo(address: string, validatorAddress: string): Promise<string>;
|
|
27
27
|
getValidatorOutStandingReward(validatorAddress: string): Promise<Coin[]>;
|
|
28
28
|
getValidatorCommission(validatorAddress: string): Promise<Coin[]>;
|
|
@@ -2,20 +2,20 @@ import { TxMisc, BasicFeeGrantOption, PeriodicFeeGrantOption } from "./firmachai
|
|
|
2
2
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
3
3
|
import { FirmaConfig } from "./FirmaConfig";
|
|
4
4
|
import { FeeAllowanceType, FeeAllowanceType1 } from "./firmachain/feegrant/FeeGrantQueryClient";
|
|
5
|
-
import {
|
|
5
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
6
6
|
export declare class FirmaFeeGrantService {
|
|
7
7
|
private readonly config;
|
|
8
8
|
constructor(config: FirmaConfig);
|
|
9
9
|
getGasEstimationRevokeAllowance(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<number>;
|
|
10
10
|
private getSignedTxRevokeAllowance;
|
|
11
|
-
revokeAllowance(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<
|
|
11
|
+
revokeAllowance(wallet: FirmaWalletService, granteeAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
12
12
|
private getCoinType;
|
|
13
13
|
getGasEstimationGrantPeriodicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption: PeriodicFeeGrantOption, txMisc?: TxMisc): Promise<number>;
|
|
14
14
|
private getSignedTxGrantPeriodicAllowance;
|
|
15
15
|
getGasEstimationGrantBasicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption?: BasicFeeGrantOption, txMisc?: TxMisc): Promise<number>;
|
|
16
16
|
private getSignedTxGrantBasicAllowance;
|
|
17
|
-
grantPeriodicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption: PeriodicFeeGrantOption, txMisc?: TxMisc): Promise<
|
|
18
|
-
grantBasicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption?: BasicFeeGrantOption, txMisc?: TxMisc): Promise<
|
|
17
|
+
grantPeriodicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption: PeriodicFeeGrantOption, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
18
|
+
grantBasicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption?: BasicFeeGrantOption, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
19
19
|
getGranteeAllowance(granterAddress: string, granteeAddress: string): Promise<FeeAllowanceType1>;
|
|
20
20
|
getGranteeAllowanceAll(granteeAddress: string): Promise<FeeAllowanceType[]>;
|
|
21
21
|
}
|
|
@@ -1,32 +1,43 @@
|
|
|
1
|
-
import { TxMisc,
|
|
1
|
+
import { TxMisc, VotingOption, ProposalInfo, ProposalStatus, ProposalParam, CurrentVoteInfo } from "./firmachain/gov";
|
|
2
2
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
3
3
|
import { FirmaConfig } from "./FirmaConfig";
|
|
4
|
-
import {
|
|
4
|
+
import { DeliverTxResponse } from "./firmachain/common/stargateclient";
|
|
5
|
+
import { Plan } from "cosmjs-types/cosmos/upgrade/v1beta1/upgrade";
|
|
6
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
7
|
+
import { Params as StakingParams } from "cosmjs-types/cosmos/staking/v1beta1/staking";
|
|
8
|
+
import { Params as GovParams } from "cosmjs-types/cosmos/gov/v1/gov";
|
|
5
9
|
export declare class FirmaGovService {
|
|
6
10
|
private readonly config;
|
|
11
|
+
static readonly GOV_AUTHORITY = "firma10d07y265gmmuvt4z0w9aw880jnsr700j53mj8f";
|
|
7
12
|
constructor(config: FirmaConfig);
|
|
8
13
|
getGasEstimationVote(wallet: FirmaWalletService, proposalId: number, option: VotingOption, txMisc?: TxMisc): Promise<number>;
|
|
9
14
|
getGasEstimationDeposit(wallet: FirmaWalletService, proposalId: number, amount: number, txMisc?: TxMisc): Promise<number>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
getGasEstimationSubmitCommunityPoolSpendProposal(wallet: FirmaWalletService, title: string,
|
|
15
|
+
getGasEstimationSubmitSoftwareUpgradeProposal(wallet: FirmaWalletService, title: string, summary: string, initialDepositFCT: number, plan: Plan, metadata?: string, txMisc?: TxMisc): Promise<number>;
|
|
16
|
+
getGasEstimationSubmitStakingParamsUpdateProposal(wallet: FirmaWalletService, title: string, summary: string, initialDepositFCT: number, params: StakingParams, metadata?: string, txMisc?: TxMisc): Promise<number>;
|
|
17
|
+
getGasEstimationSubmitGovParamsUpdateProposal(wallet: FirmaWalletService, title: string, summary: string, initialDepositFCT: number, params: GovParams, metadata?: string, txMisc?: TxMisc): Promise<number>;
|
|
18
|
+
getGasEstimationSubmitCommunityPoolSpendProposal(wallet: FirmaWalletService, title: string, summary: string, initialDepositFCT: number, amountFCT: number, recipient: string, txMisc?: TxMisc): Promise<number>;
|
|
14
19
|
getGasEstimationSubmitTextProposal(wallet: FirmaWalletService, title: string, description: string, initialDepositFCT: number, txMisc?: TxMisc): Promise<number>;
|
|
20
|
+
getGasEstimationCancelProposal(wallet: FirmaWalletService, proposalId: number, txMisc?: TxMisc): Promise<number>;
|
|
15
21
|
private getSignedTxSubmitTextProposal;
|
|
16
|
-
private getSignedTxSubmitCancelSoftwareUpgradeProposal;
|
|
17
22
|
private getSignedTxSubmitSoftwareUpgradeProposal;
|
|
18
|
-
private
|
|
23
|
+
private getSignedTxSubmitStakingParamsUpdateProposal;
|
|
24
|
+
private getSignedTxSubmitGovParamsUpdateProposal;
|
|
19
25
|
private getSignedTxSubmitCommunityPoolSpendProposal;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
submitCommunityPoolSpendProposal(wallet: FirmaWalletService, title: string,
|
|
25
|
-
submitTextProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, txMisc?: TxMisc): Promise<
|
|
26
|
+
private getSignedTxCancelProposal;
|
|
27
|
+
submitSoftwareUpgradeProposal(wallet: FirmaWalletService, title: string, summary: string, initialDepositFCT: number, plan: Plan, metadata?: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
28
|
+
submitStakingParamsUpdateProposal(wallet: FirmaWalletService, title: string, summary: string, initialDepositFCT: number, params: StakingParams, metadata?: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
29
|
+
submitGovParamsUpdateProposal(wallet: FirmaWalletService, title: string, summary: string, initialDepositFCT: number, params: GovParams, metadata?: string, txmisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
30
|
+
submitCommunityPoolSpendProposal(wallet: FirmaWalletService, title: string, summary: string, initialDepositFCT: number, amountFCT: number, recipient: string, metadata?: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
31
|
+
submitTextProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
32
|
+
submitGenericProposal(wallet: FirmaWalletService, title: string, summary: string, initialDeposit: Coin[], metadata: string, msgs: {
|
|
33
|
+
typeUrl?: string | undefined;
|
|
34
|
+
value?: Uint8Array | undefined;
|
|
35
|
+
}[] | undefined, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
36
|
+
cancelProposal(wallet: FirmaWalletService, proposalId: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
26
37
|
private getSignedTxVote;
|
|
27
|
-
vote(wallet: FirmaWalletService, proposalId: number, option: VotingOption, txMisc?: TxMisc): Promise<
|
|
38
|
+
vote(wallet: FirmaWalletService, proposalId: number, option: VotingOption, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
28
39
|
private getSignedTxDeposit;
|
|
29
|
-
deposit(wallet: FirmaWalletService, proposalId: number, amount: number, txMisc?: TxMisc): Promise<
|
|
40
|
+
deposit(wallet: FirmaWalletService, proposalId: number, amount: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
|
|
30
41
|
getCurrentVoteInfo(id: string): Promise<CurrentVoteInfo>;
|
|
31
42
|
getParam(): Promise<ProposalParam>;
|
|
32
43
|
getProposal(id: string): Promise<ProposalInfo>;
|