@firmachain/firma-js 0.2.29 → 0.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk/FirmaAuthzService.d.ts +41 -0
- package/dist/sdk/FirmaAuthzService.js +633 -0
- package/dist/sdk/FirmaBankService.d.ts +2 -1
- package/dist/sdk/FirmaBankService.js +3 -0
- package/dist/sdk/FirmaCosmWasmService.d.ts +38 -0
- package/dist/sdk/FirmaCosmWasmService.js +667 -0
- package/dist/sdk/FirmaDistributionService.d.ts +2 -1
- package/dist/sdk/FirmaDistributionService.js +3 -0
- package/dist/sdk/FirmaIbcService.d.ts +15 -0
- package/dist/sdk/FirmaIbcService.js +144 -0
- package/dist/sdk/FirmaMobileSDK.d.ts +3 -1
- package/dist/sdk/FirmaMobileSDK.js +4 -1
- package/dist/sdk/FirmaSDK.d.ts +7 -1
- package/dist/sdk/FirmaSDK.js +10 -1
- package/dist/sdk/FirmaStakingService.d.ts +18 -5
- package/dist/sdk/FirmaStakingService.js +15 -8
- package/dist/sdk/FirmaUtil.d.ts +7 -0
- package/dist/sdk/FirmaUtil.js +69 -1
- package/dist/sdk/FirmaWalletService.d.ts +3 -0
- package/dist/sdk/FirmaWalletService.js +18 -10
- package/dist/sdk/firmachain/amino/signer.d.ts +1 -2
- package/dist/sdk/firmachain/authz/AuthzQueryClient.d.ts +48 -0
- package/dist/sdk/firmachain/authz/AuthzQueryClient.js +142 -0
- package/dist/sdk/firmachain/authz/AuthzTxClient.d.ts +22 -0
- package/dist/sdk/firmachain/authz/AuthzTxClient.js +44 -0
- package/dist/sdk/firmachain/authz/AuthzTxTypes.d.ts +147 -0
- package/dist/sdk/firmachain/authz/AuthzTxTypes.js +358 -0
- package/dist/sdk/firmachain/authz/index.d.ts +3 -0
- package/dist/sdk/firmachain/authz/index.js +15 -0
- package/dist/sdk/firmachain/common/ITxClient.d.ts +3 -0
- package/dist/sdk/firmachain/common/ITxClient.js +9 -0
- package/dist/sdk/firmachain/common/signingaminostargateclient.d.ts +50 -0
- package/dist/sdk/firmachain/common/signingaminostargateclient.js +267 -0
- package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.d.ts +52 -0
- package/dist/sdk/firmachain/cosmwasm/CosmWasmQueryClient.js +193 -0
- package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.d.ts +37 -0
- package/dist/sdk/firmachain/cosmwasm/CosmWasmTxClient.js +56 -0
- package/dist/sdk/firmachain/cosmwasm/index.d.ts +3 -0
- package/dist/sdk/firmachain/cosmwasm/index.js +15 -0
- package/dist/sdk/firmachain/ibc/IbcQueryClient.d.ts +34 -0
- package/dist/sdk/firmachain/ibc/IbcQueryClient.js +71 -0
- package/dist/sdk/firmachain/ibc/IbcTxClient.d.ts +12 -0
- package/dist/sdk/firmachain/ibc/IbcTxClient.js +36 -0
- package/dist/sdk/firmachain/ibc/index.d.ts +3 -0
- package/dist/sdk/firmachain/ibc/index.js +15 -0
- package/dist/sdk/firmachain/staking/StakingQueryClient.d.ts +17 -4
- package/dist/sdk/firmachain/staking/StakingQueryClient.js +38 -18
- package/package.json +4 -2
- package/dist/sdk/firmachain/amino/secp256k1hdwallet.d.ts +0 -94
- package/dist/sdk/firmachain/amino/secp256k1hdwallet.js +0 -437
- package/dist/sdk/firmachain/amino/secp256k1wallet.d.ts +0 -23
- package/dist/sdk/firmachain/amino/secp256k1wallet.js +0 -141
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { TxMisc, Token } from "./firmachain/bank";
|
|
1
|
+
import { BankTxClient, TxMisc, Token } from "./firmachain/bank";
|
|
2
2
|
import { FirmaWalletService } from "./FirmaWalletService";
|
|
3
3
|
import { FirmaConfig } from "./FirmaConfig";
|
|
4
4
|
import { BroadcastTxResponse } from "./firmachain/common/stargateclient";
|
|
5
5
|
export declare class FirmaBankService {
|
|
6
6
|
private readonly config;
|
|
7
7
|
constructor(config: FirmaConfig);
|
|
8
|
+
getTxClient(wallet: FirmaWalletService): BankTxClient;
|
|
8
9
|
getGasEstimationSend(wallet: FirmaWalletService, targetAddress: string, amount: number, txMisc?: TxMisc): Promise<number>;
|
|
9
10
|
getGasEstimationSendToken(wallet: FirmaWalletService, targetAddress: string, tokenID: string, amount: number, decimal: number, txMisc?: TxMisc): Promise<number>;
|
|
10
11
|
sendToken(wallet: FirmaWalletService, targetAddress: string, tokenID: string, amount: number, decimal: number, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
|
|
@@ -43,6 +43,9 @@ var FirmaBankService = /** @class */ (function () {
|
|
|
43
43
|
function FirmaBankService(config) {
|
|
44
44
|
this.config = config;
|
|
45
45
|
}
|
|
46
|
+
FirmaBankService.prototype.getTxClient = function (wallet) {
|
|
47
|
+
return new bank_1.BankTxClient(wallet, this.config.rpcAddress);
|
|
48
|
+
};
|
|
46
49
|
FirmaBankService.prototype.getGasEstimationSend = function (wallet, targetAddress, amount, txMisc) {
|
|
47
50
|
if (txMisc === void 0) { txMisc = FirmaUtil_1.DefaultTxMisc; }
|
|
48
51
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CosmWasmTxClient, TxMisc, CodeInfo, CodeData, ContractInfo, ContractHistoryInfo, ContractStateInfo } from "./firmachain/cosmwasm";
|
|
2
|
+
import { FirmaWalletService } from "./FirmaWalletService";
|
|
3
|
+
import { FirmaConfig } from "./FirmaConfig";
|
|
4
|
+
import { BroadcastTxResponse } from "./firmachain/common/stargateclient";
|
|
5
|
+
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
6
|
+
import { AccessConfig } from "cosmjs-types/cosmwasm/wasm/v1/types";
|
|
7
|
+
export declare class FirmaCosmWasmService {
|
|
8
|
+
private readonly config;
|
|
9
|
+
constructor(config: FirmaConfig);
|
|
10
|
+
getTxClient(wallet: FirmaWalletService): CosmWasmTxClient;
|
|
11
|
+
getGasEstimationStoreCode(wallet: FirmaWalletService, wasmCode: Uint8Array, accessConfig: AccessConfig, txMisc?: TxMisc): Promise<number>;
|
|
12
|
+
storeCode(wallet: FirmaWalletService, wasmCode: Uint8Array, accessConfig: AccessConfig, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
|
|
13
|
+
getGasEstimationUpdateAdmin(wallet: FirmaWalletService, contractAddress: string, adminAddress: string, txMisc?: TxMisc): Promise<number>;
|
|
14
|
+
updateAdmin(wallet: FirmaWalletService, contractAddress: string, adminAddress: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
|
|
15
|
+
getGasEstimationClearAdmin(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<number>;
|
|
16
|
+
clearAdmin(wallet: FirmaWalletService, contractAddress: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
|
|
17
|
+
getGasEstimationMigrateContract(wallet: FirmaWalletService, contractAddress: string, codeId: string, msg: string, txMisc?: TxMisc): Promise<number>;
|
|
18
|
+
migrateContract(wallet: FirmaWalletService, contractAddress: string, codeId: string, msg: string, txMisc?: TxMisc): Promise<BroadcastTxResponse>;
|
|
19
|
+
getGasEstimationExecuteContract(wallet: FirmaWalletService, contractAddress: string, msg: string, funds?: Coin[], txMisc?: TxMisc): Promise<number>;
|
|
20
|
+
executeContract(wallet: FirmaWalletService, contractAddress: string, msg: string, funds?: Coin[], txMisc?: TxMisc): Promise<BroadcastTxResponse>;
|
|
21
|
+
getGasEstimationInstantiateContract(wallet: FirmaWalletService, admin: string, codeId: string, label: string, msg: string, funds: Coin[], txMisc?: TxMisc): Promise<number>;
|
|
22
|
+
instantiateContract(wallet: FirmaWalletService, admin: string, codeId: string, label: string, msg: string, funds: Coin[], txMisc?: TxMisc): Promise<BroadcastTxResponse>;
|
|
23
|
+
private getSignedTxInstantiateContract;
|
|
24
|
+
private getSignedTxUpdateAdmin;
|
|
25
|
+
private getSignedTxClearAdmin;
|
|
26
|
+
private getSignedTxMigrateContract;
|
|
27
|
+
private getSignedTxExecuteContract;
|
|
28
|
+
private getSignedTxStoreCode;
|
|
29
|
+
getCodeList(): Promise<CodeInfo[]>;
|
|
30
|
+
getCodeData(codeId: string): Promise<CodeData>;
|
|
31
|
+
getContractListFromCodeId(codeId: string): Promise<string[]>;
|
|
32
|
+
getContractInfo(codeId: string): Promise<ContractInfo>;
|
|
33
|
+
getContractHistory(codeId: string): Promise<ContractHistoryInfo[]>;
|
|
34
|
+
getContractRawQueryData(contractAddress: string, hexString: string): Promise<string>;
|
|
35
|
+
getContractSmartQueryData(contractAddress: string, query: string): Promise<string>;
|
|
36
|
+
getContractState(codeId: string): Promise<ContractStateInfo[]>;
|
|
37
|
+
getPinnedCodeList(): Promise<string[]>;
|
|
38
|
+
}
|