@hiero-ledger/sdk 2.80.0 → 2.81.0-beta.1
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 +34 -7
- package/dist/umd.js +2213 -318
- package/dist/umd.js.map +1 -0
- package/dist/umd.min.js +6 -5
- package/dist/umd.min.js.map +1 -0
- package/lib/Executable.cjs +7 -4
- package/lib/Executable.js +1 -1
- package/lib/Executable.js.map +1 -1
- package/lib/PublicKey.cjs +45 -26
- package/lib/PublicKey.d.ts +12 -0
- package/lib/PublicKey.js +1 -1
- package/lib/PublicKey.js.map +1 -1
- package/lib/RequestType.cjs +19 -1
- package/lib/RequestType.d.ts +2 -0
- package/lib/RequestType.js +1 -1
- package/lib/RequestType.js.map +1 -1
- package/lib/Status.cjs +203 -252
- package/lib/Status.d.ts +8 -6
- package/lib/Status.js +1 -1
- package/lib/Status.js.map +1 -1
- package/lib/Transfer.cjs +25 -2
- package/lib/Transfer.d.ts +4 -0
- package/lib/Transfer.js +1 -1
- package/lib/Transfer.js.map +1 -1
- package/lib/account/AccountCreateTransaction.cjs +38 -0
- package/lib/account/AccountCreateTransaction.d.ts +21 -0
- package/lib/account/AccountCreateTransaction.js +1 -1
- package/lib/account/AccountCreateTransaction.js.map +1 -1
- package/lib/account/AccountUpdateTransaction.cjs +74 -1
- package/lib/account/AccountUpdateTransaction.d.ts +43 -0
- package/lib/account/AccountUpdateTransaction.js +1 -1
- package/lib/account/AccountUpdateTransaction.js.map +1 -1
- package/lib/account/TransferTransaction.cjs +57 -9
- package/lib/account/TransferTransaction.d.ts +31 -1
- package/lib/account/TransferTransaction.js +1 -1
- package/lib/account/TransferTransaction.js.map +1 -1
- package/lib/browser.js +1 -1
- package/lib/client/Client.cjs +38 -0
- package/lib/client/Client.d.ts +30 -0
- package/lib/client/Client.js +1 -1
- package/lib/client/Client.js.map +1 -1
- package/lib/client/addressbooks/mainnet.cjs +1 -1
- package/lib/client/addressbooks/mainnet.d.ts +1 -1
- package/lib/client/addressbooks/mainnet.js +1 -1
- package/lib/client/addressbooks/mainnet.js.map +1 -1
- package/lib/client/addressbooks/previewnet.cjs +1 -1
- package/lib/client/addressbooks/previewnet.d.ts +1 -1
- package/lib/client/addressbooks/previewnet.js +1 -1
- package/lib/client/addressbooks/previewnet.js.map +1 -1
- package/lib/client/addressbooks/testnet.cjs +1 -1
- package/lib/client/addressbooks/testnet.d.ts +1 -1
- package/lib/client/addressbooks/testnet.js +1 -1
- package/lib/client/addressbooks/testnet.js.map +1 -1
- package/lib/contract/ContractCreateTransaction.cjs +37 -1
- package/lib/contract/ContractCreateTransaction.d.ts +21 -0
- package/lib/contract/ContractCreateTransaction.js +1 -1
- package/lib/contract/ContractCreateTransaction.js.map +1 -1
- package/lib/contract/ContractUpdateTransaction.cjs +74 -1
- package/lib/contract/ContractUpdateTransaction.d.ts +43 -0
- package/lib/contract/ContractUpdateTransaction.js +1 -1
- package/lib/contract/ContractUpdateTransaction.js.map +1 -1
- package/lib/exports.cjs +103 -0
- package/lib/exports.d.ts +13 -0
- package/lib/exports.js +1 -1
- package/lib/exports.js.map +1 -1
- package/lib/hooks/EvmHook.cjs +84 -0
- package/lib/hooks/EvmHook.d.ts +51 -0
- package/lib/hooks/EvmHook.js +2 -0
- package/lib/hooks/EvmHook.js.map +1 -0
- package/lib/hooks/EvmHookCall.cjs +103 -0
- package/lib/hooks/EvmHookCall.d.ts +69 -0
- package/lib/hooks/EvmHookCall.js +2 -0
- package/lib/hooks/EvmHookCall.js.map +1 -0
- package/lib/hooks/EvmHookMappingEntry.cjs +135 -0
- package/lib/hooks/EvmHookMappingEntry.d.ts +84 -0
- package/lib/hooks/EvmHookMappingEntry.js +2 -0
- package/lib/hooks/EvmHookMappingEntry.js.map +1 -0
- package/lib/hooks/EvmHookStorageUpdate.cjs +238 -0
- package/lib/hooks/EvmHookStorageUpdate.d.ts +144 -0
- package/lib/hooks/EvmHookStorageUpdate.js +2 -0
- package/lib/hooks/EvmHookStorageUpdate.js.map +1 -0
- package/lib/hooks/FungibleHookCall.cjs +67 -0
- package/lib/hooks/FungibleHookCall.d.ts +50 -0
- package/lib/hooks/FungibleHookCall.js +2 -0
- package/lib/hooks/FungibleHookCall.js.map +1 -0
- package/lib/hooks/FungibleHookType.cjs +11 -0
- package/lib/hooks/FungibleHookType.d.ts +5 -0
- package/lib/hooks/FungibleHookType.js +2 -0
- package/lib/hooks/FungibleHookType.js.map +1 -0
- package/lib/hooks/HookCall.cjs +99 -0
- package/lib/hooks/HookCall.d.ts +64 -0
- package/lib/hooks/HookCall.js +2 -0
- package/lib/hooks/HookCall.js.map +1 -0
- package/lib/hooks/HookCreationDetails.cjs +149 -0
- package/lib/hooks/HookCreationDetails.d.ts +91 -0
- package/lib/hooks/HookCreationDetails.js +2 -0
- package/lib/hooks/HookCreationDetails.js.map +1 -0
- package/lib/hooks/HookEntityId.cjs +67 -0
- package/lib/hooks/HookEntityId.d.ts +41 -0
- package/lib/hooks/HookEntityId.js +2 -0
- package/lib/hooks/HookEntityId.js.map +1 -0
- package/lib/hooks/HookExtensionPoint.cjs +31 -0
- package/lib/hooks/HookExtensionPoint.d.ts +16 -0
- package/lib/hooks/HookExtensionPoint.js +2 -0
- package/lib/hooks/HookExtensionPoint.js.map +1 -0
- package/lib/hooks/HookId.cjs +101 -0
- package/lib/hooks/HookId.d.ts +63 -0
- package/lib/hooks/HookId.js +2 -0
- package/lib/hooks/HookId.js.map +1 -0
- package/lib/hooks/HookStoreTransaction.cjs +157 -0
- package/lib/hooks/HookStoreTransaction.d.ts +77 -0
- package/lib/hooks/HookStoreTransaction.js +2 -0
- package/lib/hooks/HookStoreTransaction.js.map +1 -0
- package/lib/hooks/NftHookCall.cjs +67 -0
- package/lib/hooks/NftHookCall.d.ts +50 -0
- package/lib/hooks/NftHookCall.js +2 -0
- package/lib/hooks/NftHookCall.js.map +1 -0
- package/lib/hooks/NftHookType.cjs +13 -0
- package/lib/hooks/NftHookType.d.ts +7 -0
- package/lib/hooks/NftHookType.js +2 -0
- package/lib/hooks/NftHookType.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/native.js +1 -1
- package/lib/token/AbstractTokenTransferTransaction.cjs +17 -5
- package/lib/token/AbstractTokenTransferTransaction.d.ts +13 -2
- package/lib/token/AbstractTokenTransferTransaction.js +1 -1
- package/lib/token/AbstractTokenTransferTransaction.js.map +1 -1
- package/lib/token/TokenAirdropTransaction.cjs +1 -1
- package/lib/token/TokenAirdropTransaction.js +1 -1
- package/lib/token/TokenAirdropTransaction.js.map +1 -1
- package/lib/token/TokenNftTransfer.cjs +51 -2
- package/lib/token/TokenNftTransfer.d.ts +7 -0
- package/lib/token/TokenNftTransfer.js +1 -1
- package/lib/token/TokenNftTransfer.js.map +1 -1
- package/lib/token/TokenTransfer.cjs +26 -2
- package/lib/token/TokenTransfer.d.ts +4 -0
- package/lib/token/TokenTransfer.js +1 -1
- package/lib/token/TokenTransfer.js.map +1 -1
- package/lib/transaction/Transaction.cjs +2 -1
- package/lib/transaction/Transaction.js +1 -1
- package/lib/transaction/Transaction.js.map +1 -1
- package/lib/transaction/TransactionResponse.cjs +82 -9
- package/lib/transaction/TransactionResponse.d.ts +33 -2
- package/lib/transaction/TransactionResponse.js +1 -1
- package/lib/transaction/TransactionResponse.js.map +1 -1
- package/lib/version.js +1 -1
- package/package.json +15 -13
- package/src/Executable.js +10 -7
- package/src/PublicKey.js +53 -36
- package/src/RequestType.js +18 -0
- package/src/Status.js +201 -252
- package/src/Transfer.js +33 -1
- package/src/account/AccountCreateTransaction.js +39 -0
- package/src/account/AccountUpdateTransaction.js +78 -0
- package/src/account/TransferTransaction.js +84 -8
- package/src/client/Client.js +38 -0
- package/src/client/addressbooks/mainnet.js +1 -1
- package/src/client/addressbooks/previewnet.js +1 -1
- package/src/client/addressbooks/testnet.js +1 -1
- package/src/contract/ContractCreateTransaction.js +37 -0
- package/src/contract/ContractUpdateTransaction.js +80 -0
- package/src/exports.js +17 -0
- package/src/hooks/EvmHook.js +83 -0
- package/src/hooks/EvmHookCall.js +100 -0
- package/src/hooks/EvmHookMappingEntry.js +140 -0
- package/src/hooks/EvmHookStorageUpdate.js +257 -0
- package/src/hooks/FungibleHookCall.js +65 -0
- package/src/hooks/FungibleHookType.js +6 -0
- package/src/hooks/HookCall.js +97 -0
- package/src/hooks/HookCreationDetails.js +155 -0
- package/src/hooks/HookEntityId.js +67 -0
- package/src/hooks/HookExtensionPoint.js +25 -0
- package/src/hooks/HookId.js +102 -0
- package/src/hooks/HookStoreTransaction.js +185 -0
- package/src/hooks/NftHookCall.js +64 -0
- package/src/hooks/NftHookType.js +8 -0
- package/src/token/AbstractTokenTransferTransaction.js +16 -1
- package/src/token/TokenAirdropTransaction.js +1 -0
- package/src/token/TokenNftTransfer.js +68 -1
- package/src/token/TokenTransfer.js +34 -1
- package/src/transaction/Transaction.js +3 -0
- package/src/transaction/TransactionResponse.js +98 -13
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _EvmHookCall = _interopRequireDefault(require("../hooks/EvmHookCall.cjs"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
/**
|
|
10
|
+
* @namespace proto
|
|
11
|
+
* @typedef {import("@hiero-ledger/proto").proto.IHookCall} HieroProto.proto.IHookCall
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* Specifies a call to a hook from within a transaction.
|
|
17
|
+
* <p>
|
|
18
|
+
* Often the hook's entity is implied by the nature of the call site. For example, when using an account allowance hook
|
|
19
|
+
* inside a crypto transfer, the hook's entity is necessarily the account whose authorization is required.
|
|
20
|
+
* <p>
|
|
21
|
+
* For future extension points where the hook owner is not forced by the context, we include the option to fully
|
|
22
|
+
* specify the hook id for the call.
|
|
23
|
+
*/
|
|
24
|
+
class HookCall {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param {object} props
|
|
28
|
+
* @param {Long} [props.hookId]
|
|
29
|
+
* @param {import("../hooks/EvmHookCall.js").default} [props.evmHookCall]
|
|
30
|
+
*/
|
|
31
|
+
constructor(props = {}) {
|
|
32
|
+
if (props.hookId !== undefined) {
|
|
33
|
+
this.setHookId(props.hookId);
|
|
34
|
+
}
|
|
35
|
+
if (props.evmHookCall !== undefined) {
|
|
36
|
+
this.setCall(props.evmHookCall);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @param {Long} hookId
|
|
43
|
+
* @returns {this}
|
|
44
|
+
*/
|
|
45
|
+
setHookId(hookId) {
|
|
46
|
+
this._hookId = hookId;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @param {import("../hooks/EvmHookCall.js").default} evmHookCall
|
|
53
|
+
* @returns {this}
|
|
54
|
+
*/
|
|
55
|
+
setCall(evmHookCall) {
|
|
56
|
+
this._evmHookCall = evmHookCall;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @returns {Long | undefined}
|
|
63
|
+
*/
|
|
64
|
+
get hookId() {
|
|
65
|
+
return this._hookId;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @returns {import("../hooks/EvmHookCall.js").default | undefined}
|
|
71
|
+
*/
|
|
72
|
+
get evmHookCall() {
|
|
73
|
+
return this._evmHookCall;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* @param {HieroProto.proto.IHookCall} hookCall
|
|
79
|
+
* @returns {HookCall}
|
|
80
|
+
*/
|
|
81
|
+
static _fromProtobuf(hookCall) {
|
|
82
|
+
return new HookCall({
|
|
83
|
+
hookId: hookCall.hookId ?? undefined,
|
|
84
|
+
evmHookCall: hookCall.evmHookCall ? _EvmHookCall.default._fromProtobuf(hookCall.evmHookCall) : undefined
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @returns {import("@hiero-ledger/proto").proto.HookCall}}
|
|
91
|
+
*/
|
|
92
|
+
_toProtobuf() {
|
|
93
|
+
return {
|
|
94
|
+
hookId: this._hookId,
|
|
95
|
+
evmHookCall: this._evmHookCall?._toProtobuf()
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
var _default = exports.default = HookCall;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export default HookCall;
|
|
2
|
+
export namespace HieroProto {
|
|
3
|
+
namespace proto {
|
|
4
|
+
type IHookCall = import("@hiero-ledger/proto").proto.IHookCall;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* Specifies a call to a hook from within a transaction.
|
|
10
|
+
* <p>
|
|
11
|
+
* Often the hook's entity is implied by the nature of the call site. For example, when using an account allowance hook
|
|
12
|
+
* inside a crypto transfer, the hook's entity is necessarily the account whose authorization is required.
|
|
13
|
+
* <p>
|
|
14
|
+
* For future extension points where the hook owner is not forced by the context, we include the option to fully
|
|
15
|
+
* specify the hook id for the call.
|
|
16
|
+
*/
|
|
17
|
+
declare class HookCall {
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @param {HieroProto.proto.IHookCall} hookCall
|
|
21
|
+
* @returns {HookCall}
|
|
22
|
+
*/
|
|
23
|
+
static _fromProtobuf(hookCall: HieroProto.proto.IHookCall): HookCall;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param {object} props
|
|
27
|
+
* @param {Long} [props.hookId]
|
|
28
|
+
* @param {import("../hooks/EvmHookCall.js").default} [props.evmHookCall]
|
|
29
|
+
*/
|
|
30
|
+
constructor(props?: {
|
|
31
|
+
hookId?: import("long") | undefined;
|
|
32
|
+
evmHookCall?: EvmHookCall | undefined;
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param {Long} hookId
|
|
37
|
+
* @returns {this}
|
|
38
|
+
*/
|
|
39
|
+
setHookId(hookId: Long): this;
|
|
40
|
+
_hookId: import("long") | undefined;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {import("../hooks/EvmHookCall.js").default} evmHookCall
|
|
44
|
+
* @returns {this}
|
|
45
|
+
*/
|
|
46
|
+
setCall(evmHookCall: import("../hooks/EvmHookCall.js").default): this;
|
|
47
|
+
_evmHookCall: EvmHookCall | undefined;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @returns {Long | undefined}
|
|
51
|
+
*/
|
|
52
|
+
get hookId(): Long | undefined;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @returns {import("../hooks/EvmHookCall.js").default | undefined}
|
|
56
|
+
*/
|
|
57
|
+
get evmHookCall(): import("../hooks/EvmHookCall.js").default | undefined;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @returns {import("@hiero-ledger/proto").proto.HookCall}}
|
|
61
|
+
*/
|
|
62
|
+
_toProtobuf(): import("@hiero-ledger/proto").proto.HookCall;
|
|
63
|
+
}
|
|
64
|
+
import EvmHookCall from "../hooks/EvmHookCall.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"./EvmHookCall.js";class t{constructor(o={}){void 0!==o.hookId&&this.setHookId(o.hookId),void 0!==o.evmHookCall&&this.setCall(o.evmHookCall)}setHookId(o){return this._hookId=o,this}setCall(o){return this._evmHookCall=o,this}get hookId(){return this._hookId}get evmHookCall(){return this._evmHookCall}static _fromProtobuf(l){return new t({hookId:l.hookId??void 0,evmHookCall:l.evmHookCall?o._fromProtobuf(l.evmHookCall):void 0})}_toProtobuf(){return{hookId:this._hookId,evmHookCall:this._evmHookCall?._toProtobuf()}}}export{t as default};
|
|
2
|
+
//# sourceMappingURL=HookCall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HookCall.js","sources":["../../src/hooks/HookCall.js"],"sourcesContent":["/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IHookCall} HieroProto.proto.IHookCall\n */\n\nimport EvmHookCall from \"../hooks/EvmHookCall.js\";\n\n/**\n *\n * Specifies a call to a hook from within a transaction.\n * <p>\n * Often the hook's entity is implied by the nature of the call site. For example, when using an account allowance hook\n * inside a crypto transfer, the hook's entity is necessarily the account whose authorization is required.\n * <p>\n * For future extension points where the hook owner is not forced by the context, we include the option to fully\n * specify the hook id for the call.\n */\nclass HookCall {\n /**\n *\n * @param {object} props\n * @param {Long} [props.hookId]\n * @param {import(\"../hooks/EvmHookCall.js\").default} [props.evmHookCall]\n */\n constructor(props = {}) {\n if (props.hookId !== undefined) {\n this.setHookId(props.hookId);\n }\n\n if (props.evmHookCall !== undefined) {\n this.setCall(props.evmHookCall);\n }\n }\n\n /**\n *\n * @param {Long} hookId\n * @returns {this}\n */\n setHookId(hookId) {\n this._hookId = hookId;\n return this;\n }\n\n /**\n *\n * @param {import(\"../hooks/EvmHookCall.js\").default} evmHookCall\n * @returns {this}\n */\n setCall(evmHookCall) {\n this._evmHookCall = evmHookCall;\n return this;\n }\n\n /**\n *\n * @returns {Long | undefined}\n */\n get hookId() {\n return this._hookId;\n }\n\n /**\n *\n * @returns {import(\"../hooks/EvmHookCall.js\").default | undefined}\n */\n get evmHookCall() {\n return this._evmHookCall;\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IHookCall} hookCall\n * @returns {HookCall}\n */\n static _fromProtobuf(hookCall) {\n return new HookCall({\n hookId: hookCall.hookId ?? undefined,\n evmHookCall: hookCall.evmHookCall\n ? EvmHookCall._fromProtobuf(hookCall.evmHookCall)\n : undefined,\n });\n }\n\n /**\n *\n * @returns {import(\"@hiero-ledger/proto\").proto.HookCall}}\n */\n _toProtobuf() {\n return {\n hookId: this._hookId,\n evmHookCall: this._evmHookCall?._toProtobuf(),\n };\n }\n}\n\nexport default HookCall;\n"],"names":["HookCall","constructor","props","undefined","hookId","this","setHookId","evmHookCall","setCall","_hookId","_evmHookCall","_fromProtobuf","hookCall","EvmHookCall","_toProtobuf"],"mappings":"gCAiBA,MAAMA,EAOF,WAAAC,CAAYC,EAAQ,SACKC,IAAjBD,EAAME,QACNC,KAAKC,UAAUJ,EAAME,aAGCD,IAAtBD,EAAMK,aACNF,KAAKG,QAAQN,EAAMK,YAE/B,CAOI,SAAAD,CAAUF,GAEN,OADAC,KAAKI,QAAUL,EACRC,IACf,CAOI,OAAAG,CAAQD,GAEJ,OADAF,KAAKK,aAAeH,EACbF,IACf,CAMI,UAAID,GACA,OAAOC,KAAKI,OACpB,CAMI,eAAIF,GACA,OAAOF,KAAKK,YACpB,CAOI,oBAAOC,CAAcC,GACjB,OAAO,IAAIZ,EAAS,CAChBI,OAAQQ,EAASR,aAAUD,EAC3BI,YAAaK,EAASL,YAChBM,EAAYF,cAAcC,EAASL,kBACnCJ,GAElB,CAMI,WAAAW,GACI,MAAO,CACHV,OAAQC,KAAKI,QACbF,YAAaF,KAAKK,cAAcI,cAE5C"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _long = _interopRequireDefault(require("long"));
|
|
8
|
+
var _HookExtensionPoint = _interopRequireDefault(require("./HookExtensionPoint.cjs"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
/**
|
|
11
|
+
* The details of a hook's creation.
|
|
12
|
+
*/
|
|
13
|
+
class HookCreationDetails {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param {object} props
|
|
17
|
+
* @param {HookExtensionPoint} [props.extensionPoint]
|
|
18
|
+
* @param {Long | number} [props.hookId]
|
|
19
|
+
* @param {import("./EvmHook.js").default} [props.evmHook]
|
|
20
|
+
* @param {import("../Key.js").default} [props.adminKey]
|
|
21
|
+
*/
|
|
22
|
+
constructor(props = {}) {
|
|
23
|
+
/**
|
|
24
|
+
* @private
|
|
25
|
+
* @type {HookExtensionPoint | null}
|
|
26
|
+
*/
|
|
27
|
+
this._extensionPoint = null;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
* @type {Long | null}
|
|
32
|
+
*/
|
|
33
|
+
this._hookId = null;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @private
|
|
37
|
+
* @type {import("./EvmHook.js").default | null}
|
|
38
|
+
*/
|
|
39
|
+
this._evmHook = null;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @private
|
|
43
|
+
* @type {import("../Key.js").default | null}
|
|
44
|
+
*/
|
|
45
|
+
this._adminKey = null;
|
|
46
|
+
if (props.extensionPoint != null) {
|
|
47
|
+
this.setExtensionPoint(props.extensionPoint);
|
|
48
|
+
}
|
|
49
|
+
if (props.hookId != null) {
|
|
50
|
+
this.setHookId(props.hookId);
|
|
51
|
+
}
|
|
52
|
+
if (props.evmHook != null) {
|
|
53
|
+
this.setEvmHook(props.evmHook);
|
|
54
|
+
}
|
|
55
|
+
if (props.adminKey != null) {
|
|
56
|
+
this.setAdminKey(props.adminKey);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @param {HookExtensionPoint} extensionPoint
|
|
63
|
+
* @returns {this}
|
|
64
|
+
*/
|
|
65
|
+
setExtensionPoint(extensionPoint) {
|
|
66
|
+
this._extensionPoint = extensionPoint;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @param {Long | number} hookId
|
|
73
|
+
* @returns {this}
|
|
74
|
+
*/
|
|
75
|
+
setHookId(hookId) {
|
|
76
|
+
this._hookId = hookId instanceof _long.default ? hookId : _long.default.fromNumber(hookId);
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @param {import("./EvmHook.js").default} evmHook
|
|
83
|
+
* @returns {this}
|
|
84
|
+
*/
|
|
85
|
+
setEvmHook(evmHook) {
|
|
86
|
+
this._evmHook = evmHook;
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @param {import("../Key.js").default} adminKey
|
|
93
|
+
* @returns {this}
|
|
94
|
+
*/
|
|
95
|
+
setAdminKey(adminKey) {
|
|
96
|
+
this._adminKey = adminKey;
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @returns {HookExtensionPoint | null}
|
|
103
|
+
*/
|
|
104
|
+
get extensionPoint() {
|
|
105
|
+
return this._extensionPoint;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @returns {Long | null}
|
|
111
|
+
*/
|
|
112
|
+
get hookId() {
|
|
113
|
+
return this._hookId;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @returns {import("./EvmHook.js").default | null}
|
|
119
|
+
*/
|
|
120
|
+
get evmHook() {
|
|
121
|
+
return this._evmHook;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @returns {import("../Key.js").default | null}
|
|
127
|
+
*/
|
|
128
|
+
get adminKey() {
|
|
129
|
+
return this._adminKey;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @returns {import("@hiero-ledger/proto").com.hedera.hapi.node.hooks.IHookCreationDetails}
|
|
135
|
+
*/
|
|
136
|
+
_toProtobuf() {
|
|
137
|
+
if (this._extensionPoint == null) {
|
|
138
|
+
throw new Error("extensionPoint is required for HookCreationDetails");
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
extensionPoint: (/** @type {import("@hiero-ledger/proto").com.hedera.hapi.node.hooks.HookExtensionPoint} */
|
|
142
|
+
this._extensionPoint),
|
|
143
|
+
hookId: this._hookId,
|
|
144
|
+
evmHook: this._evmHook != null ? this._evmHook._toProtobuf() : null,
|
|
145
|
+
adminKey: this._adminKey != null ? this._adminKey._toProtobufKey() : null
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
var _default = exports.default = HookCreationDetails;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export default HookCreationDetails;
|
|
2
|
+
/**
|
|
3
|
+
* The details of a hook's creation.
|
|
4
|
+
*/
|
|
5
|
+
declare class HookCreationDetails {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param {object} props
|
|
9
|
+
* @param {HookExtensionPoint} [props.extensionPoint]
|
|
10
|
+
* @param {Long | number} [props.hookId]
|
|
11
|
+
* @param {import("./EvmHook.js").default} [props.evmHook]
|
|
12
|
+
* @param {import("../Key.js").default} [props.adminKey]
|
|
13
|
+
*/
|
|
14
|
+
constructor(props?: {
|
|
15
|
+
extensionPoint?: HookExtensionPoint | undefined;
|
|
16
|
+
hookId?: number | Long | undefined;
|
|
17
|
+
evmHook?: import("./EvmHook.js").default | undefined;
|
|
18
|
+
adminKey?: import("../Key.js").default | undefined;
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* @private
|
|
22
|
+
* @type {HookExtensionPoint | null}
|
|
23
|
+
*/
|
|
24
|
+
private _extensionPoint;
|
|
25
|
+
/**
|
|
26
|
+
* @private
|
|
27
|
+
* @type {Long | null}
|
|
28
|
+
*/
|
|
29
|
+
private _hookId;
|
|
30
|
+
/**
|
|
31
|
+
* @private
|
|
32
|
+
* @type {import("./EvmHook.js").default | null}
|
|
33
|
+
*/
|
|
34
|
+
private _evmHook;
|
|
35
|
+
/**
|
|
36
|
+
* @private
|
|
37
|
+
* @type {import("../Key.js").default | null}
|
|
38
|
+
*/
|
|
39
|
+
private _adminKey;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @param {HookExtensionPoint} extensionPoint
|
|
43
|
+
* @returns {this}
|
|
44
|
+
*/
|
|
45
|
+
setExtensionPoint(extensionPoint: HookExtensionPoint): this;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @param {Long | number} hookId
|
|
49
|
+
* @returns {this}
|
|
50
|
+
*/
|
|
51
|
+
setHookId(hookId: Long | number): this;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @param {import("./EvmHook.js").default} evmHook
|
|
55
|
+
* @returns {this}
|
|
56
|
+
*/
|
|
57
|
+
setEvmHook(evmHook: import("./EvmHook.js").default): this;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @param {import("../Key.js").default} adminKey
|
|
61
|
+
* @returns {this}
|
|
62
|
+
*/
|
|
63
|
+
setAdminKey(adminKey: import("../Key.js").default): this;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @returns {HookExtensionPoint | null}
|
|
67
|
+
*/
|
|
68
|
+
get extensionPoint(): HookExtensionPoint | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @returns {Long | null}
|
|
72
|
+
*/
|
|
73
|
+
get hookId(): Long | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @returns {import("./EvmHook.js").default | null}
|
|
77
|
+
*/
|
|
78
|
+
get evmHook(): import("./EvmHook.js").default | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @returns {import("../Key.js").default | null}
|
|
82
|
+
*/
|
|
83
|
+
get adminKey(): import("../Key.js").default | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @returns {import("@hiero-ledger/proto").com.hedera.hapi.node.hooks.IHookCreationDetails}
|
|
87
|
+
*/
|
|
88
|
+
_toProtobuf(): import("@hiero-ledger/proto").com.hedera.hapi.node.hooks.IHookCreationDetails;
|
|
89
|
+
}
|
|
90
|
+
import HookExtensionPoint from "./HookExtensionPoint.js";
|
|
91
|
+
import Long from "long";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"long";class t{constructor(o={}){this._extensionPoint=null,this._hookId=null,this._evmHook=null,this._adminKey=null,null!=o.extensionPoint&&this.setExtensionPoint(o.extensionPoint),null!=o.hookId&&this.setHookId(o.hookId),null!=o.evmHook&&this.setEvmHook(o.evmHook),null!=o.adminKey&&this.setAdminKey(o.adminKey)}setExtensionPoint(o){return this._extensionPoint=o,this}setHookId(t){return this._hookId=t instanceof o?t:o.fromNumber(t),this}setEvmHook(o){return this._evmHook=o,this}setAdminKey(o){return this._adminKey=o,this}get extensionPoint(){return this._extensionPoint}get hookId(){return this._hookId}get evmHook(){return this._evmHook}get adminKey(){return this._adminKey}_toProtobuf(){if(null==this._extensionPoint)throw new Error("extensionPoint is required for HookCreationDetails");return{extensionPoint:this._extensionPoint,hookId:this._hookId,evmHook:null!=this._evmHook?this._evmHook._toProtobuf():null,adminKey:null!=this._adminKey?this._adminKey._toProtobufKey():null}}}export{t as default};
|
|
2
|
+
//# sourceMappingURL=HookCreationDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HookCreationDetails.js","sources":["../../src/hooks/HookCreationDetails.js"],"sourcesContent":["import Long from \"long\";\nimport HookExtensionPoint from \"./HookExtensionPoint.js\";\n\n/**\n * The details of a hook's creation.\n */\nclass HookCreationDetails {\n /**\n *\n * @param {object} props\n * @param {HookExtensionPoint} [props.extensionPoint]\n * @param {Long | number} [props.hookId]\n * @param {import(\"./EvmHook.js\").default} [props.evmHook]\n * @param {import(\"../Key.js\").default} [props.adminKey]\n */\n constructor(props = {}) {\n /**\n * @private\n * @type {HookExtensionPoint | null}\n */\n this._extensionPoint = null;\n\n /**\n * @private\n * @type {Long | null}\n */\n this._hookId = null;\n\n /**\n * @private\n * @type {import(\"./EvmHook.js\").default | null}\n */\n this._evmHook = null;\n\n /**\n * @private\n * @type {import(\"../Key.js\").default | null}\n */\n this._adminKey = null;\n\n if (props.extensionPoint != null) {\n this.setExtensionPoint(props.extensionPoint);\n }\n\n if (props.hookId != null) {\n this.setHookId(props.hookId);\n }\n\n if (props.evmHook != null) {\n this.setEvmHook(props.evmHook);\n }\n\n if (props.adminKey != null) {\n this.setAdminKey(props.adminKey);\n }\n }\n\n /**\n *\n * @param {HookExtensionPoint} extensionPoint\n * @returns {this}\n */\n setExtensionPoint(extensionPoint) {\n this._extensionPoint = extensionPoint;\n return this;\n }\n\n /**\n *\n * @param {Long | number} hookId\n * @returns {this}\n */\n setHookId(hookId) {\n this._hookId =\n hookId instanceof Long ? hookId : Long.fromNumber(hookId);\n return this;\n }\n\n /**\n *\n * @param {import(\"./EvmHook.js\").default} evmHook\n * @returns {this}\n */\n setEvmHook(evmHook) {\n this._evmHook = evmHook;\n return this;\n }\n\n /**\n *\n * @param {import(\"../Key.js\").default} adminKey\n * @returns {this}\n */\n setAdminKey(adminKey) {\n this._adminKey = adminKey;\n return this;\n }\n\n /**\n *\n * @returns {HookExtensionPoint | null}\n */\n get extensionPoint() {\n return this._extensionPoint;\n }\n\n /**\n *\n * @returns {Long | null}\n */\n get hookId() {\n return this._hookId;\n }\n\n /**\n *\n * @returns {import(\"./EvmHook.js\").default | null}\n */\n get evmHook() {\n return this._evmHook;\n }\n\n /**\n *\n * @returns {import(\"../Key.js\").default | null}\n */\n get adminKey() {\n return this._adminKey;\n }\n\n /**\n *\n * @returns {import(\"@hiero-ledger/proto\").com.hedera.hapi.node.hooks.IHookCreationDetails}\n */\n _toProtobuf() {\n if (this._extensionPoint == null) {\n throw new Error(\n \"extensionPoint is required for HookCreationDetails\",\n );\n }\n\n return {\n extensionPoint:\n /** @type {import(\"@hiero-ledger/proto\").com.hedera.hapi.node.hooks.HookExtensionPoint} */ (\n this._extensionPoint\n ),\n hookId: this._hookId,\n evmHook: this._evmHook != null ? this._evmHook._toProtobuf() : null,\n adminKey:\n this._adminKey != null ? this._adminKey._toProtobufKey() : null,\n };\n }\n}\n\nexport default HookCreationDetails;\n"],"names":["HookCreationDetails","constructor","props","this","_extensionPoint","_hookId","_evmHook","_adminKey","extensionPoint","setExtensionPoint","hookId","setHookId","evmHook","setEvmHook","adminKey","setAdminKey","Long","fromNumber","_toProtobuf","Error","_toProtobufKey"],"mappings":"oBAMA,MAAMA,EASF,WAAAC,CAAYC,EAAQ,IAKhBC,KAAKC,gBAAkB,KAMvBD,KAAKE,QAAU,KAMfF,KAAKG,SAAW,KAMhBH,KAAKI,UAAY,KAEW,MAAxBL,EAAMM,gBACNL,KAAKM,kBAAkBP,EAAMM,gBAGb,MAAhBN,EAAMQ,QACNP,KAAKQ,UAAUT,EAAMQ,QAGJ,MAAjBR,EAAMU,SACNT,KAAKU,WAAWX,EAAMU,SAGJ,MAAlBV,EAAMY,UACNX,KAAKY,YAAYb,EAAMY,SAEnC,CAOI,iBAAAL,CAAkBD,GAEd,OADAL,KAAKC,gBAAkBI,EAChBL,IACf,CAOI,SAAAQ,CAAUD,GAGN,OAFAP,KAAKE,QACDK,aAAkBM,EAAON,EAASM,EAAKC,WAAWP,GAC/CP,IACf,CAOI,UAAAU,CAAWD,GAEP,OADAT,KAAKG,SAAWM,EACTT,IACf,CAOI,WAAAY,CAAYD,GAER,OADAX,KAAKI,UAAYO,EACVX,IACf,CAMI,kBAAIK,GACA,OAAOL,KAAKC,eACpB,CAMI,UAAIM,GACA,OAAOP,KAAKE,OACpB,CAMI,WAAIO,GACA,OAAOT,KAAKG,QACpB,CAMI,YAAIQ,GACA,OAAOX,KAAKI,SACpB,CAMI,WAAAW,GACI,GAA4B,MAAxBf,KAAKC,gBACL,MAAM,IAAIe,MACN,sDAIR,MAAO,CACHX,eAEQL,KACH,gBACLO,OAAQP,KAAKE,QACbO,QAA0B,MAAjBT,KAAKG,SAAmBH,KAAKG,SAASY,cAAgB,KAC/DJ,SACsB,MAAlBX,KAAKI,UAAoBJ,KAAKI,UAAUa,iBAAmB,KAE3E"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _AccountId = _interopRequireDefault(require("../account/AccountId.cjs"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
/**
|
|
10
|
+
* The id of an entity using a hook.
|
|
11
|
+
*/
|
|
12
|
+
class HookEntityId {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param {object} props
|
|
16
|
+
* @param {AccountId} [props.accountId]
|
|
17
|
+
*/
|
|
18
|
+
constructor(props = {}) {
|
|
19
|
+
/**
|
|
20
|
+
* @private
|
|
21
|
+
* @type {?AccountId}
|
|
22
|
+
*/
|
|
23
|
+
this._accountId = null;
|
|
24
|
+
if (props.accountId != null) {
|
|
25
|
+
this.setAccountId(props.accountId);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @param {AccountId} accountId
|
|
31
|
+
* @returns {this}
|
|
32
|
+
*/
|
|
33
|
+
setAccountId(accountId) {
|
|
34
|
+
this._accountId = accountId;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @returns {AccountId | null}
|
|
41
|
+
*/
|
|
42
|
+
get accountId() {
|
|
43
|
+
return this._accountId;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @returns {import("@hiero-ledger/proto").proto.IHookEntityId}
|
|
49
|
+
*/
|
|
50
|
+
_toProtobuf() {
|
|
51
|
+
return {
|
|
52
|
+
accountId: this._accountId != null ? this._accountId._toProtobuf() : null
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param {import("@hiero-ledger/proto").proto.IHookEntityId} hookEntityId
|
|
59
|
+
* @returns {HookEntityId}
|
|
60
|
+
*/
|
|
61
|
+
static _fromProtobuf(hookEntityId) {
|
|
62
|
+
return new HookEntityId({
|
|
63
|
+
accountId: hookEntityId.accountId != null ? _AccountId.default._fromProtobuf(hookEntityId.accountId) : undefined
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
var _default = exports.default = HookEntityId;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default HookEntityId;
|
|
2
|
+
/**
|
|
3
|
+
* The id of an entity using a hook.
|
|
4
|
+
*/
|
|
5
|
+
declare class HookEntityId {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param {import("@hiero-ledger/proto").proto.IHookEntityId} hookEntityId
|
|
9
|
+
* @returns {HookEntityId}
|
|
10
|
+
*/
|
|
11
|
+
static _fromProtobuf(hookEntityId: import("@hiero-ledger/proto").proto.IHookEntityId): HookEntityId;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param {object} props
|
|
15
|
+
* @param {AccountId} [props.accountId]
|
|
16
|
+
*/
|
|
17
|
+
constructor(props?: {
|
|
18
|
+
accountId?: AccountId | undefined;
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* @private
|
|
22
|
+
* @type {?AccountId}
|
|
23
|
+
*/
|
|
24
|
+
private _accountId;
|
|
25
|
+
/**
|
|
26
|
+
* @param {AccountId} accountId
|
|
27
|
+
* @returns {this}
|
|
28
|
+
*/
|
|
29
|
+
setAccountId(accountId: AccountId): this;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @returns {AccountId | null}
|
|
33
|
+
*/
|
|
34
|
+
get accountId(): AccountId | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @returns {import("@hiero-ledger/proto").proto.IHookEntityId}
|
|
38
|
+
*/
|
|
39
|
+
_toProtobuf(): import("@hiero-ledger/proto").proto.IHookEntityId;
|
|
40
|
+
}
|
|
41
|
+
import AccountId from "../account/AccountId.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import t from"../account/AccountId.js";class c{constructor(t={}){this._accountId=null,null!=t.accountId&&this.setAccountId(t.accountId)}setAccountId(t){return this._accountId=t,this}get accountId(){return this._accountId}_toProtobuf(){return{accountId:null!=this._accountId?this._accountId._toProtobuf():null}}static _fromProtobuf(o){return new c({accountId:null!=o.accountId?t._fromProtobuf(o.accountId):void 0})}}export{c as default};
|
|
2
|
+
//# sourceMappingURL=HookEntityId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HookEntityId.js","sources":["../../src/hooks/HookEntityId.js"],"sourcesContent":["import AccountId from \"../account/AccountId.js\";\n\n/**\n * The id of an entity using a hook.\n */\nclass HookEntityId {\n /**\n *\n * @param {object} props\n * @param {AccountId} [props.accountId]\n */\n constructor(props = {}) {\n /**\n * @private\n * @type {?AccountId}\n */\n this._accountId = null;\n\n if (props.accountId != null) {\n this.setAccountId(props.accountId);\n }\n }\n\n /**\n * @param {AccountId} accountId\n * @returns {this}\n */\n setAccountId(accountId) {\n this._accountId = accountId;\n return this;\n }\n\n /**\n *\n * @returns {AccountId | null}\n */\n get accountId() {\n return this._accountId;\n }\n\n /**\n *\n * @returns {import(\"@hiero-ledger/proto\").proto.IHookEntityId}\n */\n _toProtobuf() {\n return {\n accountId:\n this._accountId != null ? this._accountId._toProtobuf() : null,\n };\n }\n\n /**\n *\n * @param {import(\"@hiero-ledger/proto\").proto.IHookEntityId} hookEntityId\n * @returns {HookEntityId}\n */\n static _fromProtobuf(hookEntityId) {\n return new HookEntityId({\n accountId:\n hookEntityId.accountId != null\n ? AccountId._fromProtobuf(hookEntityId.accountId)\n : undefined,\n });\n }\n}\n\nexport default HookEntityId;\n"],"names":["HookEntityId","constructor","props","this","_accountId","accountId","setAccountId","_toProtobuf","_fromProtobuf","hookEntityId","AccountId","undefined"],"mappings":"uCAKA,MAAMA,EAMF,WAAAC,CAAYC,EAAQ,IAKhBC,KAAKC,WAAa,KAEK,MAAnBF,EAAMG,WACNF,KAAKG,aAAaJ,EAAMG,UAEpC,CAMI,YAAAC,CAAaD,GAET,OADAF,KAAKC,WAAaC,EACXF,IACf,CAMI,aAAIE,GACA,OAAOF,KAAKC,UACpB,CAMI,WAAAG,GACI,MAAO,CACHF,UACuB,MAAnBF,KAAKC,WAAqBD,KAAKC,WAAWG,cAAgB,KAE1E,CAOI,oBAAOC,CAAcC,GACjB,OAAO,IAAIT,EAAa,CACpBK,UAC8B,MAA1BI,EAAaJ,UACPK,EAAUF,cAAcC,EAAaJ,gBACrCM,GAEtB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.HookExtensionPoint = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* @namespace proto
|
|
9
|
+
* @typedef {import("@hiero-ledger/proto").com.hedera.hapi.node.hooks.HookExtensionPoint} HieroHookExtensionPoint
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The Hiero extension points that accept a hook.
|
|
14
|
+
*/
|
|
15
|
+
class HookExtensionPoint {
|
|
16
|
+
/**
|
|
17
|
+
* @hideconstructor
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
constructor() {}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Used to customize an account's allowances during a CryptoTransfer transaction.
|
|
24
|
+
* @returns {HookExtensionPoint}
|
|
25
|
+
*/
|
|
26
|
+
static get ACCOUNT_ALLOWANCE_HOOK() {
|
|
27
|
+
return 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.HookExtensionPoint = HookExtensionPoint;
|
|
31
|
+
var _default = exports.default = HookExtensionPoint;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @namespace proto
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").com.hedera.hapi.node.hooks.HookExtensionPoint} HieroHookExtensionPoint
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The Hiero extension points that accept a hook.
|
|
7
|
+
*/
|
|
8
|
+
export class HookExtensionPoint {
|
|
9
|
+
/**
|
|
10
|
+
* Used to customize an account's allowances during a CryptoTransfer transaction.
|
|
11
|
+
* @returns {HookExtensionPoint}
|
|
12
|
+
*/
|
|
13
|
+
static get ACCOUNT_ALLOWANCE_HOOK(): HookExtensionPoint;
|
|
14
|
+
}
|
|
15
|
+
export default HookExtensionPoint;
|
|
16
|
+
export type HieroHookExtensionPoint = import("@hiero-ledger/proto").com.hedera.hapi.node.hooks.HookExtensionPoint;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HookExtensionPoint.js","sources":["../../src/hooks/HookExtensionPoint.js"],"sourcesContent":["/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").com.hedera.hapi.node.hooks.HookExtensionPoint} HieroHookExtensionPoint\n */\n\n/**\n * The Hiero extension points that accept a hook.\n */\nexport class HookExtensionPoint {\n /**\n * @hideconstructor\n * @internal\n */\n constructor() {}\n\n /**\n * Used to customize an account's allowances during a CryptoTransfer transaction.\n * @returns {HookExtensionPoint}\n */\n static get ACCOUNT_ALLOWANCE_HOOK() {\n return 0;\n }\n}\n\nexport default HookExtensionPoint;\n"],"names":["HookExtensionPoint","constructor","ACCOUNT_ALLOWANCE_HOOK"],"mappings":"AAQO,MAAMA,EAKT,WAAAC,GAAc,CAMd,iCAAWC,GACP,OAAO,CACf"}
|