UNPKG

3.28 kBTypeScriptView Raw
1import * as neonCore from "@cityofzion/neon-core";
2export declare const api: typeof import("../../neon-api/lib/plugin"), nep5: typeof import("../../neon-nep5/lib/plugin"), settings: typeof neonCore.settings, sc: typeof neonCore.sc, rpc: typeof neonCore.rpc, wallet: typeof neonCore.wallet, CONST: typeof neonCore.CONST, u: typeof neonCore.u, tx: typeof neonCore.tx, logging: typeof neonCore.logging;
3declare const _default: {
4 sendAsset: typeof import("../../neon-api/lib").sendAsset;
5 claimGas: typeof import("../../neon-api/lib").claimGas;
6 doInvoke: typeof import("../../neon-api/lib").doInvoke;
7 setupVote: typeof import("../../neon-api/lib").setupVote;
8 create: {
9 account: (k: string) => neonCore.wallet.Account;
10 privateKey: () => string;
11 signature: (tx: string, privateKey: string) => string;
12 wallet: (k: neonCore.wallet.WalletJSON) => neonCore.wallet.Wallet;
13 claimTx: () => neonCore.tx.ClaimTransaction;
14 contractTx: () => neonCore.tx.ContractTransaction;
15 invocationTx: () => neonCore.tx.InvocationTransaction;
16 stateTx: () => neonCore.tx.StateTransaction;
17 contractParam: (type: "Signature" | "Boolean" | "Integer" | "Hash160" | "Hash256" | "ByteArray" | "PublicKey" | "String" | "Array" | "InteropInterface" | "Void", value: any) => neonCore.sc.ContractParam;
18 script: typeof neonCore.sc.createScript;
19 scriptBuilder: () => neonCore.sc.ScriptBuilder;
20 deployScript: (args: any) => neonCore.sc.ScriptBuilder;
21 rpcClient: (net: string, version: string) => neonCore.rpc.RPCClient;
22 query: (req: neonCore.rpc.RPCRequest) => neonCore.rpc.Query;
23 network: (net: Partial<neonCore.rpc.NetworkJSON>) => neonCore.rpc.Network;
24 stringStream: (str?: string | undefined) => neonCore.u.StringStream;
25 fixed8: (i?: string | number | undefined) => neonCore.u.Fixed8;
26 };
27 deserialize: {
28 attribute: typeof neonCore.tx.TransactionAttribute.deserialize;
29 input: typeof neonCore.tx.TransactionInput.deserialize;
30 output: typeof neonCore.tx.TransactionOutput.deserialize;
31 script: typeof neonCore.tx.Witness.deserialize;
32 tx: typeof neonCore.tx.Transaction.deserialize;
33 };
34 is: {
35 address: typeof neonCore.wallet.isAddress;
36 publicKey: typeof neonCore.wallet.isPublicKey;
37 encryptedKey: typeof neonCore.wallet.isNEP2;
38 privateKey: typeof neonCore.wallet.isPrivateKey;
39 wif: typeof neonCore.wallet.isWIF;
40 scriptHash: typeof neonCore.wallet.isScriptHash;
41 };
42 sign: {
43 hex: typeof neonCore.wallet.sign;
44 message: (msg: string, privateKey: string) => string;
45 };
46 verify: {
47 hex: typeof neonCore.wallet.verify;
48 message: (msg: string, sig: string, publicKey: string) => boolean;
49 };
50 encrypt: {
51 privateKey: typeof neonCore.wallet.encrypt;
52 };
53 decrypt: {
54 privateKey: typeof neonCore.wallet.decrypt;
55 };
56 add: {
57 network: (network: neonCore.rpc.Network, override?: boolean) => boolean;
58 };
59 remove: {
60 network: (name: string) => boolean;
61 };
62 u: typeof neonCore.u;
63 CONST: typeof neonCore.CONST;
64};
65export default _default;
66//# sourceMappingURL=index.d.ts.map
\No newline at end of file