@tech-bureau/mijin-catapult-tools 0.2.4 → 0.2.6
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 +20 -0
- package/bin/mijin-catapult-tools.js +14 -0
- package/dist/main.js +1 -1
- package/package.json +5 -2
- package/src/infrastructure/transaction/transactionStatus.ts +1 -0
- package/src/service/RepositoryFactory.ts +27 -3
- package/webpack.config.js +3 -0
- package/.yarnrc +0 -2
- package/dist/.env/prod.d.ts +0 -25
- package/dist/.env/prod.d.ts.map +0 -1
- package/dist/main.js.LICENSE.txt +0 -176
- package/dist/src/__tests__/service/AccountServices.spec.d.ts +0 -2
- package/dist/src/__tests__/service/AccountServices.spec.d.ts.map +0 -1
- package/dist/src/__tests__/service/CertificateServices.spec.d.ts +0 -2
- package/dist/src/__tests__/service/CertificateServices.spec.d.ts.map +0 -1
- package/dist/src/__tests__/service/MessageServices.spec.d.ts +0 -2
- package/dist/src/__tests__/service/MessageServices.spec.d.ts.map +0 -1
- package/dist/src/__tests__/service/MosaicServices.spec.d.ts +0 -2
- package/dist/src/__tests__/service/MosaicServices.spec.d.ts.map +0 -1
- package/dist/src/__tests__/service/NamespaceServices.spec.d.ts +0 -2
- package/dist/src/__tests__/service/NamespaceServices.spec.d.ts.map +0 -1
- package/dist/src/__tests__/service/TransactionCheckServices.spec.d.ts +0 -2
- package/dist/src/__tests__/service/TransactionCheckServices.spec.d.ts.map +0 -1
- package/dist/src/cli.d.ts +0 -2
- package/dist/src/cli.d.ts.map +0 -1
- package/dist/src/commands/account/account.d.ts +0 -4
- package/dist/src/commands/account/account.d.ts.map +0 -1
- package/dist/src/commands/account/accountGenerate.d.ts +0 -4
- package/dist/src/commands/account/accountGenerate.d.ts.map +0 -1
- package/dist/src/commands/account/accountInfo.d.ts +0 -4
- package/dist/src/commands/account/accountInfo.d.ts.map +0 -1
- package/dist/src/commands/mosaic/mosaic.d.ts +0 -4
- package/dist/src/commands/mosaic/mosaic.d.ts.map +0 -1
- package/dist/src/commands/mosaic/mosaicCreate.d.ts +0 -4
- package/dist/src/commands/mosaic/mosaicCreate.d.ts.map +0 -1
- package/dist/src/commands/mosaic/mosaicInfo.d.ts +0 -4
- package/dist/src/commands/mosaic/mosaicInfo.d.ts.map +0 -1
- package/dist/src/commands/namespace/linkAddress.d.ts +0 -4
- package/dist/src/commands/namespace/linkAddress.d.ts.map +0 -1
- package/dist/src/commands/namespace/linkMosaic.d.ts +0 -4
- package/dist/src/commands/namespace/linkMosaic.d.ts.map +0 -1
- package/dist/src/commands/namespace/namespace.d.ts +0 -4
- package/dist/src/commands/namespace/namespace.d.ts.map +0 -1
- package/dist/src/commands/namespace/namespaceInfo.d.ts +0 -4
- package/dist/src/commands/namespace/namespaceInfo.d.ts.map +0 -1
- package/dist/src/commands/namespace/rootNamespaceCreate.d.ts +0 -4
- package/dist/src/commands/namespace/rootNamespaceCreate.d.ts.map +0 -1
- package/dist/src/commands/namespace/subNamespaceCreate.d.ts +0 -4
- package/dist/src/commands/namespace/subNamespaceCreate.d.ts.map +0 -1
- package/dist/src/commands/namespace/unlinkAddress.d.ts +0 -4
- package/dist/src/commands/namespace/unlinkAddress.d.ts.map +0 -1
- package/dist/src/commands/namespace/unlinkMosaic.d.ts +0 -4
- package/dist/src/commands/namespace/unlinkMosaic.d.ts.map +0 -1
- package/dist/src/commands/transaction/transaction.d.ts +0 -4
- package/dist/src/commands/transaction/transaction.d.ts.map +0 -1
- package/dist/src/commands/transaction/transactionStatus.d.ts +0 -4
- package/dist/src/commands/transaction/transactionStatus.d.ts.map +0 -1
- package/dist/src/commands/transaction/transfer.d.ts +0 -4
- package/dist/src/commands/transaction/transfer.d.ts.map +0 -1
- package/dist/src/commands/votingkey/votingkey.d.ts +0 -4
- package/dist/src/commands/votingkey/votingkey.d.ts.map +0 -1
- package/dist/src/commands/votingkey/votingkeyCreate.d.ts +0 -4
- package/dist/src/commands/votingkey/votingkeyCreate.d.ts.map +0 -1
- package/dist/src/commands/votingkey/votingkeyInfo.d.ts +0 -4
- package/dist/src/commands/votingkey/votingkeyInfo.d.ts.map +0 -1
- package/dist/src/commands/votingkey/votingkeyUpdate.d.ts +0 -4
- package/dist/src/commands/votingkey/votingkeyUpdate.d.ts.map +0 -1
- package/dist/src/constants.d.ts +0 -20
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/infrastructure/account/accountGenerate.d.ts +0 -4
- package/dist/src/infrastructure/account/accountGenerate.d.ts.map +0 -1
- package/dist/src/infrastructure/account/accountInfo.d.ts +0 -4
- package/dist/src/infrastructure/account/accountInfo.d.ts.map +0 -1
- package/dist/src/infrastructure/mosaic/mosaicCreate.d.ts +0 -4
- package/dist/src/infrastructure/mosaic/mosaicCreate.d.ts.map +0 -1
- package/dist/src/infrastructure/mosaic/mosaicInfo.d.ts +0 -4
- package/dist/src/infrastructure/mosaic/mosaicInfo.d.ts.map +0 -1
- package/dist/src/infrastructure/namespace/linkAddress.d.ts +0 -4
- package/dist/src/infrastructure/namespace/linkAddress.d.ts.map +0 -1
- package/dist/src/infrastructure/namespace/linkMosaic.d.ts +0 -4
- package/dist/src/infrastructure/namespace/linkMosaic.d.ts.map +0 -1
- package/dist/src/infrastructure/namespace/namespaceInfo.d.ts +0 -4
- package/dist/src/infrastructure/namespace/namespaceInfo.d.ts.map +0 -1
- package/dist/src/infrastructure/namespace/rootNamespaceCreate.d.ts +0 -4
- package/dist/src/infrastructure/namespace/rootNamespaceCreate.d.ts.map +0 -1
- package/dist/src/infrastructure/namespace/subNamespaceCreate.d.ts +0 -4
- package/dist/src/infrastructure/namespace/subNamespaceCreate.d.ts.map +0 -1
- package/dist/src/infrastructure/namespace/unlinkAddress.d.ts +0 -4
- package/dist/src/infrastructure/namespace/unlinkAddress.d.ts.map +0 -1
- package/dist/src/infrastructure/namespace/unlinkMosaic.d.ts +0 -4
- package/dist/src/infrastructure/namespace/unlinkMosaic.d.ts.map +0 -1
- package/dist/src/infrastructure/transaction/transactionStatus.d.ts +0 -4
- package/dist/src/infrastructure/transaction/transactionStatus.d.ts.map +0 -1
- package/dist/src/infrastructure/transaction/transfer.d.ts +0 -4
- package/dist/src/infrastructure/transaction/transfer.d.ts.map +0 -1
- package/dist/src/infrastructure/voting/votingCreate.d.ts +0 -4
- package/dist/src/infrastructure/voting/votingCreate.d.ts.map +0 -1
- package/dist/src/infrastructure/voting/votingInfo.d.ts +0 -4
- package/dist/src/infrastructure/voting/votingInfo.d.ts.map +0 -1
- package/dist/src/infrastructure/voting/votingUpdate.d.ts +0 -4
- package/dist/src/infrastructure/voting/votingUpdate.d.ts.map +0 -1
- package/dist/src/service/AccountServices.d.ts +0 -31
- package/dist/src/service/AccountServices.d.ts.map +0 -1
- package/dist/src/service/CertificateServices.d.ts +0 -23
- package/dist/src/service/CertificateServices.d.ts.map +0 -1
- package/dist/src/service/CmdServices.d.ts +0 -5
- package/dist/src/service/CmdServices.d.ts.map +0 -1
- package/dist/src/service/Logger.d.ts +0 -6
- package/dist/src/service/Logger.d.ts.map +0 -1
- package/dist/src/service/MessageServices.d.ts +0 -9
- package/dist/src/service/MessageServices.d.ts.map +0 -1
- package/dist/src/service/MosaicServices.d.ts +0 -18
- package/dist/src/service/MosaicServices.d.ts.map +0 -1
- package/dist/src/service/NamespaceServices.d.ts +0 -21
- package/dist/src/service/NamespaceServices.d.ts.map +0 -1
- package/dist/src/service/RepositoryFactory.d.ts +0 -26
- package/dist/src/service/RepositoryFactory.d.ts.map +0 -1
- package/dist/src/service/TransactionCheckServices.d.ts +0 -8
- package/dist/src/service/TransactionCheckServices.d.ts.map +0 -1
- package/dist/src/service/TransactionServices.d.ts +0 -26
- package/dist/src/service/TransactionServices.d.ts.map +0 -1
- package/dist/src/service/VotingServices.d.ts +0 -29
- package/dist/src/service/VotingServices.d.ts.map +0 -1
- package/dist/src/types/AccountInfo.d.ts +0 -20
- package/dist/src/types/AccountInfo.d.ts.map +0 -1
- package/dist/src/types/AccountType.d.ts +0 -10
- package/dist/src/types/AccountType.d.ts.map +0 -1
- package/dist/src/types/ConfigFile.d.ts +0 -25
- package/dist/src/types/ConfigFile.d.ts.map +0 -1
- package/dist/src/types/Environment.d.ts +0 -6
- package/dist/src/types/Environment.d.ts.map +0 -1
- package/dist/src/types/IAccountOption.d.ts +0 -18
- package/dist/src/types/IAccountOption.d.ts.map +0 -1
- package/dist/src/types/ILinkOption.d.ts +0 -4
- package/dist/src/types/ILinkOption.d.ts.map +0 -1
- package/dist/src/types/IMosaicOption.d.ts +0 -20
- package/dist/src/types/IMosaicOption.d.ts.map +0 -1
- package/dist/src/types/INamespaceOption.d.ts +0 -19
- package/dist/src/types/INamespaceOption.d.ts.map +0 -1
- package/dist/src/types/ITransactionOption.d.ts +0 -8
- package/dist/src/types/ITransactionOption.d.ts.map +0 -1
- package/dist/src/types/ITransferOption.d.ts +0 -11
- package/dist/src/types/ITransferOption.d.ts.map +0 -1
- package/dist/src/types/IVotingOption.d.ts +0 -25
- package/dist/src/types/IVotingOption.d.ts.map +0 -1
- package/dist/src/types/TransactionInfoDto.d.ts +0 -128
- package/dist/src/types/TransactionInfoDto.d.ts.map +0 -1
- package/dist/src/types/index.d.ts +0 -11
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/utils.d.ts +0 -9
- package/dist/src/utils.d.ts.map +0 -1
- package/src/.yarnrc +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accountInfo.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/account/accountInfo.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;iCAMlB,kBAAkB;AAAhD,wBAiJC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mosaicCreate.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/mosaic/mosaicCreate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;iCAQnB,mBAAmB;AAAjD,wBAqJC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mosaicInfo.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/mosaic/mosaicInfo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAc,MAAM,aAAa,CAAA;iCAO7B,iBAAiB;AAA/C,wBA+BC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linkAddress.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/namespace/linkAddress.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;iCAQtB,sBAAsB;AAApD,wBAmHC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linkMosaic.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/namespace/linkMosaic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;iCAQtB,sBAAsB;AAApD,wBAmHC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespaceInfo.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/namespace/namespaceInfo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;iCAOpB,oBAAoB;AAAlD,wBAmCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rootNamespaceCreate.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/namespace/rootNamespaceCreate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;iCAQtB,sBAAsB;AAApD,wBA2HC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subNamespaceCreate.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/namespace/subNamespaceCreate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;iCAQtB,sBAAsB;AAApD,wBA4HC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unlinkAddress.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/namespace/unlinkAddress.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;iCAQtB,sBAAsB;AAApD,wBAmHC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unlinkMosaic.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/namespace/unlinkMosaic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;iCAQtB,sBAAsB;AAApD,wBAmHC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transactionStatus.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/transaction/transactionStatus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;iCAYxB,wBAAwB;AAAtD,wBAuFC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/transaction/transfer.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;iCAMf,eAAe;AAA7C,wBAiKC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"votingCreate.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/voting/votingCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;iCASnB,mBAAmB;AAAjD,wBAsFC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"votingInfo.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/voting/votingInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;iCAQjB,iBAAiB;AAA/C,wBAmCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"votingUpdate.d.ts","sourceRoot":"","sources":["../../../../src/infrastructure/voting/votingUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;iCASnB,mBAAmB;AAAjD,wBAkFC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Account, AccountInfo, AccountRepository, Address, NetworkCurrencies, NetworkType, PublicAccount } from '@tech-bureau/symbol-sdk';
|
|
2
|
-
export default class AccountServices {
|
|
3
|
-
constructor();
|
|
4
|
-
static generate(networkType: NetworkType): Account;
|
|
5
|
-
static createPublicAccount(publicKey: string, networkType: NetworkType): PublicAccount;
|
|
6
|
-
static createAccount(privateKey: string, networkType: NetworkType): Account;
|
|
7
|
-
static createAddress(address: string): Address;
|
|
8
|
-
static createPublicAccountArray(publicKeys: string[], networkType: NetworkType): Address[];
|
|
9
|
-
static addressInfo(address: Address, accountRepository: AccountRepository): Promise<AccountInfo>;
|
|
10
|
-
static accountInfo(account: AccountInfo, currency: NetworkCurrencies): {
|
|
11
|
-
publicKey: string;
|
|
12
|
-
address: string;
|
|
13
|
-
mosaics: {
|
|
14
|
-
id: string;
|
|
15
|
-
amount: string;
|
|
16
|
-
currency: boolean | undefined;
|
|
17
|
-
harvest: boolean | undefined;
|
|
18
|
-
}[];
|
|
19
|
-
keylink: {
|
|
20
|
-
vrf: {
|
|
21
|
-
publicKey: string;
|
|
22
|
-
};
|
|
23
|
-
voting: {
|
|
24
|
-
publicKey: string;
|
|
25
|
-
startEpoch: string | number;
|
|
26
|
-
endEpoch: string | number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=AccountServices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServices.d.ts","sourceRoot":"","sources":["../../../src/service/AccountServices.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,aAAa,EACd,MAAM,yBAAyB,CAAA;AAGhC,MAAM,CAAC,OAAO,OAAO,eAAe;;IAGlC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO;IAIlD,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG,aAAa;IAItF,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW;IAIjE,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM;IAIpC,MAAM,CAAC,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,WAAW;WAIjE,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB;IAQ/E,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;CAyBrE"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export default class CertificateServices {
|
|
2
|
-
constructor();
|
|
3
|
-
create(commonName: string, nodeName: string, days: number): {
|
|
4
|
-
ca: {
|
|
5
|
-
privateKeyPem: any;
|
|
6
|
-
publicKeyPem: any;
|
|
7
|
-
certPem: string;
|
|
8
|
-
publicKey: string;
|
|
9
|
-
privateKey: string;
|
|
10
|
-
};
|
|
11
|
-
client: {
|
|
12
|
-
privateKeyPem: any;
|
|
13
|
-
certPem: string;
|
|
14
|
-
publicKey: string;
|
|
15
|
-
privateKey: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
private generateKeyPairEd25519;
|
|
19
|
-
private createCert;
|
|
20
|
-
private createCertRequest;
|
|
21
|
-
private keyBufferToHex;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=CertificateServices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CertificateServices.d.ts","sourceRoot":"","sources":["../../../src/service/CertificateServices.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,OAAO,mBAAmB;;IAGtC,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;IAwGzD,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,UAAU;IA2BlB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,cAAc;CAYvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CmdServices.d.ts","sourceRoot":"","sources":["../../../src/service/CmdServices.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,WAAW;;IAG9B,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;CAW3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../src/service/Logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAgB;WAE/B,SAAS,IAAI,MAAM;CAclC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Account, Message, PublicAccount } from '@tech-bureau/symbol-sdk';
|
|
2
|
-
export default class MessageServices {
|
|
3
|
-
constructor();
|
|
4
|
-
static createPlain(message: string): Message;
|
|
5
|
-
static createEncrypt(message: string, publicAccount: PublicAccount, privateKey: string): Message;
|
|
6
|
-
static createDecrypt(message: Message, publicAccount: PublicAccount, account: Account): Message;
|
|
7
|
-
static createRaw(buffer: Uint8Array): Message;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=MessageServices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessageServices.d.ts","sourceRoot":"","sources":["../../../src/service/MessageServices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAoB,OAAO,EAAgB,aAAa,EAAc,MAAM,yBAAyB,CAAA;AAErH,MAAM,CAAC,OAAO,OAAO,eAAe;;IAGlC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAI5C,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO;IAIhG,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO;IAI/F,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO;CAG9C"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Currency, Mosaic, MosaicId, MosaicNonce, Address, MosaicFlags, MosaicRepository, MosaicInfo } from '@tech-bureau/symbol-sdk';
|
|
2
|
-
export default class MosaicServices {
|
|
3
|
-
constructor();
|
|
4
|
-
static create(mosaicId: string, amount: number): Mosaic;
|
|
5
|
-
static createCurencyToAbsolute(currency: Currency, amount: number): Mosaic;
|
|
6
|
-
static createCurencyToRelative(currency: Currency, amount: number): Mosaic;
|
|
7
|
-
static createMosaicId(nonce: MosaicNonce, address: Address): MosaicId;
|
|
8
|
-
static createMosaicNonce(): MosaicNonce;
|
|
9
|
-
static createMosaicFlags(supplyMutable: boolean, transferable: boolean, restrictable?: boolean | undefined, revokable?: boolean | undefined): MosaicFlags;
|
|
10
|
-
static getMosaic(mosaicId: string, mosaicRepository: MosaicRepository): Promise<MosaicInfo>;
|
|
11
|
-
static mosaicInfo(mosaicInfo: MosaicInfo): {
|
|
12
|
-
ownerAddress: string;
|
|
13
|
-
mosaicId: string;
|
|
14
|
-
supply: number;
|
|
15
|
-
divisibility: number;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=MosaicServices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MosaicServices.d.ts","sourceRoot":"","sources":["../../../src/service/MosaicServices.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,EAER,WAAW,EACX,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,UAAU,EACX,MAAM,yBAAyB,CAAA;AAGhC,MAAM,CAAC,OAAO,OAAO,cAAc;;IAGjC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAI9C,MAAM,CAAC,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM;IAIjE,MAAM,CAAC,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM;IAIjE,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO;IAI1D,MAAM,CAAC,iBAAiB;IAIxB,MAAM,CAAC,iBAAiB,CACtB,aAAa,EAAE,OAAO,EACtB,YAAY,EAAE,OAAO,EACrB,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,EAClC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS;WAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB;IAQ3E,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU;;;;;;CAQzC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NetworkType, NamespaceId, NamespaceRepository, NamespaceInfo, AliasTransaction } from '@tech-bureau/symbol-sdk';
|
|
2
|
-
export default class NamespaceServices {
|
|
3
|
-
constructor();
|
|
4
|
-
static createRootNamespace(epoch: number, name: string, duration: number, networkType: NetworkType, feeMultiplier: number): import("@tech-bureau/symbol-sdk").Transaction | null;
|
|
5
|
-
static createSubNamespace(epoch: number, name: string, parentName: string, networkType: NetworkType, feeMultiplier: number): import("@tech-bureau/symbol-sdk").Transaction | null;
|
|
6
|
-
static linkMosaic(epoch: number, namespaceId: string, mosaicId: string, networkType: NetworkType, feeMultiplier: number): AliasTransaction | null;
|
|
7
|
-
static unLinkMosaic(epoch: number, namespaceId: string, mosaicId: string, networkType: NetworkType, feeMultiplier: number): AliasTransaction | null;
|
|
8
|
-
static linkAddress(epoch: number, namespaceId: string, address: string, networkType: NetworkType, feeMultiplier: number): import("@tech-bureau/symbol-sdk").Transaction | null;
|
|
9
|
-
static unLinkAddress(epoch: number, namespaceId: string, address: string, networkType: NetworkType, feeMultiplier: number): import("@tech-bureau/symbol-sdk").Transaction | null;
|
|
10
|
-
static getNamespaceId(id: string): NamespaceId | null;
|
|
11
|
-
static getNamespace(namespaceId: string, namespaceRepository: NamespaceRepository): Promise<NamespaceInfo | null>;
|
|
12
|
-
static namespaceInfo(namespaceInfo: NamespaceInfo): {
|
|
13
|
-
active: boolean;
|
|
14
|
-
ownerAddress: string;
|
|
15
|
-
namespaceId: string;
|
|
16
|
-
parentId: string;
|
|
17
|
-
aliasMosaicId: string | undefined;
|
|
18
|
-
aliasAddress: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=NamespaceServices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceServices.d.ts","sourceRoot":"","sources":["../../../src/service/NamespaceServices.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,aAAa,EAEb,gBAAgB,EAGjB,MAAM,yBAAyB,CAAA;AAGhC,MAAM,CAAC,OAAO,OAAO,iBAAiB;;IAGpC,MAAM,CAAC,mBAAmB,CACxB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM;IAevB,MAAM,CAAC,kBAAkB,CACvB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM;IAmBvB,MAAM,CAAC,UAAU,CACf,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM;IAuBvB,MAAM,CAAC,YAAY,CACjB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM;IAuBvB,MAAM,CAAC,WAAW,CAChB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM;IAoBvB,MAAM,CAAC,aAAa,CAClB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,MAAM;IAoBvB,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM;WAWnB,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,mBAAmB,EAAE,mBAAmB;IAQvF,MAAM,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa;;;;;;;;CAUlD"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { NetworkConfiguration, NetworkCurrencies, NetworkType, TransactionFees } from '@tech-bureau/symbol-sdk';
|
|
2
|
-
export default class RepositoryFactory {
|
|
3
|
-
url: string;
|
|
4
|
-
constructor(url: string);
|
|
5
|
-
init(cookieFlag?: boolean): Promise<void>;
|
|
6
|
-
getNetwork(): NetworkType;
|
|
7
|
-
getCurrency(): NetworkCurrencies;
|
|
8
|
-
getGnerationHash(): string;
|
|
9
|
-
getEpoch(): number;
|
|
10
|
-
getEinalizationEpoch(): number;
|
|
11
|
-
getTransactionFees(): TransactionFees;
|
|
12
|
-
getNetworkProperties(): NetworkConfiguration;
|
|
13
|
-
createNetwork(): import("@tech-bureau/symbol-sdk").NetworkRepository;
|
|
14
|
-
createLitener(): import("@tech-bureau/symbol-sdk").IListener;
|
|
15
|
-
createTransactionRepository(): import("@tech-bureau/symbol-sdk").TransactionRepository;
|
|
16
|
-
createReceiptRepository(): import("@tech-bureau/symbol-sdk").ReceiptRepository;
|
|
17
|
-
createAccountRepository(): import("@tech-bureau/symbol-sdk").AccountRepository;
|
|
18
|
-
createNamespaceRepository(): import("@tech-bureau/symbol-sdk").NamespaceRepository;
|
|
19
|
-
createMultisigRepository(): import("@tech-bureau/symbol-sdk").MultisigRepository;
|
|
20
|
-
createFinalizationRepository(): import("@tech-bureau/symbol-sdk").FinalizationRepository;
|
|
21
|
-
createBlockRepository(): import("@tech-bureau/symbol-sdk").BlockRepository;
|
|
22
|
-
createChainRepository(): import("@tech-bureau/symbol-sdk").ChainRepository;
|
|
23
|
-
createMosaicRepository(): import("@tech-bureau/symbol-sdk").MosaicRepository;
|
|
24
|
-
createTransactionStatusRepository(): import("@tech-bureau/symbol-sdk").TransactionStatusRepository;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=RepositoryFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryFactory.d.ts","sourceRoot":"","sources":["../../../src/service/RepositoryFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EAEX,eAAe,EAChB,MAAM,yBAAyB,CAAA;AAchC,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACjB,GAAG,EAAE,MAAM;gBAAX,GAAG,EAAE,MAAM;IAExB,IAAI,CAAC,UAAU,CAAC,EAAE,OAAO;IA8B/B,UAAU;IAIV,WAAW;IAIX,gBAAgB;IAIhB,QAAQ;IAIR,oBAAoB;IAIpB,kBAAkB;IAIlB,oBAAoB;IAIpB,aAAa;IAIb,aAAa;IAIb,2BAA2B;IAI3B,uBAAuB;IAIvB,uBAAuB;IAIvB,yBAAyB;IAIzB,wBAAwB;IAIxB,4BAA4B;IAI5B,qBAAqB;IAIrB,qBAAqB;IAIrB,sBAAsB;IAItB,iCAAiC;CAGlC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Transaction, Account } from '@tech-bureau/symbol-sdk';
|
|
2
|
-
import { TransactionInfoDto } from '../types/TransactionInfoDto';
|
|
3
|
-
export default class TransactionCheckServicesServices {
|
|
4
|
-
constructor();
|
|
5
|
-
static aggregateCheck(tx: Transaction): boolean;
|
|
6
|
-
static format(tx: Transaction, account?: Account): TransactionInfoDto;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=TransactionCheckServices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionCheckServices.d.ts","sourceRoot":"","sources":["../../../src/service/TransactionCheckServices.ts"],"names":[],"mappings":"AAAA,OAAO,EAcL,WAAW,EAIX,OAAO,EAGR,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAKhE,MAAM,CAAC,OAAO,OAAO,gCAAgC;;IAGnD,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO;IAI/C,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,kBAAkB;CAkNtE"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { AggregateTransaction, InnerTransaction, NetworkType, Account, TransactionAnnounceResponse, AccountKeyLinkTransaction, NodeKeyLinkTransaction, VotingKeyLinkTransaction, VrfKeyLinkTransaction, HashLockTransaction, Mosaic, SignedTransaction, UInt64, MultisigAccountModificationTransaction, Address, Message, TransferTransaction, IListener, ReceiptRepository, TransactionRepository, MosaicDefinitionTransaction, MosaicNonce, MosaicId, MosaicFlags, MosaicSupplyChangeTransaction, TransactionStatus, Transaction, BlockRepository, BlockInfo, TransactionStatusRepository } from '@tech-bureau/symbol-sdk';
|
|
2
|
-
export default class TransactionServices {
|
|
3
|
-
constructor();
|
|
4
|
-
static getTransactionStatus(transactionRepository: TransactionStatusRepository, transactionId: string): Promise<TransactionStatus>;
|
|
5
|
-
static getTransaction(transactionRepository: TransactionRepository, transactionId: string, transactionStatus: string): Promise<Transaction>;
|
|
6
|
-
static getBlock(blockRepository: BlockRepository, height: UInt64): Promise<BlockInfo>;
|
|
7
|
-
static announceCosign(transactionRepository: TransactionRepository, account: Account, transaction: AggregateTransaction): Promise<TransactionAnnounceResponse>;
|
|
8
|
-
static announceHashLockAggregateBonded(signedHashLockTransaction: SignedTransaction, signedTransaction: SignedTransaction, listener: IListener, transactionRepository: TransactionRepository, receiptRepository: ReceiptRepository): Promise<AggregateTransaction>;
|
|
9
|
-
static announce(signedTransaction: SignedTransaction, listener: IListener, transactionRepository: TransactionRepository, receiptRepository: ReceiptRepository): Promise<Transaction>;
|
|
10
|
-
static createHashLock(epoch: number, mosaic: Mosaic, signedTransaction: SignedTransaction, networkType: NetworkType): HashLockTransaction;
|
|
11
|
-
static createBonded(epoch: number, transactions: InnerTransaction[], networkType: NetworkType): AggregateTransaction;
|
|
12
|
-
static createComplete(epoch: number, transactions: InnerTransaction[], networkType: NetworkType): AggregateTransaction;
|
|
13
|
-
static createVrfKey(epoch: number, linkPublickey: string, networkType: NetworkType): VrfKeyLinkTransaction;
|
|
14
|
-
static createVotingKey(epoch: number, linkPublickey: string, networkType: NetworkType): VotingKeyLinkTransaction;
|
|
15
|
-
static createAccountKey(epoch: number, linkPublickey: string, networkType: NetworkType): AccountKeyLinkTransaction;
|
|
16
|
-
static createNodeKey(epoch: number, linkPublickey: string, networkType: NetworkType): NodeKeyLinkTransaction;
|
|
17
|
-
static createMultisig(epoch: number, minApproval: number, minRemoval: number, addAddresses: string[] | [], delAddresses: string[] | [], networkType: NetworkType): MultisigAccountModificationTransaction;
|
|
18
|
-
static createTransfer(epoch: number, recipientAddress: Address, mosaic: Mosaic[] | [], message: Message, networkType: NetworkType): TransferTransaction;
|
|
19
|
-
static createMosaicDefinition(epoch: number, nonce: MosaicNonce, mosaicId: MosaicId, mosaicFlags: MosaicFlags, divisibility: number, networkType: NetworkType, duration?: number | undefined): MosaicDefinitionTransaction;
|
|
20
|
-
static createMosaicSupplyChange(epoch: number, mosaicId: MosaicId, mosaicSupply: number, networkType: NetworkType): MosaicSupplyChangeTransaction;
|
|
21
|
-
static deleteVrf(epoch: number, linkPublickey: string, networkType: NetworkType): VrfKeyLinkTransaction;
|
|
22
|
-
static deleteVoting(epoch: number, linkPublickey: string, networkType: NetworkType): VotingKeyLinkTransaction;
|
|
23
|
-
static deleteAccount(epoch: number, linkPublickey: string, networkType: NetworkType): AccountKeyLinkTransaction;
|
|
24
|
-
static deleteNode(epoch: number, linkPublickey: string, networkType: NetworkType): NodeKeyLinkTransaction;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=TransactionServices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionServices.d.ts","sourceRoot":"","sources":["../../../src/service/TransactionServices.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface KeyPair {
|
|
2
|
-
privateKey: Uint8Array;
|
|
3
|
-
publicKey: Uint8Array;
|
|
4
|
-
}
|
|
5
|
-
export interface CryptoImplementation {
|
|
6
|
-
name: string;
|
|
7
|
-
createKeyPairFromPrivateKey: (privateKey: Uint8Array) => Promise<KeyPair>;
|
|
8
|
-
sign: (keyPair: KeyPair, data: Uint8Array) => Promise<Uint8Array>;
|
|
9
|
-
}
|
|
10
|
-
export interface VotingKeyAccount {
|
|
11
|
-
readonly startEpoch: number;
|
|
12
|
-
readonly endEpoch: number;
|
|
13
|
-
readonly publicKey: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type VotingKeyFile = VotingKeyAccount & {
|
|
16
|
-
filename: string;
|
|
17
|
-
};
|
|
18
|
-
export declare class VotingUtils {
|
|
19
|
-
private readonly implementation;
|
|
20
|
-
static nobleImplementation: CryptoImplementation;
|
|
21
|
-
static tweetNaClImplementation: CryptoImplementation;
|
|
22
|
-
static implementations: CryptoImplementation[];
|
|
23
|
-
constructor(implementation?: CryptoImplementation);
|
|
24
|
-
insert(result: Uint8Array, value: Uint8Array, index: number): number;
|
|
25
|
-
createVotingFile(secret: string, votingKeyStartEpoch: number, votingKeyEndEpoch: number, unitTestPrivateKeys?: Uint8Array[] | undefined): Promise<Uint8Array>;
|
|
26
|
-
readVotingFile(file: Uint8Array): VotingKeyAccount;
|
|
27
|
-
loadVotingFiles(folder: string): VotingKeyFile[];
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=VotingServices.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VotingServices.d.ts","sourceRoot":"","sources":["../../../src/service/VotingServices.ts"],"names":[],"mappings":"AAqBA,MAAM,WAAW,OAAO;IACtB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,UAAU,CAAA;CACtB;AACD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,2BAA2B,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACzE,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;CAClE;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,oBAAY,aAAa,GAAG,gBAAgB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnE,qBAAa,WAAW;IA6BV,OAAO,CAAC,QAAQ,CAAC,cAAc;IA5B3C,OAAc,mBAAmB,EAAE,oBAAoB,CAStD;IAED,OAAc,uBAAuB,EAAE,oBAAoB,CAa1D;IAED,OAAc,eAAe,yBAAyE;gBAEzE,cAAc,GAAE,oBAAsD;IAC5F,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAK9D,gBAAgB,CAC3B,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,MAAM,EAC3B,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,GAAE,UAAU,EAAE,GAAG,SAAqB,GACxD,OAAO,CAAC,UAAU,CAAC;IAiEf,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,gBAAgB;IAsBlD,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,EAAE;CAiBxD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface AccountInfo {
|
|
2
|
-
url: string;
|
|
3
|
-
network: string;
|
|
4
|
-
account: string;
|
|
5
|
-
address: string;
|
|
6
|
-
mosaics: mosaics[];
|
|
7
|
-
linkedKeys: {
|
|
8
|
-
linked: string;
|
|
9
|
-
node: string;
|
|
10
|
-
vrf: string;
|
|
11
|
-
voting: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface mosaics {
|
|
15
|
-
mosaic: string;
|
|
16
|
-
amount: string;
|
|
17
|
-
namespaceAlias: string;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=AccountInfo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountInfo.d.ts","sourceRoot":"","sources":["../../../src/types/AccountInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF;AAED,UAAU,OAAO;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum AccountType {
|
|
2
|
-
work = "workAccount",
|
|
3
|
-
balance = "balanceAccount",
|
|
4
|
-
main = "mainAccount",
|
|
5
|
-
test1 = "test1Account",
|
|
6
|
-
test2 = "test2Account",
|
|
7
|
-
voting = "votingAccount",
|
|
8
|
-
vrf = "vrfAccount"
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=AccountType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountType.d.ts","sourceRoot":"","sources":["../../../src/types/AccountType.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,IAAI,gBAAgB;IACpB,OAAO,mBAAmB;IAC1B,IAAI,gBAAgB;IACpB,KAAK,iBAAiB;IACtB,KAAK,iBAAiB;IACtB,MAAM,kBAAkB;IACxB,GAAG,eAAe;CACnB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface ConfigFile {
|
|
2
|
-
url: string;
|
|
3
|
-
workAccount: ConfigAccount;
|
|
4
|
-
balanceAccount: ConfigAccount;
|
|
5
|
-
mainAccount: ConfigAccount;
|
|
6
|
-
keylink: {
|
|
7
|
-
vrf: ConfigAccount;
|
|
8
|
-
voting: ConfigAccount;
|
|
9
|
-
};
|
|
10
|
-
multisig?: {
|
|
11
|
-
minApproval?: number;
|
|
12
|
-
minRemoval?: number;
|
|
13
|
-
addCosigner?: ConfigAccount[];
|
|
14
|
-
delCosigner?: ConfigAccount[];
|
|
15
|
-
};
|
|
16
|
-
test1Account: ConfigAccount;
|
|
17
|
-
test2Account: ConfigAccount;
|
|
18
|
-
}
|
|
19
|
-
interface ConfigAccount {
|
|
20
|
-
publicKey: string;
|
|
21
|
-
privateKey: string;
|
|
22
|
-
address: string;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=ConfigFile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigFile.d.ts","sourceRoot":"","sources":["../../../src/types/ConfigFile.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,aAAa,CAAA;IAC1B,cAAc,EAAE,aAAa,CAAA;IAC7B,WAAW,EAAE,aAAa,CAAA;IAC1B,OAAO,EAAE;QACP,GAAG,EAAE,aAAa,CAAA;QAClB,MAAM,EAAE,aAAa,CAAA;KACtB,CAAA;IACD,QAAQ,CAAC,EAAE;QACT,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAA;QAC7B,WAAW,CAAC,EAAE,aAAa,EAAE,CAAA;KAC9B,CAAA;IACD,YAAY,EAAE,aAAa,CAAA;IAC3B,YAAY,EAAE,aAAa,CAAA;CAC5B;AAED,UAAU,aAAa;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Environment.d.ts","sourceRoot":"","sources":["../../../src/types/Environment.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,KAAK,QAAQ;IACb,MAAM,SAAS;IACf,MAAM,SAAS;CAChB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface IAccountGenerateOption {
|
|
2
|
-
url?: string;
|
|
3
|
-
nodename?: string;
|
|
4
|
-
readfile?: string;
|
|
5
|
-
writefile?: string;
|
|
6
|
-
certsdir?: string;
|
|
7
|
-
privatekey?: string;
|
|
8
|
-
service: boolean;
|
|
9
|
-
bod: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface IAccountInfoOption {
|
|
12
|
-
type?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
readfile?: string;
|
|
15
|
-
address?: string;
|
|
16
|
-
bod: boolean;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=IAccountOption.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IAccountOption.d.ts","sourceRoot":"","sources":["../../../src/types/IAccountOption.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,GAAG,EAAE,OAAO,CAAA;CACb;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,OAAO,CAAA;CACb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ILinkOption.d.ts","sourceRoot":"","sources":["../../../src/types/ILinkOption.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface IMosaicCreateOption {
|
|
2
|
-
owner: string;
|
|
3
|
-
url?: string;
|
|
4
|
-
supply: string;
|
|
5
|
-
divisibility: string;
|
|
6
|
-
supplymutable: string;
|
|
7
|
-
transferable: string;
|
|
8
|
-
restrictable: string;
|
|
9
|
-
revokable: string;
|
|
10
|
-
readfile?: string;
|
|
11
|
-
privatekey?: string;
|
|
12
|
-
bod: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface IMosaicInfoOption {
|
|
15
|
-
url?: string;
|
|
16
|
-
readfile?: string;
|
|
17
|
-
mosaicrawId?: string;
|
|
18
|
-
bod: boolean;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=IMosaicOption.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IMosaicOption.d.ts","sourceRoot":"","sources":["../../../src/types/IMosaicOption.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,OAAO,CAAA;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,OAAO,CAAA;CACb"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface INamespaceCreateOption {
|
|
2
|
-
owner: string;
|
|
3
|
-
url?: string;
|
|
4
|
-
name: string;
|
|
5
|
-
duration?: number;
|
|
6
|
-
parentName?: string;
|
|
7
|
-
mosaicId?: string;
|
|
8
|
-
address?: string;
|
|
9
|
-
readfile?: string;
|
|
10
|
-
privatekey?: string;
|
|
11
|
-
bod: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface INamespaceInfoOption {
|
|
14
|
-
url?: string;
|
|
15
|
-
readfile?: string;
|
|
16
|
-
namespaceId?: string;
|
|
17
|
-
bod: boolean;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=INamespaceOption.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"INamespaceOption.d.ts","sourceRoot":"","sources":["../../../src/types/INamespaceOption.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,OAAO,CAAA;CACb;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,OAAO,CAAA;CACb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ITransactionOption.d.ts","sourceRoot":"","sources":["../../../src/types/ITransactionOption.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,OAAO,CAAA;CACb"}
|