@steemit/steem-js 1.0.4 → 1.0.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 +9 -1
- package/dist/api/index.d.ts +50 -55
- package/dist/api/rpc-auth.d.ts +2 -2
- package/dist/api/signature-verification.d.ts +92 -0
- package/dist/api/transports/base.d.ts +2 -2
- package/dist/api/transports/http.d.ts +16 -2
- package/dist/api/transports/index.d.ts +0 -2
- package/dist/api/transports/types.d.ts +6 -6
- package/dist/api/transports/ws.d.ts +1 -0
- package/dist/auth/ecc/src/ecdsa.d.ts +1 -1
- package/dist/auth/ecc/src/enforce_types.d.ts +2 -2
- package/dist/auth/ecc/src/hash.d.ts +4 -2
- package/dist/auth/ecc/src/key_private.d.ts +3 -1
- package/dist/auth/ecc/src/key_public.d.ts +8 -6
- package/dist/auth/index.d.ts +6 -5
- package/dist/auth/serializer/transaction.d.ts +1 -1
- package/dist/auth/serializer.d.ts +3 -3
- package/dist/broadcast/helpers.d.ts +23 -4
- package/dist/broadcast/index.d.ts +24 -22
- package/dist/browser.esm.js +28921 -0
- package/dist/browser.esm.js.map +1 -0
- package/dist/config.d.ts +4 -5
- package/dist/crypto/browser-crypto.d.ts +43 -0
- package/dist/crypto/random-bytes.d.ts +12 -0
- package/dist/formatter/index.d.ts +1 -1
- package/dist/index.browser.js +56378 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.cjs +24067 -35324
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +24053 -35302
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +18077 -48081
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/polyfills/async-hooks-browser.d.ts +6 -0
- package/dist/polyfills/secure-random-browser.d.ts +8 -0
- package/dist/serializer/convert.d.ts +15 -6
- package/dist/serializer/index.d.ts +3 -3
- package/dist/serializer/precision.d.ts +1 -1
- package/dist/serializer/types.d.ts +9 -9
- package/dist/types/index.d.ts +9 -9
- package/dist/types.d.ts +2 -2
- package/dist/umd.d.ts +3 -3
- package/dist/utils/debug.d.ts +5 -5
- package/dist/utils/promisify.d.ts +7 -3
- package/package.json +17 -16
|
@@ -10,34 +10,36 @@ export declare class Broadcast {
|
|
|
10
10
|
private auth;
|
|
11
11
|
constructor(config: BroadcastConfig);
|
|
12
12
|
send(tx: {
|
|
13
|
-
operations:
|
|
14
|
-
extensions?:
|
|
15
|
-
}, privKeys:
|
|
16
|
-
sendOperations(operations: BroadcastOptions[]): Promise<
|
|
17
|
-
sendTransaction(transaction:
|
|
18
|
-
sendSignedTransaction(signedTransaction:
|
|
13
|
+
operations: unknown[];
|
|
14
|
+
extensions?: unknown[];
|
|
15
|
+
}, privKeys: string | string[], callback?: (err: Error | null, result?: unknown) => void): Promise<unknown>;
|
|
16
|
+
sendOperations(operations: BroadcastOptions[]): Promise<unknown>;
|
|
17
|
+
sendTransaction(transaction: unknown): Promise<unknown>;
|
|
18
|
+
sendSignedTransaction(signedTransaction: unknown): Promise<unknown>;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Top-level broadcast function for compatibility with tests and original API.
|
|
22
22
|
*/
|
|
23
|
-
export declare function broadcast(api:
|
|
23
|
+
export declare function broadcast(api: unknown, transaction: unknown): Promise<unknown>;
|
|
24
|
+
type BroadcastMethod = (...args: any[]) => unknown | Promise<unknown> | undefined | void;
|
|
24
25
|
/**
|
|
25
26
|
* Set the API reference for the broadcast module
|
|
26
27
|
*/
|
|
27
|
-
export declare function setApi(api:
|
|
28
|
-
export declare const _prepareTransaction:
|
|
29
|
-
[x: string]:
|
|
28
|
+
export declare function setApi(api: Api): void;
|
|
29
|
+
export declare const _prepareTransaction: BroadcastMethod, claimAccount: BroadcastMethod, claimAccountAsync: BroadcastMethod, createClaimedAccount: BroadcastMethod, createClaimedAccountAsync: BroadcastMethod, createProposal: BroadcastMethod, createProposalAsync: BroadcastMethod, updateProposalVotes: BroadcastMethod, updateProposalVotesAsync: BroadcastMethod, removeProposal: BroadcastMethod, removeProposalAsync: BroadcastMethod, generated: {
|
|
30
|
+
[x: string]: BroadcastMethod;
|
|
30
31
|
};
|
|
31
|
-
export declare const vote:
|
|
32
|
-
export declare const voteAsync:
|
|
33
|
-
export declare const voteWith:
|
|
34
|
-
export declare const comment:
|
|
35
|
-
export declare const transfer:
|
|
36
|
-
export declare const transferAsync:
|
|
37
|
-
export declare const sendAsync:
|
|
32
|
+
export declare const vote: BroadcastMethod;
|
|
33
|
+
export declare const voteAsync: BroadcastMethod;
|
|
34
|
+
export declare const voteWith: BroadcastMethod;
|
|
35
|
+
export declare const comment: BroadcastMethod;
|
|
36
|
+
export declare const transfer: BroadcastMethod;
|
|
37
|
+
export declare const transferAsync: BroadcastMethod;
|
|
38
|
+
export declare const sendAsync: (...args: unknown[]) => Promise<unknown>;
|
|
38
39
|
export declare const send: (tx: {
|
|
39
|
-
operations:
|
|
40
|
-
extensions?:
|
|
41
|
-
}, privKeys:
|
|
42
|
-
export declare const customJson:
|
|
43
|
-
export declare const customJsonAsync:
|
|
40
|
+
operations: unknown[];
|
|
41
|
+
extensions?: unknown[];
|
|
42
|
+
}, privKeys: string | string[], callback?: (err: Error | null, result?: unknown) => void) => Promise<unknown>;
|
|
43
|
+
export declare const customJson: BroadcastMethod;
|
|
44
|
+
export declare const customJsonAsync: BroadcastMethod;
|
|
45
|
+
export {};
|