@sravankumar02/sdk-core 1.0.0 → 2.0.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.
Files changed (154) hide show
  1. package/out/abi/codec/binary.js.map +1 -1
  2. package/out/abi/codec/managedDecimal.js +17 -5
  3. package/out/abi/codec/managedDecimal.js.map +1 -1
  4. package/out/abi/codec/managedDecimalSigned.js +17 -5
  5. package/out/abi/codec/managedDecimalSigned.js.map +1 -1
  6. package/out/abi/index.d.ts +0 -3
  7. package/out/abi/index.js +0 -3
  8. package/out/abi/index.js.map +1 -1
  9. package/out/abi/nativeSerializer.js +1 -1
  10. package/out/abi/nativeSerializer.js.map +1 -1
  11. package/out/abi/typesystem/typeMapper.js +2 -0
  12. package/out/abi/typesystem/typeMapper.js.map +1 -1
  13. package/out/accountManagement/accountController.d.ts +2 -1
  14. package/out/accountManagement/accountController.js +11 -20
  15. package/out/accountManagement/accountController.js.map +1 -1
  16. package/out/accountManagement/accountTransactionsFactory.d.ts +10 -5
  17. package/out/accountManagement/accountTransactionsFactory.js +45 -34
  18. package/out/accountManagement/accountTransactionsFactory.js.map +1 -1
  19. package/out/core/address.d.ts +1 -25
  20. package/out/core/address.js +3 -41
  21. package/out/core/address.js.map +1 -1
  22. package/out/core/baseController.d.ts +9 -3
  23. package/out/core/baseController.js +24 -10
  24. package/out/core/baseController.js.map +1 -1
  25. package/out/core/baseFactory.d.ts +25 -0
  26. package/out/core/baseFactory.js +40 -0
  27. package/out/core/baseFactory.js.map +1 -0
  28. package/out/core/codeMetadata.d.ts +0 -10
  29. package/out/core/codeMetadata.js +0 -27
  30. package/out/core/codeMetadata.js.map +1 -1
  31. package/out/core/constants.d.ts +1 -0
  32. package/out/core/constants.js +2 -1
  33. package/out/core/constants.js.map +1 -1
  34. package/out/core/errors.d.ts +9 -0
  35. package/out/core/errors.js +17 -2
  36. package/out/core/errors.js.map +1 -1
  37. package/out/core/index.d.ts +2 -0
  38. package/out/core/index.js +2 -0
  39. package/out/core/index.js.map +1 -1
  40. package/out/core/interfaces.d.ts +5 -0
  41. package/out/core/tokens.d.ts +1 -77
  42. package/out/core/tokens.js +2 -144
  43. package/out/core/tokens.js.map +1 -1
  44. package/out/core/transaction.d.ts +1 -144
  45. package/out/core/transaction.js +0 -209
  46. package/out/core/transaction.js.map +1 -1
  47. package/out/core/transactionStatus.d.ts +0 -5
  48. package/out/core/transactionStatus.js +0 -7
  49. package/out/core/transactionStatus.js.map +1 -1
  50. package/out/core/transactionsFactoryConfig.d.ts +16 -0
  51. package/out/core/transactionsFactoryConfig.js +17 -0
  52. package/out/core/transactionsFactoryConfig.js.map +1 -1
  53. package/out/delegation/delegationController.d.ts +2 -1
  54. package/out/delegation/delegationController.js +39 -134
  55. package/out/delegation/delegationController.js.map +1 -1
  56. package/out/delegation/delegationTransactionsFactory.d.ts +23 -20
  57. package/out/delegation/delegationTransactionsFactory.js +183 -159
  58. package/out/delegation/delegationTransactionsFactory.js.map +1 -1
  59. package/out/entrypoints/entrypoints.d.ts +36 -3
  60. package/out/entrypoints/entrypoints.js +102 -27
  61. package/out/entrypoints/entrypoints.js.map +1 -1
  62. package/out/gasEstimator/gasLimitEstimator.d.ts +19 -0
  63. package/out/gasEstimator/gasLimitEstimator.js +22 -0
  64. package/out/gasEstimator/gasLimitEstimator.js.map +1 -0
  65. package/out/gasEstimator/index.d.ts +1 -0
  66. package/out/gasEstimator/index.js +6 -0
  67. package/out/gasEstimator/index.js.map +1 -0
  68. package/out/governance/governanceController.d.ts +2 -1
  69. package/out/governance/governanceController.js +13 -43
  70. package/out/governance/governanceController.js.map +1 -1
  71. package/out/governance/governanceTransactionsFactory.d.ts +10 -8
  72. package/out/governance/governanceTransactionsFactory.js +60 -52
  73. package/out/governance/governanceTransactionsFactory.js.map +1 -1
  74. package/out/index.d.ts +1 -0
  75. package/out/index.js +1 -0
  76. package/out/index.js.map +1 -1
  77. package/out/multisig/index.d.ts +2 -0
  78. package/out/multisig/index.js +2 -0
  79. package/out/multisig/index.js.map +1 -1
  80. package/out/multisig/multisigController.d.ts +2 -1
  81. package/out/multisig/multisigController.js +61 -117
  82. package/out/multisig/multisigController.js.map +1 -1
  83. package/out/multisig/multisigTransactionsFactory.d.ts +26 -24
  84. package/out/multisig/multisigTransactionsFactory.js +57 -54
  85. package/out/multisig/multisigTransactionsFactory.js.map +1 -1
  86. package/out/multisig/proposeTransferExecuteContractInput.d.ts +2 -2
  87. package/out/multisig/proposeTransferExecuteContractInput.js +4 -4
  88. package/out/multisig/proposeTransferExecuteContractInput.js.map +1 -1
  89. package/out/multisig/resources.d.ts +2 -2
  90. package/out/networkProviders/apiNetworkProvider.js +1 -3
  91. package/out/networkProviders/apiNetworkProvider.js.map +1 -1
  92. package/out/networkProviders/proxyNetworkProvider.js +20 -1
  93. package/out/networkProviders/proxyNetworkProvider.js.map +1 -1
  94. package/out/networkProviders/tokens.d.ts +1 -1
  95. package/out/networkProviders/tokens.js +14 -11
  96. package/out/networkProviders/tokens.js.map +1 -1
  97. package/out/smartContracts/resources.d.ts +6 -2
  98. package/out/smartContracts/smartContractController.d.ts +2 -1
  99. package/out/smartContracts/smartContractController.js +10 -22
  100. package/out/smartContracts/smartContractController.js.map +1 -1
  101. package/out/smartContracts/smartContractTransactionsFactory.d.ts +12 -7
  102. package/out/smartContracts/smartContractTransactionsFactory.js +62 -44
  103. package/out/smartContracts/smartContractTransactionsFactory.js.map +1 -1
  104. package/out/tokenManagement/tokenManagementController.d.ts +2 -1
  105. package/out/tokenManagement/tokenManagementController.js +71 -246
  106. package/out/tokenManagement/tokenManagementController.js.map +1 -1
  107. package/out/tokenManagement/tokenManagementTransactionsFactory.d.ts +39 -36
  108. package/out/tokenManagement/tokenManagementTransactionsFactory.js +310 -275
  109. package/out/tokenManagement/tokenManagementTransactionsFactory.js.map +1 -1
  110. package/out/transfers/transferTransactionsFactory.d.ts +10 -8
  111. package/out/transfers/transferTransactionsFactory.js +28 -26
  112. package/out/transfers/transferTransactionsFactory.js.map +1 -1
  113. package/out/transfers/transfersControllers.d.ts +2 -1
  114. package/out/transfers/transfersControllers.js +10 -23
  115. package/out/transfers/transfersControllers.js.map +1 -1
  116. package/out/validators/index.d.ts +2 -0
  117. package/out/validators/index.js +15 -0
  118. package/out/validators/index.js.map +1 -0
  119. package/out/validators/resources.d.ts +40 -0
  120. package/out/validators/resources.js +3 -0
  121. package/out/validators/resources.js.map +1 -0
  122. package/out/validators/validatorsController.d.ts +27 -0
  123. package/out/validators/validatorsController.js +95 -0
  124. package/out/validators/validatorsController.js.map +1 -0
  125. package/out/validators/validatorsSigner.d.ts +9 -0
  126. package/out/validators/validatorsSigner.js +25 -0
  127. package/out/validators/validatorsSigner.js.map +1 -0
  128. package/out/validators/validatorsTransactionsFactory.d.ts +33 -0
  129. package/out/validators/validatorsTransactionsFactory.js +269 -0
  130. package/out/validators/validatorsTransactionsFactory.js.map +1 -0
  131. package/out/wallet/index.d.ts +1 -0
  132. package/out/wallet/index.js +1 -0
  133. package/out/wallet/index.js.map +1 -1
  134. package/out/wallet/userWallet.d.ts +1 -1
  135. package/out/wallet/userWallet.js +1 -1
  136. package/out/wallet/validatorPem.d.ts +12 -0
  137. package/out/wallet/validatorPem.js +45 -0
  138. package/out/wallet/validatorPem.js.map +1 -0
  139. package/out/wallet/validatorSigner.d.ts +9 -1
  140. package/out/wallet/validatorSigner.js +24 -1
  141. package/out/wallet/validatorSigner.js.map +1 -1
  142. package/package.json +6 -5
  143. package/out/abi/code.d.ts +0 -23
  144. package/out/abi/code.js +0 -41
  145. package/out/abi/code.js.map +0 -1
  146. package/out/abi/interaction.d.ts +0 -67
  147. package/out/abi/interaction.js +0 -146
  148. package/out/abi/interaction.js.map +0 -1
  149. package/out/abi/smartContract.d.ts +0 -74
  150. package/out/abi/smartContract.js +0 -208
  151. package/out/abi/smartContract.js.map +0 -1
  152. package/out/core/transactionBuilder.d.ts +0 -32
  153. package/out/core/transactionBuilder.js +0 -45
  154. package/out/core/transactionBuilder.js.map +0 -1
@@ -48,6 +48,22 @@ export declare class TransactionsFactoryConfig {
48
48
  gasLimitForClearProposals: bigint;
49
49
  gasLimitForChangeConfig: bigint;
50
50
  gasLimitForClaimAccumulatedFees: bigint;
51
+ gasLimitForStaking: bigint;
52
+ gasLimitForToppingUp: bigint;
53
+ gasLimitForUnstaking: bigint;
54
+ gasLimitForUnjailing: bigint;
55
+ gasLimitForUnbonding: bigint;
56
+ gasLimitForChangingRewardsAddress: bigint;
57
+ gasLimitForClaiming: bigint;
58
+ gasLimitForUnstakingNodes: bigint;
59
+ gasLimitForUnstakingTokens: bigint;
60
+ gasLimitForUnbondingNodes: bigint;
61
+ gasLimitForUnbondingTokens: bigint;
62
+ gasLimitForCleaningRegisteredData: bigint;
63
+ gasLimitForRestakingUnstakedTokens: bigint;
64
+ gasLimitForCreatingDelegationContractFromValidator: bigint;
65
+ gasLimitForWhitelistForMerge: bigint;
66
+ gasLimitForMergingValidatorToDelegation: bigint;
51
67
  constructor(options: {
52
68
  chainID: string;
53
69
  });
@@ -60,6 +60,23 @@ class TransactionsFactoryConfig {
60
60
  this.gasLimitForClearProposals = 50000000n;
61
61
  this.gasLimitForChangeConfig = 50000000n;
62
62
  this.gasLimitForClaimAccumulatedFees = 1000000n;
63
+ // Configuration for staking operations
64
+ this.gasLimitForStaking = 5000000n;
65
+ this.gasLimitForToppingUp = 5000000n;
66
+ this.gasLimitForUnstaking = 5000000n;
67
+ this.gasLimitForUnjailing = 5000000n;
68
+ this.gasLimitForUnbonding = 5000000n;
69
+ this.gasLimitForChangingRewardsAddress = 5000000n;
70
+ this.gasLimitForClaiming = 5000000n;
71
+ this.gasLimitForUnstakingNodes = 5000000n;
72
+ this.gasLimitForUnstakingTokens = 5000000n;
73
+ this.gasLimitForUnbondingNodes = 5000000n;
74
+ this.gasLimitForUnbondingTokens = 5000000n;
75
+ this.gasLimitForCleaningRegisteredData = 5000000n;
76
+ this.gasLimitForRestakingUnstakedTokens = 5000000n;
77
+ this.gasLimitForCreatingDelegationContractFromValidator = 51000000n;
78
+ this.gasLimitForWhitelistForMerge = 5000000n;
79
+ this.gasLimitForMergingValidatorToDelegation = 50000000n;
63
80
  }
64
81
  }
65
82
  exports.TransactionsFactoryConfig = TransactionsFactoryConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"transactionsFactoryConfig.js","sourceRoot":"","sources":["../../src/core/transactionsFactoryConfig.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AAEzC,MAAa,yBAAyB;IAmDlC,YAAY,OAA4B;QACpC,gCAAgC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,sBAAa,CAAC,iBAAiB,CAAC;QAClD,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;QAC1B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAE7B,qCAAqC;QACrC,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;QAC/B,IAAI,CAAC,8BAA8B,GAAG,SAAS,CAAC;QAChD,IAAI,CAAC,qBAAqB,GAAG,OAAO,CAAC;QACrC,IAAI,CAAC,qBAAqB,GAAG,OAAO,CAAC;QACrC,IAAI,CAAC,sBAAsB,GAAG,SAAS,CAAC;QACxC,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QACjC,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,qBAAqB,GAAG,QAAQ,CAAC;QACtC,IAAI,CAAC,+BAA+B,GAAG,MAAM,CAAC;QAC9C,IAAI,CAAC,0BAA0B,GAAG,MAAM,CAAC;QACzC,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAC;QAClC,IAAI,CAAC,oBAAoB,GAAG,MAAM,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,kBAAkB,CAAC;QACpC,IAAI,CAAC,2BAA2B,GAAG,SAAS,CAAC;QAC7C,IAAI,CAAC,y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vC,IAAI,CAAC,eAAe,GAAG,QAAU,CAAC;QAClC,IAAI,CAAC,0BAA0B,GAAG,SAAW,CAAC;QAC9C,IAAI,CAAC,yBAAyB,GAAG,SAAW,CAAC;QAC7C,IAAI,CAAC,uBAAuB,GAAG,SAAW,CAAC;QAC3C,IAAI,CAAC,+BAA+B,GAAG,QAAU,CAAC;QAElD,uCAAuC;QACvC,IAAI,CAAC,kBAAkB,GAAG,QAAU,CAAC;QACrC,IAAI,CAAC,oBAAoB,GAAG,QAAU,CAAC;QACvC,IAAI,CAAC,oBAAoB,GAAG,QAAU,CAAC;QACvC,IAAI,CAAC,oBAAoB,GAAG,QAAU,CAAC;QACvC,IAAI,CAAC,oBAAoB,GAAG,QAAU,CAAC;QACvC,IAAI,CAAC,iCAAiC,GAAG,QAAU,CAAC;QACpD,IAAI,CAAC,mBAAmB,GAAG,QAAU,CAAC;QACtC,IAAI,CAAC,yBAAyB,GAAG,QAAU,CAAC;QAC5C,IAAI,CAAC,0BAA0B,GAAG,QAAU,CAAC;QAC7C,IAAI,CAAC,yBAAyB,GAAG,QAAU,CAAC;QAC5C,IAAI,CAAC,0BAA0B,GAAG,QAAU,CAAC;QAC7C,IAAI,CAAC,iCAAiC,GAAG,QAAU,CAAC;QACpD,IAAI,CAAC,kCAAkC,GAAG,QAAU,CAAC;QACrD,IAAI,CAAC,kDAAkD,GAAG,SAAW,CAAC;QACtE,IAAI,CAAC,4BAA4B,GAAG,QAAU,CAAC;QAC/C,IAAI,CAAC,uCAAuC,GAAG,SAAW,CAAC;IAC/D,CAAC;CACJ;AArJD,8DAqJC"}
@@ -1,4 +1,4 @@
1
- import { BaseController, BaseControllerInput, IAccount, Transaction, TransactionOnNetwork } from "../core";
1
+ import { BaseController, BaseControllerInput, IAccount, IGasLimitEstimator, Transaction, TransactionOnNetwork } from "../core";
2
2
  import { INetworkProvider } from "../networkProviders/interface";
3
3
  import * as resources from "./resources";
4
4
  export declare class DelegationController extends BaseController {
@@ -8,6 +8,7 @@ export declare class DelegationController extends BaseController {
8
8
  constructor(options: {
9
9
  chainID: string;
10
10
  networkProvider: INetworkProvider;
11
+ gasLimitEstimator?: IGasLimitEstimator;
11
12
  });
12
13
  createTransactionForNewDelegationContract(sender: IAccount, nonce: bigint, options: resources.NewDelegationContractInput & BaseControllerInput): Promise<Transaction>;
13
14
  awaitCompletedCreateNewDelegationContract(txHash: string): Promise<{
@@ -6,7 +6,7 @@ const delegationTransactionsFactory_1 = require("./delegationTransactionsFactory
6
6
  const delegationTransactionsOutcomeParser_1 = require("./delegationTransactionsOutcomeParser");
7
7
  class DelegationController extends core_1.BaseController {
8
8
  constructor(options) {
9
- super();
9
+ super({ gasLimitEstimator: options.gasLimitEstimator });
10
10
  this.transactionAwaiter = new core_1.TransactionWatcher(options.networkProvider);
11
11
  this.factory = new delegationTransactionsFactory_1.DelegationTransactionsFactory({
12
12
  config: new core_1.TransactionsFactoryConfig({ chainID: options.chainID }),
@@ -14,13 +14,8 @@ class DelegationController extends core_1.BaseController {
14
14
  this.parser = new delegationTransactionsOutcomeParser_1.DelegationTransactionsOutcomeParser();
15
15
  }
16
16
  async createTransactionForNewDelegationContract(sender, nonce, options) {
17
- const transaction = this.factory.createTransactionForNewDelegationContract(sender.address, options);
18
- transaction.guardian = options.guardian ?? core_1.Address.empty();
19
- transaction.relayer = options.relayer ?? core_1.Address.empty();
20
- transaction.nonce = nonce;
21
- this.setTransactionGasOptions(transaction, options);
22
- this.setVersionAndOptionsForGuardian(transaction);
23
- transaction.signature = await sender.signTransaction(transaction);
17
+ const transaction = await this.factory.createTransactionForNewDelegationContract(sender.address, options);
18
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
24
19
  return transaction;
25
20
  }
26
21
  async awaitCompletedCreateNewDelegationContract(txHash) {
@@ -31,183 +26,93 @@ class DelegationController extends core_1.BaseController {
31
26
  return this.parser.parseCreateNewDelegationContract(transactionOnNetwork);
32
27
  }
33
28
  async createTransactionForAddingNodes(sender, nonce, options) {
34
- const transaction = this.factory.createTransactionForAddingNodes(sender.address, options);
35
- transaction.guardian = options.guardian ?? core_1.Address.empty();
36
- transaction.relayer = options.relayer ?? core_1.Address.empty();
37
- transaction.nonce = nonce;
38
- this.setTransactionGasOptions(transaction, options);
39
- this.setVersionAndOptionsForGuardian(transaction);
40
- transaction.signature = await sender.signTransaction(transaction);
29
+ const transaction = await this.factory.createTransactionForAddingNodes(sender.address, options);
30
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
41
31
  return transaction;
42
32
  }
43
33
  async createTransactionForRemovingNodes(sender, nonce, options) {
44
- const transaction = this.factory.createTransactionForRemovingNodes(sender.address, options);
45
- transaction.guardian = options.guardian ?? core_1.Address.empty();
46
- transaction.relayer = options.relayer ?? core_1.Address.empty();
47
- transaction.nonce = nonce;
48
- this.setTransactionGasOptions(transaction, options);
49
- this.setVersionAndOptionsForGuardian(transaction);
50
- transaction.signature = await sender.signTransaction(transaction);
34
+ const transaction = await this.factory.createTransactionForRemovingNodes(sender.address, options);
35
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
51
36
  return transaction;
52
37
  }
53
38
  async createTransactionForStakingNodes(sender, nonce, options) {
54
- const transaction = this.factory.createTransactionForStakingNodes(sender.address, options);
55
- transaction.guardian = options.guardian ?? core_1.Address.empty();
56
- transaction.relayer = options.relayer ?? core_1.Address.empty();
57
- transaction.nonce = nonce;
58
- this.setTransactionGasOptions(transaction, options);
59
- this.setVersionAndOptionsForGuardian(transaction);
60
- transaction.signature = await sender.signTransaction(transaction);
39
+ const transaction = await this.factory.createTransactionForStakingNodes(sender.address, options);
40
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
61
41
  return transaction;
62
42
  }
63
43
  async createTransactionForUnbondingNodes(sender, nonce, options) {
64
- const transaction = this.factory.createTransactionForUnbondingNodes(sender.address, options);
65
- transaction.guardian = options.guardian ?? core_1.Address.empty();
66
- transaction.relayer = options.relayer ?? core_1.Address.empty();
67
- transaction.nonce = nonce;
68
- this.setTransactionGasOptions(transaction, options);
69
- this.setVersionAndOptionsForGuardian(transaction);
70
- transaction.signature = await sender.signTransaction(transaction);
44
+ const transaction = await this.factory.createTransactionForUnbondingNodes(sender.address, options);
45
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
71
46
  return transaction;
72
47
  }
73
48
  async createTransactionForUnstakingNodes(sender, nonce, options) {
74
- const transaction = this.factory.createTransactionForUnstakingNodes(sender.address, options);
75
- transaction.guardian = options.guardian ?? core_1.Address.empty();
76
- transaction.relayer = options.relayer ?? core_1.Address.empty();
77
- transaction.nonce = nonce;
78
- this.setTransactionGasOptions(transaction, options);
79
- this.setVersionAndOptionsForGuardian(transaction);
80
- transaction.signature = await sender.signTransaction(transaction);
49
+ const transaction = await this.factory.createTransactionForUnstakingNodes(sender.address, options);
50
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
81
51
  return transaction;
82
52
  }
83
53
  async createTransactionForUnjailingNodes(sender, nonce, options) {
84
- const transaction = this.factory.createTransactionForUnjailingNodes(sender.address, options);
85
- transaction.guardian = options.guardian ?? core_1.Address.empty();
86
- transaction.relayer = options.relayer ?? core_1.Address.empty();
87
- transaction.nonce = nonce;
88
- this.setTransactionGasOptions(transaction, options);
89
- this.setVersionAndOptionsForGuardian(transaction);
90
- transaction.signature = await sender.signTransaction(transaction);
54
+ const transaction = await this.factory.createTransactionForUnjailingNodes(sender.address, options);
55
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
91
56
  return transaction;
92
57
  }
93
58
  async createTransactionForChangingServiceFee(sender, nonce, options) {
94
- const transaction = this.factory.createTransactionForChangingServiceFee(sender.address, options);
95
- transaction.guardian = options.guardian ?? core_1.Address.empty();
96
- transaction.relayer = options.relayer ?? core_1.Address.empty();
97
- transaction.nonce = nonce;
98
- this.setTransactionGasOptions(transaction, options);
99
- this.setVersionAndOptionsForGuardian(transaction);
100
- transaction.signature = await sender.signTransaction(transaction);
59
+ const transaction = await this.factory.createTransactionForChangingServiceFee(sender.address, options);
60
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
101
61
  return transaction;
102
62
  }
103
63
  async createTransactionForModifyingDelegationCap(sender, nonce, options) {
104
- const transaction = this.factory.createTransactionForModifyingDelegationCap(sender.address, options);
105
- transaction.guardian = options.guardian ?? core_1.Address.empty();
106
- transaction.relayer = options.relayer ?? core_1.Address.empty();
107
- transaction.nonce = nonce;
108
- this.setTransactionGasOptions(transaction, options);
109
- this.setVersionAndOptionsForGuardian(transaction);
110
- transaction.signature = await sender.signTransaction(transaction);
64
+ const transaction = await this.factory.createTransactionForModifyingDelegationCap(sender.address, options);
65
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
111
66
  return transaction;
112
67
  }
113
68
  async createTransactionForSettingAutomaticActivation(sender, nonce, options) {
114
- const transaction = this.factory.createTransactionForSettingAutomaticActivation(sender.address, options);
115
- transaction.guardian = options.guardian ?? core_1.Address.empty();
116
- transaction.relayer = options.relayer ?? core_1.Address.empty();
117
- transaction.nonce = nonce;
118
- this.setTransactionGasOptions(transaction, options);
119
- this.setVersionAndOptionsForGuardian(transaction);
120
- transaction.signature = await sender.signTransaction(transaction);
69
+ const transaction = await this.factory.createTransactionForSettingAutomaticActivation(sender.address, options);
70
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
121
71
  return transaction;
122
72
  }
123
73
  async createTransactionForUnsettingAutomaticActivation(sender, nonce, options) {
124
- const transaction = this.factory.createTransactionForUnsettingAutomaticActivation(sender.address, options);
125
- transaction.guardian = options.guardian ?? core_1.Address.empty();
126
- transaction.relayer = options.relayer ?? core_1.Address.empty();
127
- transaction.nonce = nonce;
128
- this.setTransactionGasOptions(transaction, options);
129
- this.setVersionAndOptionsForGuardian(transaction);
130
- transaction.signature = await sender.signTransaction(transaction);
74
+ const transaction = await this.factory.createTransactionForUnsettingAutomaticActivation(sender.address, options);
75
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
131
76
  return transaction;
132
77
  }
133
78
  async createTransactionForSettingCapCheckOnRedelegateRewards(sender, nonce, options) {
134
- const transaction = this.factory.createTransactionForSettingCapCheckOnRedelegateRewards(sender.address, options);
135
- transaction.guardian = options.guardian ?? core_1.Address.empty();
136
- transaction.relayer = options.relayer ?? core_1.Address.empty();
137
- transaction.nonce = nonce;
138
- this.setTransactionGasOptions(transaction, options);
139
- this.setVersionAndOptionsForGuardian(transaction);
140
- transaction.signature = await sender.signTransaction(transaction);
79
+ const transaction = await this.factory.createTransactionForSettingCapCheckOnRedelegateRewards(sender.address, options);
80
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
141
81
  return transaction;
142
82
  }
143
83
  async createTransactionForUnsettingCapCheckOnRedelegateRewards(sender, nonce, options) {
144
- const transaction = this.factory.createTransactionForUnsettingCapCheckOnRedelegateRewards(sender.address, options);
145
- transaction.guardian = options.guardian ?? core_1.Address.empty();
146
- transaction.relayer = options.relayer ?? core_1.Address.empty();
147
- transaction.nonce = nonce;
148
- this.setTransactionGasOptions(transaction, options);
149
- this.setVersionAndOptionsForGuardian(transaction);
150
- transaction.signature = await sender.signTransaction(transaction);
84
+ const transaction = await this.factory.createTransactionForUnsettingCapCheckOnRedelegateRewards(sender.address, options);
85
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
151
86
  return transaction;
152
87
  }
153
88
  async createTransactionForSettingMetadata(sender, nonce, options) {
154
- const transaction = this.factory.createTransactionForSettingMetadata(sender.address, options);
155
- transaction.guardian = options.guardian ?? core_1.Address.empty();
156
- transaction.relayer = options.relayer ?? core_1.Address.empty();
157
- transaction.nonce = nonce;
158
- this.setTransactionGasOptions(transaction, options);
159
- this.setVersionAndOptionsForGuardian(transaction);
160
- transaction.signature = await sender.signTransaction(transaction);
89
+ const transaction = await this.factory.createTransactionForSettingMetadata(sender.address, options);
90
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
161
91
  return transaction;
162
92
  }
163
93
  async createTransactionForDelegating(sender, nonce, options) {
164
- const transaction = this.factory.createTransactionForDelegating(sender.address, options);
165
- transaction.guardian = options.guardian ?? core_1.Address.empty();
166
- transaction.relayer = options.relayer ?? core_1.Address.empty();
167
- transaction.nonce = nonce;
168
- this.setTransactionGasOptions(transaction, options);
169
- this.setVersionAndOptionsForGuardian(transaction);
170
- transaction.signature = await sender.signTransaction(transaction);
94
+ const transaction = await this.factory.createTransactionForDelegating(sender.address, options);
95
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
171
96
  return transaction;
172
97
  }
173
98
  async createTransactionForClaimingRewards(sender, nonce, options) {
174
- const transaction = this.factory.createTransactionForClaimingRewards(sender.address, options);
175
- transaction.guardian = options.guardian ?? core_1.Address.empty();
176
- transaction.relayer = options.relayer ?? core_1.Address.empty();
177
- transaction.nonce = nonce;
178
- this.setTransactionGasOptions(transaction, options);
179
- this.setVersionAndOptionsForGuardian(transaction);
180
- transaction.signature = await sender.signTransaction(transaction);
99
+ const transaction = await this.factory.createTransactionForClaimingRewards(sender.address, options);
100
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
181
101
  return transaction;
182
102
  }
183
103
  async createTransactionForRedelegatingRewards(sender, nonce, options) {
184
- const transaction = this.factory.createTransactionForRedelegatingRewards(sender.address, options);
185
- transaction.guardian = options.guardian ?? core_1.Address.empty();
186
- transaction.relayer = options.relayer ?? core_1.Address.empty();
187
- transaction.nonce = nonce;
188
- this.setTransactionGasOptions(transaction, options);
189
- this.setVersionAndOptionsForGuardian(transaction);
190
- transaction.signature = await sender.signTransaction(transaction);
104
+ const transaction = await this.factory.createTransactionForRedelegatingRewards(sender.address, options);
105
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
191
106
  return transaction;
192
107
  }
193
108
  async createTransactionForUndelegating(sender, nonce, options) {
194
- const transaction = this.factory.createTransactionForUndelegating(sender.address, options);
195
- transaction.guardian = options.guardian ?? core_1.Address.empty();
196
- transaction.relayer = options.relayer ?? core_1.Address.empty();
197
- transaction.nonce = nonce;
198
- this.setTransactionGasOptions(transaction, options);
199
- this.setVersionAndOptionsForGuardian(transaction);
200
- transaction.signature = await sender.signTransaction(transaction);
109
+ const transaction = await this.factory.createTransactionForUndelegating(sender.address, options);
110
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
201
111
  return transaction;
202
112
  }
203
113
  async createTransactionForWithdrawing(sender, nonce, options) {
204
- const transaction = this.factory.createTransactionForWithdrawing(sender.address, options);
205
- transaction.nonce = nonce;
206
- transaction.guardian = options.guardian ?? core_1.Address.empty();
207
- transaction.relayer = options.relayer ?? core_1.Address.empty();
208
- this.setTransactionGasOptions(transaction, options);
209
- this.setVersionAndOptionsForGuardian(transaction);
210
- transaction.signature = await sender.signTransaction(transaction);
114
+ const transaction = await this.factory.createTransactionForWithdrawing(sender.address, options);
115
+ await this.setupAndSignTransaction(transaction, options, nonce, sender);
211
116
  return transaction;
212
117
  }
213
118
  }
@@ -1 +1 @@
1
- {"version":3,"file":"delegationController.js","sourceRoot":"","sources":["../../src/delegation/delegationController.ts"],"names":[],"mappings":";;;AAAA,kCASiB;AAEjB,mFAAgF;AAChF,+FAA4F;AAG5F,MAAa,oBAAqB,SAAQ,qBAAc;IAKpD,YAAY,OAA+D;QACvE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,kBAAkB,GAAG,IAAI,yBAAkB,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAC1E,IAAI,CAAC,OAAO,GAAG,IAAI,6DAA6B,CAAC;YAC7C,MAAM,EAAE,IAAI,gCAAyB,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;SACtE,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,yEAAmC,EAAE,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,yCAAyC,CAC3C,MAAgB,EAChB,KAAa,EACb,OAAmE;QAEnE,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,yCAAyC,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAEpG,WAAW,CAAC,QAAQ,GAAG,OAAO,CAAC,QA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3
+ import { BaseFactory } from "../core/baseFactory";
2
4
  import { Transaction } from "../core/transaction";
3
5
  import * as resources from "./resources";
4
6
  interface IConfig {
@@ -17,32 +19,33 @@ interface IConfig {
17
19
  /**
18
20
  * Use this class to create delegation related transactions like creating a new delegation contract or adding nodes.
19
21
  */
20
- export declare class DelegationTransactionsFactory {
22
+ export declare class DelegationTransactionsFactory extends BaseFactory {
21
23
  private readonly config;
22
24
  private readonly argSerializer;
23
25
  private readonly delegationManagerAddress;
24
26
  constructor(options: {
25
27
  config: IConfig;
28
+ gasLimitEstimator?: IGasLimitEstimator;
26
29
  });
27
- createTransactionForNewDelegationContract(sender: Address, options: resources.NewDelegationContractInput): Transaction;
28
- createTransactionForAddingNodes(sender: Address, options: resources.AddNodesInput): Transaction;
29
- createTransactionForRemovingNodes(sender: Address, options: resources.ManageNodesInput): Transaction;
30
- createTransactionForStakingNodes(sender: Address, options: resources.ManageNodesInput): Transaction;
31
- createTransactionForUnbondingNodes(sender: Address, options: resources.ManageNodesInput): Transaction;
32
- createTransactionForUnstakingNodes(sender: Address, options: resources.ManageNodesInput): Transaction;
33
- createTransactionForUnjailingNodes(sender: Address, options: resources.UnjailingNodesInput): Transaction;
34
- createTransactionForChangingServiceFee(sender: Address, options: resources.ChangeServiceFee): Transaction;
35
- createTransactionForModifyingDelegationCap(sender: Address, options: resources.ModifyDelegationCapInput): Transaction;
36
- createTransactionForSettingAutomaticActivation(sender: Address, options: resources.ManageDelegationContractInput): Transaction;
37
- createTransactionForUnsettingAutomaticActivation(sender: Address, options: resources.ManageDelegationContractInput): Transaction;
38
- createTransactionForSettingCapCheckOnRedelegateRewards(sender: Address, options: resources.ManageDelegationContractInput): Transaction;
39
- createTransactionForUnsettingCapCheckOnRedelegateRewards(sender: Address, options: resources.ManageDelegationContractInput): Transaction;
40
- createTransactionForSettingMetadata(sender: Address, options: resources.SetContractMetadataInput): Transaction;
41
- createTransactionForDelegating(sender: Address, options: resources.DelegateActionsInput): Transaction;
42
- createTransactionForClaimingRewards(sender: Address, options: resources.ManageDelegationContractInput): Transaction;
43
- createTransactionForRedelegatingRewards(sender: Address, options: resources.ManageDelegationContractInput): Transaction;
44
- createTransactionForUndelegating(sender: Address, options: resources.DelegateActionsInput): Transaction;
45
- createTransactionForWithdrawing(sender: Address, options: resources.ManageDelegationContractInput): Transaction;
30
+ createTransactionForNewDelegationContract(sender: Address, options: resources.NewDelegationContractInput): Promise<Transaction>;
31
+ createTransactionForAddingNodes(sender: Address, options: resources.AddNodesInput): Promise<Transaction>;
32
+ createTransactionForRemovingNodes(sender: Address, options: resources.ManageNodesInput): Promise<Transaction>;
33
+ createTransactionForStakingNodes(sender: Address, options: resources.ManageNodesInput): Promise<Transaction>;
34
+ createTransactionForUnbondingNodes(sender: Address, options: resources.ManageNodesInput): Promise<Transaction>;
35
+ createTransactionForUnstakingNodes(sender: Address, options: resources.ManageNodesInput): Promise<Transaction>;
36
+ createTransactionForUnjailingNodes(sender: Address, options: resources.UnjailingNodesInput): Promise<Transaction>;
37
+ createTransactionForChangingServiceFee(sender: Address, options: resources.ChangeServiceFee): Promise<Transaction>;
38
+ createTransactionForModifyingDelegationCap(sender: Address, options: resources.ModifyDelegationCapInput): Promise<Transaction>;
39
+ createTransactionForSettingAutomaticActivation(sender: Address, options: resources.ManageDelegationContractInput): Promise<Transaction>;
40
+ createTransactionForUnsettingAutomaticActivation(sender: Address, options: resources.ManageDelegationContractInput): Promise<Transaction>;
41
+ createTransactionForSettingCapCheckOnRedelegateRewards(sender: Address, options: resources.ManageDelegationContractInput): Promise<Transaction>;
42
+ createTransactionForUnsettingCapCheckOnRedelegateRewards(sender: Address, options: resources.ManageDelegationContractInput): Promise<Transaction>;
43
+ createTransactionForSettingMetadata(sender: Address, options: resources.SetContractMetadataInput): Promise<Transaction>;
44
+ createTransactionForDelegating(sender: Address, options: resources.DelegateActionsInput): Promise<Transaction>;
45
+ createTransactionForClaimingRewards(sender: Address, options: resources.ManageDelegationContractInput): Promise<Transaction>;
46
+ createTransactionForRedelegatingRewards(sender: Address, options: resources.ManageDelegationContractInput): Promise<Transaction>;
47
+ createTransactionForUndelegating(sender: Address, options: resources.DelegateActionsInput): Promise<Transaction>;
48
+ createTransactionForWithdrawing(sender: Address, options: resources.ManageDelegationContractInput): Promise<Transaction>;
46
49
  private computeExecutionGasLimitForNodesManagement;
47
50
  }
48
51
  export {};