@fuel-ts/account 0.0.0-pr-1788-20240222094224 → 0.75.0
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.
Potentially problematic release.
This version of @fuel-ts/account might be problematic. Click here for more details.
- package/dist/connectors/fuel-connector.d.ts +2 -1
- package/dist/connectors/fuel-connector.d.ts.map +1 -1
- package/dist/connectors/types/data-type.d.ts +0 -8
- package/dist/connectors/types/data-type.d.ts.map +1 -1
- package/dist/connectors/types/events.d.ts +2 -36
- package/dist/connectors/types/events.d.ts.map +1 -1
- package/dist/connectors/types/index.d.ts +0 -2
- package/dist/connectors/types/index.d.ts.map +1 -1
- package/dist/index.global.js +543 -409
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +143 -172
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +132 -159
- package/dist/index.mjs.map +1 -1
- package/dist/providers/fuel-graphql-subscriber.d.ts +13 -3
- package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +9 -3
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-summary/operations.d.ts +0 -2
- package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
- package/dist/providers/transaction-summary/output.d.ts +2 -2
- package/dist/providers/transaction-summary/output.d.ts.map +1 -1
- package/dist/providers/transaction-summary/types.d.ts +0 -1
- package/dist/providers/transaction-summary/types.d.ts.map +1 -1
- package/dist/test-utils.global.js +543 -400
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +144 -160
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +132 -148
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +16 -16
- package/dist/connectors/types/asset.d.ts +0 -2
- package/dist/connectors/types/asset.d.ts.map +0 -1
- package/dist/connectors/types/constants.d.ts +0 -7
- package/dist/connectors/types/constants.d.ts.map +0 -1
- package/dist/connectors/types/message.d.ts +0 -15
- package/dist/connectors/types/message.d.ts.map +0 -1
@@ -1,8 +1,9 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
import { EventEmitter } from 'events';
|
3
3
|
import type { TransactionRequestLike } from '../providers';
|
4
|
+
import type { Asset } from '../providers/assets/types';
|
4
5
|
import { FuelConnectorEventTypes } from './types';
|
5
|
-
import type { FuelConnectorEvents, ConnectorMetadata, FuelABI, Network, FuelEventArg, Version
|
6
|
+
import type { FuelConnectorEvents, ConnectorMetadata, FuelABI, Network, FuelEventArg, Version } from './types';
|
6
7
|
/**
|
7
8
|
* @name FuelConnector
|
8
9
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fuel-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel-connector.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"fuel-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel-connector.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,OAAO,EACR,MAAM,SAAS,CAAC;AAEjB;;;;;GAKG;AACH,8BAAsB,aAAc,SAAQ,YAAY;IACtD,IAAI,EAAE,MAAM,CAAM;IAClB,QAAQ,EAAE,iBAAiB,CAA2B;IACtD,SAAS,EAAE,OAAO,CAAS;IAC3B,SAAS,EAAE,OAAO,CAAS;IAC3B,MAAM,iCAA2B;IAE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I,OAAO,CAAC,OAAO,CAAC;IAIxC;;;;;;OAMG;IACG,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlE;;;;;OAKG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAIlD;;;;;OAKG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3C;;;;;OAKG;IACH,EAAE,CAAC,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EACjE,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAC1B,IAAI;CAIR"}
|
@@ -31,12 +31,4 @@ export type Network = {
|
|
31
31
|
* Read more at: https://docs.fuel.network/docs/specs/abi/json-abi-format/
|
32
32
|
*/
|
33
33
|
export type FuelABI = JsonAbi;
|
34
|
-
export declare enum MessageTypes {
|
35
|
-
ping = "ping",
|
36
|
-
uiEvent = "uiEvent",
|
37
|
-
event = "event",
|
38
|
-
request = "request",
|
39
|
-
response = "response",
|
40
|
-
removeConnection = "removeConnection"
|
41
|
-
}
|
42
34
|
//# sourceMappingURL=data-type.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-type.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/data-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC
|
1
|
+
{"version":3,"file":"data-type.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/data-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC"}
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import type { Asset } from '
|
2
|
-
import type { JSONRPCRequest, JSONRPCResponse } from 'json-rpc-2.0';
|
1
|
+
import type { Asset } from '../../providers/assets/types';
|
3
2
|
import type { FuelConnector } from '../fuel-connector';
|
4
3
|
import type { FuelConnectorEventTypes } from './connector-types';
|
5
|
-
import type {
|
6
|
-
import type { MessageSender } from './message';
|
4
|
+
import type { Network } from './data-type';
|
7
5
|
/** **
|
8
6
|
* ========================================================================================
|
9
7
|
* Helpers
|
@@ -15,38 +13,6 @@ import type { MessageSender } from './message';
|
|
15
13
|
export type FuelEventArg<T extends FuelConnectorEvents['type']> = Extract<FuelConnectorEventTypes, {
|
16
14
|
type: T;
|
17
15
|
}>['data'];
|
18
|
-
/** **
|
19
|
-
* ========================================================================================
|
20
|
-
* Events
|
21
|
-
* ========================================================================================
|
22
|
-
*/
|
23
|
-
export type BaseEvent<T> = {
|
24
|
-
readonly target: string;
|
25
|
-
readonly connectorName?: string;
|
26
|
-
readonly id?: string;
|
27
|
-
readonly sender?: MessageSender;
|
28
|
-
} & T;
|
29
|
-
export type UIEventMessage = BaseEvent<{
|
30
|
-
readonly type: MessageTypes.uiEvent;
|
31
|
-
readonly ready: boolean;
|
32
|
-
readonly session: string;
|
33
|
-
}>;
|
34
|
-
export type RequestMessage = BaseEvent<{
|
35
|
-
readonly type: MessageTypes.request;
|
36
|
-
readonly request: JSONRPCRequest;
|
37
|
-
}>;
|
38
|
-
export type ResponseMessage = BaseEvent<{
|
39
|
-
readonly type: MessageTypes.response;
|
40
|
-
readonly response: JSONRPCResponse;
|
41
|
-
}>;
|
42
|
-
export type EventMessageEvents = Array<{
|
43
|
-
event: string;
|
44
|
-
params: Array<unknown>;
|
45
|
-
}>;
|
46
|
-
export type EventMessage<T = EventMessageEvents> = BaseEvent<{
|
47
|
-
readonly type: MessageTypes.event;
|
48
|
-
readonly events: T;
|
49
|
-
}>;
|
50
16
|
/**
|
51
17
|
* Event trigger when the accounts available to the
|
52
18
|
* connection changes.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,IAAI,OAAO,CACvE,uBAAuB,EACvB;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CACZ,CAAC,MAAM,CAA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GACb,YAAY,GACZ,aAAa,GACb,eAAe,GACf,cAAc,GACd,WAAW,CAAC;AAEhB,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|