@firmachain/firma-js 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/sdk/FirmaMobileSDK.d.ts +27 -0
- package/dist/sdk/FirmaMobileSDK.js +45 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -11,5 +11,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./sdk/FirmaSDK"), exports);
|
|
14
|
+
__exportStar(require("./sdk/FirmaMobileSDK"), exports);
|
|
14
15
|
__exportStar(require("./sdk/FirmaConfig"), exports);
|
|
15
16
|
__exportStar(require("./sdk/FirmaUtil"), exports);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FirmaConfig } from "./FirmaConfig";
|
|
2
|
+
import { FirmaBankService } from "./FirmaBankService";
|
|
3
|
+
import { FirmaFeeGrantService } from "./FirmaFeeGrantService";
|
|
4
|
+
import { FirmaStakingService } from "./FirmaStakingService";
|
|
5
|
+
import { FirmaDistributionService } from "./FirmaDistributionService";
|
|
6
|
+
import { NftService } from "./FirmaNftService";
|
|
7
|
+
import { TokenService } from "./FirmaTokenService";
|
|
8
|
+
import { ContractService } from "./FirmaContractService";
|
|
9
|
+
import { FirmaWalletService } from "./FirmaWalletService";
|
|
10
|
+
import { FirmaGovService } from "./FirmaGovService";
|
|
11
|
+
import { ChainService } from "./FirmaChainService";
|
|
12
|
+
import { SlashingService } from "./FirmaSlashingService";
|
|
13
|
+
export declare class FirmaMobileSDK {
|
|
14
|
+
Config: FirmaConfig;
|
|
15
|
+
Wallet: FirmaWalletService;
|
|
16
|
+
Bank: FirmaBankService;
|
|
17
|
+
FeeGrant: FirmaFeeGrantService;
|
|
18
|
+
Staking: FirmaStakingService;
|
|
19
|
+
Distribution: FirmaDistributionService;
|
|
20
|
+
Gov: FirmaGovService;
|
|
21
|
+
Nft: NftService;
|
|
22
|
+
Token: TokenService;
|
|
23
|
+
Contract: ContractService;
|
|
24
|
+
BlockChain: ChainService;
|
|
25
|
+
Slashing: SlashingService;
|
|
26
|
+
constructor(Config: FirmaConfig, Wallet?: FirmaWalletService, Bank?: FirmaBankService, FeeGrant?: FirmaFeeGrantService, Staking?: FirmaStakingService, Distribution?: FirmaDistributionService, Gov?: FirmaGovService, Nft?: NftService, Token?: TokenService, Contract?: ContractService, BlockChain?: ChainService, Slashing?: SlashingService);
|
|
27
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FirmaMobileSDK = void 0;
|
|
4
|
+
var FirmaBankService_1 = require("./FirmaBankService");
|
|
5
|
+
var FirmaFeeGrantService_1 = require("./FirmaFeeGrantService");
|
|
6
|
+
var FirmaStakingService_1 = require("./FirmaStakingService");
|
|
7
|
+
var FirmaDistributionService_1 = require("./FirmaDistributionService");
|
|
8
|
+
var FirmaNftService_1 = require("./FirmaNftService");
|
|
9
|
+
var FirmaTokenService_1 = require("./FirmaTokenService");
|
|
10
|
+
var FirmaContractService_1 = require("./FirmaContractService");
|
|
11
|
+
var FirmaWalletService_1 = require("./FirmaWalletService");
|
|
12
|
+
var FirmaUtil_1 = require("./FirmaUtil");
|
|
13
|
+
var FirmaGovService_1 = require("./FirmaGovService");
|
|
14
|
+
var FirmaChainService_1 = require("./FirmaChainService");
|
|
15
|
+
var FirmaSlashingService_1 = require("./FirmaSlashingService");
|
|
16
|
+
var FirmaMobileSDK = /** @class */ (function () {
|
|
17
|
+
function FirmaMobileSDK(Config, Wallet, Bank, FeeGrant, Staking, Distribution, Gov, Nft, Token, Contract, BlockChain, Slashing) {
|
|
18
|
+
if (Wallet === void 0) { Wallet = new FirmaWalletService_1.FirmaWalletService(Config); }
|
|
19
|
+
if (Bank === void 0) { Bank = new FirmaBankService_1.FirmaBankService(Config); }
|
|
20
|
+
if (FeeGrant === void 0) { FeeGrant = new FirmaFeeGrantService_1.FirmaFeeGrantService(Config); }
|
|
21
|
+
if (Staking === void 0) { Staking = new FirmaStakingService_1.FirmaStakingService(Config); }
|
|
22
|
+
if (Distribution === void 0) { Distribution = new FirmaDistributionService_1.FirmaDistributionService(Config); }
|
|
23
|
+
if (Gov === void 0) { Gov = new FirmaGovService_1.FirmaGovService(Config); }
|
|
24
|
+
if (Nft === void 0) { Nft = new FirmaNftService_1.NftService(Config); }
|
|
25
|
+
if (Token === void 0) { Token = new FirmaTokenService_1.TokenService(Config); }
|
|
26
|
+
if (Contract === void 0) { Contract = new FirmaContractService_1.ContractService(Config); }
|
|
27
|
+
if (BlockChain === void 0) { BlockChain = new FirmaChainService_1.ChainService(Config); }
|
|
28
|
+
if (Slashing === void 0) { Slashing = new FirmaSlashingService_1.SlashingService(Config); }
|
|
29
|
+
this.Config = Config;
|
|
30
|
+
this.Wallet = Wallet;
|
|
31
|
+
this.Bank = Bank;
|
|
32
|
+
this.FeeGrant = FeeGrant;
|
|
33
|
+
this.Staking = Staking;
|
|
34
|
+
this.Distribution = Distribution;
|
|
35
|
+
this.Gov = Gov;
|
|
36
|
+
this.Nft = Nft;
|
|
37
|
+
this.Token = Token;
|
|
38
|
+
this.Contract = Contract;
|
|
39
|
+
this.BlockChain = BlockChain;
|
|
40
|
+
this.Slashing = Slashing;
|
|
41
|
+
FirmaUtil_1.FirmaUtil.config = Config;
|
|
42
|
+
}
|
|
43
|
+
return FirmaMobileSDK;
|
|
44
|
+
}());
|
|
45
|
+
exports.FirmaMobileSDK = FirmaMobileSDK;
|