@firmachain/firma-js 0.2.62 → 0.3.0-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.
Files changed (243) hide show
  1. package/README.md +4 -1
  2. package/dist/sdk/FirmaAuthzService.d.ts +8 -8
  3. package/dist/sdk/FirmaAuthzService.js +12 -6
  4. package/dist/sdk/FirmaBankService.d.ts +4 -4
  5. package/dist/sdk/FirmaContractService.d.ts +4 -4
  6. package/dist/sdk/FirmaCosmWasmCw20.d.ts +14 -14
  7. package/dist/sdk/FirmaCosmWasmCw721.d.ts +31 -13
  8. package/dist/sdk/FirmaCosmWasmCw721.js +25 -0
  9. package/dist/sdk/FirmaCosmWasmCwBridge.d.ts +9 -9
  10. package/dist/sdk/FirmaCosmWasmCwMarketplace.d.ts +8 -8
  11. package/dist/sdk/FirmaCosmWasmService.d.ts +8 -8
  12. package/dist/sdk/FirmaCosmWasmService.js +2 -3
  13. package/dist/sdk/FirmaDistributionService.d.ts +6 -6
  14. package/dist/sdk/FirmaFeeGrantService.d.ts +4 -4
  15. package/dist/sdk/FirmaGovService.d.ts +12 -9
  16. package/dist/sdk/FirmaGovService.js +162 -97
  17. package/dist/sdk/FirmaIbcService.d.ts +3 -4
  18. package/dist/sdk/FirmaIbcService.js +5 -2
  19. package/dist/sdk/FirmaNftService.d.ts +5 -5
  20. package/dist/sdk/FirmaStakingService.d.ts +6 -6
  21. package/dist/sdk/FirmaTokenService.d.ts +5 -5
  22. package/dist/sdk/FirmaUtil.d.ts +1 -1
  23. package/dist/sdk/FirmaUtil.js +12 -14
  24. package/dist/sdk/firmachain/amino/addresses.js +1 -1
  25. package/dist/sdk/firmachain/amino/aminomsgs.d.ts +10 -0
  26. package/dist/sdk/firmachain/amino/aminomsgs.js +5 -1
  27. package/dist/sdk/firmachain/amino/aminotypes.js +27 -10
  28. package/dist/sdk/firmachain/amino/coins.d.ts +14 -2
  29. package/dist/sdk/firmachain/amino/coins.js +26 -5
  30. package/dist/sdk/firmachain/amino/encoding.d.ts +10 -1
  31. package/dist/sdk/firmachain/amino/encoding.js +21 -3
  32. package/dist/sdk/firmachain/amino/signdoc.d.ts +21 -3
  33. package/dist/sdk/firmachain/amino/signdoc.js +37 -11
  34. package/dist/sdk/firmachain/amino/signer.d.ts +2 -1
  35. package/dist/sdk/firmachain/authz/AuthzTxTypes.d.ts +7 -6
  36. package/dist/sdk/firmachain/authz/AuthzTxTypes.js +7 -6
  37. package/dist/sdk/firmachain/bank/BankQueryClient.js +1 -1
  38. package/dist/sdk/firmachain/common/CommonTxClient.js +11 -9
  39. package/dist/sdk/firmachain/common/ITxClient.d.ts +6 -6
  40. package/dist/sdk/firmachain/common/ITxClient.js +82 -24
  41. package/dist/sdk/firmachain/common/LedgerSigningStargateClient.d.ts +4 -9
  42. package/dist/sdk/firmachain/common/LedgerSigningStargateClient.js +37 -32
  43. package/dist/sdk/firmachain/common/LedgerWallet.js +4 -8
  44. package/dist/sdk/firmachain/common/TxCommon.d.ts +1 -2
  45. package/dist/sdk/firmachain/common/accounts.d.ts +7 -3
  46. package/dist/sdk/firmachain/common/accounts.js +28 -33
  47. package/dist/sdk/firmachain/common/aminotypes.d.ts +19 -0
  48. package/dist/sdk/firmachain/common/aminotypes.js +74 -0
  49. package/dist/sdk/firmachain/common/events.d.ts +32 -0
  50. package/dist/sdk/firmachain/common/events.js +18 -0
  51. package/dist/sdk/firmachain/common/fee.d.ts +26 -0
  52. package/dist/sdk/firmachain/common/fee.js +83 -0
  53. package/dist/sdk/firmachain/common/index.d.ts +1 -0
  54. package/dist/sdk/firmachain/common/index.js +3 -0
  55. package/dist/sdk/firmachain/common/modules/auth/queries.d.ts +15 -0
  56. package/dist/sdk/firmachain/common/modules/auth/queries.js +64 -0
  57. package/dist/sdk/firmachain/common/modules/authz/aminomessages.d.ts +2 -0
  58. package/dist/sdk/firmachain/common/modules/authz/aminomessages.js +15 -0
  59. package/dist/sdk/firmachain/common/modules/authz/messages.d.ts +2 -0
  60. package/dist/sdk/firmachain/common/modules/authz/messages.js +9 -0
  61. package/dist/sdk/firmachain/common/modules/authz/queries.d.ts +10 -0
  62. package/dist/sdk/firmachain/common/modules/authz/queries.js +88 -0
  63. package/dist/sdk/firmachain/common/modules/bank/aminomessages.d.ts +35 -0
  64. package/dist/sdk/firmachain/common/modules/bank/aminomessages.js +85 -0
  65. package/dist/sdk/firmachain/common/modules/bank/messages.d.ts +8 -0
  66. package/dist/sdk/firmachain/common/modules/bank/messages.js +12 -0
  67. package/dist/sdk/firmachain/common/modules/bank/queries.d.ts +15 -0
  68. package/dist/sdk/firmachain/common/modules/bank/queries.js +128 -0
  69. package/dist/sdk/firmachain/common/modules/crisis/aminomessages.d.ts +14 -0
  70. package/dist/sdk/firmachain/common/modules/crisis/aminomessages.js +11 -0
  71. package/dist/sdk/firmachain/common/modules/distribution/aminomessages.d.ts +44 -0
  72. package/dist/sdk/firmachain/common/modules/distribution/aminomessages.js +113 -0
  73. package/dist/sdk/firmachain/common/modules/distribution/messages.d.ts +8 -0
  74. package/dist/sdk/firmachain/common/modules/distribution/messages.js +15 -0
  75. package/dist/sdk/firmachain/common/modules/distribution/queries.d.ts +16 -0
  76. package/dist/sdk/firmachain/common/modules/distribution/queries.js +171 -0
  77. package/dist/sdk/firmachain/common/modules/evidence/aminomessages.d.ts +18 -0
  78. package/dist/sdk/firmachain/common/modules/evidence/aminomessages.js +11 -0
  79. package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.d.ts +2 -0
  80. package/dist/sdk/firmachain/common/modules/feegrant/aminomessages.js +14 -0
  81. package/dist/sdk/firmachain/common/modules/feegrant/messages.d.ts +2 -0
  82. package/dist/sdk/firmachain/common/modules/feegrant/messages.js +8 -0
  83. package/dist/sdk/firmachain/common/modules/feegrant/queries.d.ts +9 -0
  84. package/dist/sdk/firmachain/common/modules/feegrant/queries.js +81 -0
  85. package/dist/sdk/firmachain/common/modules/gov/aminomessages.d.ts +79 -0
  86. package/dist/sdk/firmachain/common/modules/gov/aminomessages.js +152 -0
  87. package/dist/sdk/firmachain/common/modules/gov/messages.d.ts +29 -0
  88. package/dist/sdk/firmachain/common/modules/gov/messages.js +38 -0
  89. package/dist/sdk/firmachain/common/modules/gov/queries.d.ts +19 -0
  90. package/dist/sdk/firmachain/common/modules/gov/queries.js +160 -0
  91. package/dist/sdk/firmachain/common/modules/group/aminomessages.d.ts +2 -0
  92. package/dist/sdk/firmachain/common/modules/group/aminomessages.js +8 -0
  93. package/dist/sdk/firmachain/common/modules/group/messages.d.ts +2 -0
  94. package/dist/sdk/firmachain/common/modules/group/messages.js +28 -0
  95. package/dist/sdk/firmachain/common/modules/ibc/aminomessages.d.ts +38 -0
  96. package/dist/sdk/firmachain/common/modules/ibc/aminomessages.js +55 -0
  97. package/dist/sdk/firmachain/common/modules/ibc/messages.d.ts +8 -0
  98. package/dist/sdk/firmachain/common/modules/ibc/messages.js +32 -0
  99. package/dist/sdk/firmachain/common/modules/ibc/queries.d.ts +58 -0
  100. package/dist/sdk/firmachain/common/modules/ibc/queries.js +576 -0
  101. package/dist/sdk/firmachain/common/modules/index.d.ts +32 -0
  102. package/dist/sdk/firmachain/common/modules/index.js +101 -0
  103. package/dist/sdk/firmachain/common/modules/mint/queries.d.ts +21 -0
  104. package/dist/sdk/firmachain/common/modules/mint/queries.js +95 -0
  105. package/dist/sdk/firmachain/common/modules/slashing/aminomessages.d.ts +12 -0
  106. package/dist/sdk/firmachain/common/modules/slashing/aminomessages.js +11 -0
  107. package/dist/sdk/firmachain/common/modules/slashing/queries.d.ts +10 -0
  108. package/dist/sdk/firmachain/common/modules/slashing/queries.js +88 -0
  109. package/dist/sdk/firmachain/common/modules/staking/aminomessages.d.ts +112 -0
  110. package/dist/sdk/firmachain/common/modules/staking/aminomessages.js +234 -0
  111. package/dist/sdk/firmachain/common/modules/staking/messages.d.ts +33 -0
  112. package/dist/sdk/firmachain/common/modules/staking/messages.js +37 -0
  113. package/dist/sdk/firmachain/common/modules/staking/queries.d.ts +23 -0
  114. package/dist/sdk/firmachain/common/modules/staking/queries.js +242 -0
  115. package/dist/sdk/firmachain/common/modules/tx/queries.d.ts +11 -0
  116. package/dist/sdk/firmachain/common/modules/tx/queries.js +103 -0
  117. package/dist/sdk/firmachain/common/modules/vesting/aminomessages.d.ts +16 -0
  118. package/dist/sdk/firmachain/common/modules/vesting/aminomessages.js +56 -0
  119. package/dist/sdk/firmachain/common/modules/vesting/messages.d.ts +2 -0
  120. package/dist/sdk/firmachain/common/modules/vesting/messages.js +7 -0
  121. package/dist/sdk/firmachain/common/queryclient/index.d.ts +2 -0
  122. package/dist/sdk/firmachain/common/queryclient/index.js +10 -0
  123. package/dist/sdk/firmachain/common/queryclient/queryclient.d.ts +75 -0
  124. package/dist/sdk/firmachain/common/queryclient/queryclient.js +157 -0
  125. package/dist/sdk/firmachain/common/queryclient/utils.d.ts +33 -0
  126. package/dist/sdk/firmachain/common/queryclient/utils.js +101 -0
  127. package/dist/sdk/firmachain/common/search.d.ts +10 -0
  128. package/dist/sdk/firmachain/common/search.js +7 -0
  129. package/dist/sdk/firmachain/common/signing.d.ts +8 -3
  130. package/dist/sdk/firmachain/common/signing.js +24 -12
  131. package/dist/sdk/firmachain/common/signingstargateclient.d.ts +107 -30
  132. package/dist/sdk/firmachain/common/signingstargateclient.js +445 -128
  133. package/dist/sdk/firmachain/common/stargateclient.d.ts +184 -20
  134. package/dist/sdk/firmachain/common/stargateclient.js +351 -35
  135. package/dist/sdk/firmachain/contract/ContractTxClient.d.ts +2 -2
  136. package/dist/sdk/firmachain/contract/ContractTxClient.js +4 -4
  137. package/dist/sdk/firmachain/contract/ContractTxTypes.d.ts +1 -1
  138. package/dist/sdk/firmachain/contract/ContractTxTypes.js +3 -3
  139. package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +1 -1
  140. package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.d.ts +5 -5
  141. package/dist/sdk/firmachain/feegrant/FeeGrantTxTypes.js +10 -8
  142. package/dist/sdk/firmachain/google/protobuf/any.d.ts +3 -2
  143. package/dist/sdk/firmachain/google/protobuf/any.js +2 -1
  144. package/dist/sdk/firmachain/google/protobuf/duration.d.ts +3 -2
  145. package/dist/sdk/firmachain/google/protobuf/duration.js +2 -1
  146. package/dist/sdk/firmachain/google/protobuf/timestamp.d.ts +3 -2
  147. package/dist/sdk/firmachain/google/protobuf/timestamp.js +2 -1
  148. package/dist/sdk/firmachain/gov/GovTxClient.d.ts +6 -0
  149. package/dist/sdk/firmachain/gov/GovTxClient.js +6 -1
  150. package/dist/sdk/firmachain/nft/NftTxClient.d.ts +3 -3
  151. package/dist/sdk/firmachain/nft/NftTxClient.js +6 -6
  152. package/dist/sdk/firmachain/nft/NftTxTypes.d.ts +1 -1
  153. package/dist/sdk/firmachain/nft/NftTxTypes.js +4 -4
  154. package/dist/sdk/firmachain/staking/StakingQueryClient.js +0 -1
  155. package/dist/sdk/firmachain/token/TokenTxClient.d.ts +4 -4
  156. package/dist/sdk/firmachain/token/TokenTxClient.js +8 -8
  157. package/dist/sdk/firmachain/token/TokenTxTypes.d.ts +1 -1
  158. package/dist/sdk/firmachain/token/TokenTxTypes.js +5 -5
  159. package/dist/test/00.wallet.test.d.ts +1 -0
  160. package/dist/test/00.wallet.test.js +96 -0
  161. package/dist/test/01.contract_tx.test.d.ts +1 -0
  162. package/dist/test/01.contract_tx.test.js +157 -0
  163. package/dist/test/02.contract_query.test.d.ts +1 -0
  164. package/dist/test/02.contract_query.test.js +245 -0
  165. package/dist/test/03.contract_scenario.test.d.ts +1 -0
  166. package/dist/test/03.contract_scenario.test.js +406 -0
  167. package/dist/test/04.bank_tx.test.d.ts +1 -0
  168. package/dist/test/04.bank_tx.test.js +126 -0
  169. package/dist/test/05.bank_query.test.d.ts +1 -0
  170. package/dist/test/05.bank_query.test.js +162 -0
  171. package/dist/test/06.feegrant_tx.test.d.ts +1 -0
  172. package/dist/test/06.feegrant_tx.test.js +161 -0
  173. package/dist/test/07.feegrant_query.test.d.ts +1 -0
  174. package/dist/test/07.feegrant_query.test.js +126 -0
  175. package/dist/test/08.gas_estimate.test.d.ts +1 -0
  176. package/dist/test/08.gas_estimate.test.js +675 -0
  177. package/dist/test/09.ipfs.test.d.ts +1 -0
  178. package/dist/test/09.ipfs.test.js +72 -0
  179. package/dist/test/10.nft_tx.test.d.ts +1 -0
  180. package/dist/test/10.nft_tx.test.js +209 -0
  181. package/dist/test/11.nft_query.test.d.ts +1 -0
  182. package/dist/test/11.nft_query.test.js +165 -0
  183. package/dist/test/12.staking_tx.test.d.ts +1 -0
  184. package/dist/test/12.staking_tx.test.js +199 -0
  185. package/dist/test/13.staking_query.test.d.ts +1 -0
  186. package/dist/test/13.staking_query.test.js +263 -0
  187. package/dist/test/14.distribution_tx.test.d.ts +1 -0
  188. package/dist/test/14.distribution_tx.test.js +170 -0
  189. package/dist/test/15.distribution_query.test.d.ts +1 -0
  190. package/dist/test/15.distribution_query.test.js +243 -0
  191. package/dist/test/16.gov_tx.test.d.ts +1 -0
  192. package/dist/test/16.gov_tx.test.js +311 -0
  193. package/dist/test/17.gov_query.test.d.ts +1 -0
  194. package/dist/test/17.gov_query.test.js +157 -0
  195. package/dist/test/18.util.test.d.ts +1 -0
  196. package/dist/test/18.util.test.js +251 -0
  197. package/dist/test/19.chain.test.d.ts +1 -0
  198. package/dist/test/19.chain.test.js +127 -0
  199. package/dist/test/20.slashing_query.test.d.ts +1 -0
  200. package/dist/test/20.slashing_query.test.js +112 -0
  201. package/dist/test/21.token_tx.test.d.ts +1 -0
  202. package/dist/test/21.token_tx.test.js +149 -0
  203. package/dist/test/22.token_query.test.d.ts +1 -0
  204. package/dist/test/22.token_query.test.js +103 -0
  205. package/dist/test/23.authz_tx.test.d.ts +1 -0
  206. package/dist/test/23.authz_tx.test.js +350 -0
  207. package/dist/test/24.authz_query.test.d.ts +1 -0
  208. package/dist/test/24.authz_query.test.js +203 -0
  209. package/dist/test/25.cosmwasm_tx.test.d.ts +1 -0
  210. package/dist/test/25.cosmwasm_tx.test.js +229 -0
  211. package/dist/test/26.cosmwasm_query.test.d.ts +1 -0
  212. package/dist/test/26.cosmwasm_query.test.js +209 -0
  213. package/dist/test/27.arbitary_sign.test.d.ts +1 -0
  214. package/dist/test/27.arbitary_sign.test.js +159 -0
  215. package/dist/test/28.ibc_tx.test.d.ts +1 -0
  216. package/dist/test/28.ibc_tx.test.js +98 -0
  217. package/dist/test/29.mint_query.test.d.ts +1 -0
  218. package/dist/test/29.mint_query.test.js +59 -0
  219. package/dist/test/30.cw20_tx.test.d.ts +1 -0
  220. package/dist/test/30.cw20_tx.test.js +450 -0
  221. package/dist/test/31.cw20_query.test.d.ts +1 -0
  222. package/dist/test/31.cw20_query.test.js +333 -0
  223. package/dist/test/32.cw721_tx.test.d.ts +1 -0
  224. package/dist/test/32.cw721_tx.test.js +431 -0
  225. package/dist/test/33.cw721_query.test.d.ts +1 -0
  226. package/dist/test/33.cw721_query.test.js +371 -0
  227. package/dist/test/34.cw_bridge_tx.test.d.ts +1 -0
  228. package/dist/test/34.cw_bridge_tx.test.js +476 -0
  229. package/dist/test/35.cw_bridge_tx_low.test.d.ts +1 -0
  230. package/dist/test/35.cw_bridge_tx_low.test.js +398 -0
  231. package/dist/test/36.cw_bridge_query.test.d.ts +1 -0
  232. package/dist/test/36.cw_bridge_query.test.js +318 -0
  233. package/dist/test/37.cw_marketplace_tx.test.d.ts +1 -0
  234. package/dist/test/37.cw_marketplace_tx.test.js +794 -0
  235. package/dist/test/38.cw_marketplace_query.test.d.ts +1 -0
  236. package/dist/test/38.cw_marketplace_query.test.js +128 -0
  237. package/dist/test/config_test.d.ts +11 -0
  238. package/dist/test/config_test.js +29 -0
  239. package/dist/test/config_test.sample.d.ts +5 -0
  240. package/dist/test/config_test.sample.js +8 -0
  241. package/package.json +9 -7
  242. package/dist/sdk/firmachain/common/signingaminostargateclient.d.ts +0 -50
  243. package/dist/sdk/firmachain/common/signingaminostargateclient.js +0 -267
package/README.md CHANGED
@@ -3,12 +3,15 @@
3
3
  [![npm version](https://badge.fury.io/js/%40firmachain%2Ffirma-js.svg)](https://badge.fury.io/js/%40firmachain%2Ffirma-js)
4
4
  [![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/firmachain/firma-js)](https://github.com/firmachain/firma-js/releases)
5
5
  [![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/firmachain/firma-js/blob/master/LICENSE)
6
- ![Lines of code](https://img.shields.io/tokei/lines/github/firmachain/firma-js)
6
+ [![](https://tokei.rs/b1/github/XAMPPRocky/tokei)](https://github.com/FirmaChain/firma-js)
7
7
 
8
8
  The Javascript & TypeScript SDK for FirmaChain
9
9
 
10
10
  Firma-js is a SDK for writing applications based on javascript & typescript. You can use it client web app or Node.js. This SDK is created inspired by cosmjs and several sdk. All functions of the FirmaChain can be accessed at the service level.
11
11
 
12
+ ⚠️ We wanted to let you know that the governance module is not accessible at the moment. It requires a patch to become fully operational, which we're actively preparing. We plan to release this patch soon as part of version 0.3.1, at which point the governance module will be enabled.
13
+ A patch is planned soon to enable the governance module in version 0.3.1.
14
+
12
15
  ## Features
13
16
  Most cosmos sdk features are supported
14
17
  - Wallet / Bank
@@ -1,6 +1,6 @@
1
1
  import { FirmaWalletService } from "./FirmaWalletService";
2
2
  import { FirmaConfig } from "./FirmaConfig";
3
- import { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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
- timestamp = timestamp_1.Timestamp.fromPartial({ seconds: expirationDate.getTime() / 1000 });
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
- timestamp = timestamp_1.Timestamp.fromPartial({ seconds: expirationDate.getTime() / 1000 });
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
- timestamp = timestamp_1.Timestamp.fromPartial({ seconds: expirationDate.getTime() / 1000 });
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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
13
- send(wallet: FirmaWalletService, targetAddress: string, amount: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
14
- send_raw(wallet: FirmaWalletService, targetAddress: string, ufctAmount: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
6
+ import { DeliverTxResponse } from "./firmachain/common/stargateclient";
7
7
  export interface Cw721ExpiresAtHeight {
8
8
  at_height: number;
9
9
  }
@@ -37,6 +37,22 @@ export interface Cw721Approval {
37
37
  spender: string;
38
38
  expires: Cw721Expires;
39
39
  }
40
+ export interface Cw721Attribute {
41
+ trait_type: string;
42
+ value: string | number;
43
+ display_type?: string;
44
+ }
45
+ export interface Cw721Extension {
46
+ name: string;
47
+ description: string;
48
+ image: string;
49
+ image_data?: string;
50
+ external_url?: string;
51
+ attributes?: Cw721Attribute[];
52
+ background_color?: string;
53
+ animation_url?: string;
54
+ youtube_url?: string;
55
+ }
40
56
  export declare class Cw721MsgData {
41
57
  static getMsgDataMint(owner: string, token_id: string, token_uri: string): string;
42
58
  static getMsgDataBurn(token_id: string): string;
@@ -49,34 +65,36 @@ export declare class Cw721MsgData {
49
65
  static getMsgUpdateOwnerShipTransfer(new_owner: string, expiry: Cw721Expires): string;
50
66
  static getMsgUpdateOwnerShipAccept(): string;
51
67
  static getMsgUpdateOwnerShipRenounce(): string;
68
+ static getMsgDataMintWithExtension(owner: string, token_id: string, token_uri: string, extension: Cw721Extension): string;
52
69
  }
53
70
  export declare class FirmaCosmWasmCw721Service {
54
71
  private readonly config;
55
72
  private readonly cosmwasmService;
56
73
  constructor(config: FirmaConfig, cosmwasmService: FirmaCosmWasmService);
57
- mint(wallet: FirmaWalletService, contractAddress: string, owner: string, token_id: string, token_uri?: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
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>;
58
76
  getUnsignedTxMint(wallet: FirmaWalletService, contractAddress: string, owner: string, token_id: string, token_uri?: string): Promise<EncodeObject>;
59
- burn(wallet: FirmaWalletService, contractAddress: string, token_id: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
77
+ burn(wallet: FirmaWalletService, contractAddress: string, token_id: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
60
78
  getUnsignedTxBurn(wallet: FirmaWalletService, contractAddress: string, token_id: string): Promise<EncodeObject>;
61
- transfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, token_id: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
79
+ transfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, token_id: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
62
80
  getUnsignedTxTransfer(wallet: FirmaWalletService, contractAddress: string, recipient: string, token_id: string): Promise<EncodeObject>;
63
- approve(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, expires: Cw721Expires, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
81
+ approve(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, expires: Cw721Expires, txMisc?: TxMisc): Promise<DeliverTxResponse>;
64
82
  getUnsignedTxApprove(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, expires: Cw721Expires): Promise<EncodeObject>;
65
- revoke(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
83
+ revoke(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
66
84
  getUnsignedTxRevoke(wallet: FirmaWalletService, contractAddress: string, spender: string, token_id: string): Promise<EncodeObject>;
67
- approveAll(wallet: FirmaWalletService, contractAddress: string, operator: string, expires: Cw721Expires, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
85
+ approveAll(wallet: FirmaWalletService, contractAddress: string, operator: string, expires: Cw721Expires, txMisc?: TxMisc): Promise<DeliverTxResponse>;
68
86
  getUnsignedTxApproveAll(wallet: FirmaWalletService, contractAddress: string, operator: string, expires: Cw721Expires): Promise<EncodeObject>;
69
- revokeAll(wallet: FirmaWalletService, contractAddress: string, operator: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
87
+ revokeAll(wallet: FirmaWalletService, contractAddress: string, operator: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
70
88
  getUnsignedTxRevokeAll(wallet: FirmaWalletService, contractAddress: string, operator: string): Promise<EncodeObject>;
71
- sendNft(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, token_id: string, msg: any, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
89
+ sendNft(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, token_id: string, msg: any, txMisc?: TxMisc): Promise<DeliverTxResponse>;
72
90
  getUnsignedTxSendNft(wallet: FirmaWalletService, contractAddress: string, targetContractAddress: string, token_id: string, msg: any): Promise<EncodeObject>;
73
- updateOwnerShipTransfer(wallet: FirmaWalletService, contractAddress: string, new_owner: string, expiry: Cw721Expires, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
91
+ updateOwnerShipTransfer(wallet: FirmaWalletService, contractAddress: string, new_owner: string, expiry: Cw721Expires, txMisc?: TxMisc): Promise<DeliverTxResponse>;
74
92
  getUnsignedTxUpdateOwnerShipTransfer(wallet: FirmaWalletService, contractAddress: string, new_owner: string, expiry: Cw721Expires): Promise<EncodeObject>;
75
- updateOwnerShipAccept(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
93
+ updateOwnerShipAccept(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
76
94
  getUnsignedTxUpdateOwnerShipAccept(wallet: FirmaWalletService, contractAddress: string): Promise<EncodeObject>;
77
- updateOwnerShipRenounce(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
95
+ updateOwnerShipRenounce(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
78
96
  getUnsignedTxUpdateOwnerShipRenounce(wallet: FirmaWalletService, contractAddress: string): Promise<EncodeObject>;
79
- signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<BroadcastTxResponse>;
97
+ signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
80
98
  getGasEstimationSignAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<number>;
81
99
  getGasEstimationMint(wallet: FirmaWalletService, contractAddress: string, owner: string, token_id: string, token_uri?: string): Promise<number>;
82
100
  getGasEstimationBurn(wallet: FirmaWalletService, contractAddress: string, token_id: string): Promise<number>;
@@ -130,6 +130,16 @@ var Cw721MsgData = /** @class */ (function () {
130
130
  "update_ownership": "renounce_ownership"
131
131
  });
132
132
  };
133
+ Cw721MsgData.getMsgDataMintWithExtension = function (owner, token_id, token_uri, extension) {
134
+ return JSON.stringify({
135
+ "mint": {
136
+ token_id: token_id,
137
+ owner: owner,
138
+ extension: extension,
139
+ token_uri: token_uri
140
+ }
141
+ });
142
+ };
133
143
  return Cw721MsgData;
134
144
  }());
135
145
  exports.Cw721MsgData = Cw721MsgData;
@@ -154,6 +164,21 @@ var FirmaCosmWasmCw721Service = /** @class */ (function () {
154
164
  });
155
165
  });
156
166
  };
167
+ FirmaCosmWasmCw721Service.prototype.mintWithExtension = function (wallet, contractAddress, owner, token_id, extension, token_uri, txMisc) {
168
+ if (token_uri === void 0) { token_uri = ""; }
169
+ if (txMisc === void 0) { txMisc = FirmaUtil_1.DefaultTxMisc; }
170
+ return __awaiter(this, void 0, void 0, function () {
171
+ var msgData;
172
+ return __generator(this, function (_a) {
173
+ switch (_a.label) {
174
+ case 0:
175
+ msgData = Cw721MsgData.getMsgDataMintWithExtension(owner, token_id, token_uri, extension);
176
+ return [4 /*yield*/, this.cosmwasmService.executeContract(wallet, contractAddress, msgData, noFunds, txMisc)];
177
+ case 1: return [2 /*return*/, _a.sent()];
178
+ }
179
+ });
180
+ });
181
+ };
157
182
  FirmaCosmWasmCw721Service.prototype.getUnsignedTxMint = function (wallet, contractAddress, owner, token_id, token_uri) {
158
183
  if (token_uri === void 0) { token_uri = ""; }
159
184
  return __awaiter(this, void 0, void 0, function () {
@@ -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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
56
- purchaseSaleFCT(wallet: FirmaWalletService, contractAddress: string, tokenId: string, fctAmount: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
24
- signAndBroadcast(wallet: FirmaWalletService, msgList: EncodeObject[], txMisc?: TxMisc): Promise<BroadcastTxResponse>;
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<BroadcastTxResponse>;
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: long_1.default.fromString(codeId), label: label, msg: utfMsg, funds: funds });
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: long_1.default.fromString(codeId), msg: utfMsg });
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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
21
- fundCommunityPool(wallet: FirmaWalletService, amount: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
22
- withdrawValidatorCommission(wallet: FirmaWalletService, validatorAddres: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
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<BroadcastTxResponse>;
25
- withdrawAllRewards(wallet: FirmaWalletService, validatorAddress: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
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 { BroadcastTxResponse } from "./firmachain/common/stargateclient";
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<BroadcastTxResponse>;
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<BroadcastTxResponse>;
18
- grantBasicAllowance(wallet: FirmaWalletService, granteeAddress: string, feegrantOption?: BasicFeeGrantOption, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
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,7 +1,7 @@
1
1
  import { TxMisc, ParamChangeOption, VotingOption, ProposalInfo, ProposalStatus, ProposalParam, CurrentVoteInfo } from "./firmachain/gov";
2
2
  import { FirmaWalletService } from "./FirmaWalletService";
3
3
  import { FirmaConfig } from "./FirmaConfig";
4
- import { BroadcastTxResponse } from "./firmachain/common/stargateclient";
4
+ import { DeliverTxResponse } from "./firmachain/common/stargateclient";
5
5
  export declare class FirmaGovService {
6
6
  private readonly config;
7
7
  constructor(config: FirmaConfig);
@@ -12,21 +12,24 @@ export declare class FirmaGovService {
12
12
  getGasEstimationSubmitParameterChangeProposal(wallet: FirmaWalletService, title: string, description: string, initialDepositFCT: number, paramList: ParamChangeOption[], txMisc?: TxMisc): Promise<number>;
13
13
  getGasEstimationSubmitCommunityPoolSpendProposal(wallet: FirmaWalletService, title: string, description: string, initialDepositFCT: number, amount: number, recipient: string, txMisc?: TxMisc): Promise<number>;
14
14
  getGasEstimationSubmitTextProposal(wallet: FirmaWalletService, title: string, description: string, initialDepositFCT: number, txMisc?: TxMisc): Promise<number>;
15
+ getGasEstimationCancelProposal(wallet: FirmaWalletService, proposalId: number, txMisc?: TxMisc): Promise<number>;
15
16
  private getSignedTxSubmitTextProposal;
16
17
  private getSignedTxSubmitCancelSoftwareUpgradeProposal;
17
18
  private getSignedTxSubmitSoftwareUpgradeProposal;
18
19
  private getSignedTxSubmitParameterChangeProposal;
19
20
  private getSignedTxSubmitCommunityPoolSpendProposal;
20
- submitCancelSoftwareUpgradeProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
21
- submitSoftwareUpgradeProposalByHeight(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, upgradeName: string, height: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
22
- submitSoftwareUpgradeProposalByTime(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, upgradeName: string, upgradeTime: Date, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
23
- submitParameterChangeProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, paramList: ParamChangeOption[], txMisc?: TxMisc): Promise<BroadcastTxResponse>;
24
- submitCommunityPoolSpendProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, amount: number, recipient: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
25
- submitTextProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
21
+ private getSignedTxCancelProposal;
22
+ submitCancelSoftwareUpgradeProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
23
+ submitSoftwareUpgradeProposalByHeight(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, upgradeName: string, height: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
24
+ submitSoftwareUpgradeProposalByTime(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, upgradeName: string, upgradeTime: Date, txMisc?: TxMisc): Promise<DeliverTxResponse>;
25
+ submitParameterChangeProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, paramList: ParamChangeOption[], txMisc?: TxMisc): Promise<DeliverTxResponse>;
26
+ submitCommunityPoolSpendProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, amount: number, recipient: string, txMisc?: TxMisc): Promise<DeliverTxResponse>;
27
+ submitTextProposal(wallet: FirmaWalletService, title: string, description: string, initialDeposit: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
28
+ cancelProposal(wallet: FirmaWalletService, proposalId: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
26
29
  private getSignedTxVote;
27
- vote(wallet: FirmaWalletService, proposalId: number, option: VotingOption, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
30
+ vote(wallet: FirmaWalletService, proposalId: number, option: VotingOption, txMisc?: TxMisc): Promise<DeliverTxResponse>;
28
31
  private getSignedTxDeposit;
29
- deposit(wallet: FirmaWalletService, proposalId: number, amount: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
32
+ deposit(wallet: FirmaWalletService, proposalId: number, amount: number, txMisc?: TxMisc): Promise<DeliverTxResponse>;
30
33
  getCurrentVoteInfo(id: string): Promise<CurrentVoteInfo>;
31
34
  getParam(): Promise<ProposalParam>;
32
35
  getProposal(id: string): Promise<ProposalInfo>;