@sentio/sdk 1.21.0 → 1.21.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.
@@ -51,8 +51,9 @@ class code extends sdk_1.aptos.AptosBaseProcessor {
51
51
  static bind(options = {}) {
52
52
  return new code({ ...code.DEFAULT_OPTIONS, ...options });
53
53
  }
54
- onEntryPublishPackageTxn(func) {
54
+ onEntryPublishPackageTxn(func, filter) {
55
55
  this.onEntryFunctionCall(func, {
56
+ ...filter,
56
57
  function: "code::publish_package_txn",
57
58
  });
58
59
  return this;
@@ -116,26 +117,30 @@ class coin extends sdk_1.aptos.AptosBaseProcessor {
116
117
  static bind(options = {}) {
117
118
  return new coin({ ...coin.DEFAULT_OPTIONS, ...options });
118
119
  }
119
- onEntryFreezeCoinStore(func) {
120
+ onEntryFreezeCoinStore(func, filter) {
120
121
  this.onEntryFunctionCall(func, {
122
+ ...filter,
121
123
  function: "coin::freeze_coin_store",
122
124
  });
123
125
  return this;
124
126
  }
125
- onEntryTransfer(func) {
127
+ onEntryTransfer(func, filter) {
126
128
  this.onEntryFunctionCall(func, {
129
+ ...filter,
127
130
  function: "coin::transfer",
128
131
  });
129
132
  return this;
130
133
  }
131
- onEntryUnfreezeCoinStore(func) {
134
+ onEntryUnfreezeCoinStore(func, filter) {
132
135
  this.onEntryFunctionCall(func, {
136
+ ...filter,
133
137
  function: "coin::unfreeze_coin_store",
134
138
  });
135
139
  return this;
136
140
  }
137
- onEntryUpgradeSupply(func) {
141
+ onEntryUpgradeSupply(func, filter) {
138
142
  this.onEntryFunctionCall(func, {
143
+ ...filter,
139
144
  function: "coin::upgrade_supply",
140
145
  });
141
146
  return this;
@@ -337,80 +342,93 @@ class stake extends sdk_1.aptos.AptosBaseProcessor {
337
342
  static bind(options = {}) {
338
343
  return new stake({ ...stake.DEFAULT_OPTIONS, ...options });
339
344
  }
340
- onEntryAddStake(func) {
345
+ onEntryAddStake(func, filter) {
341
346
  this.onEntryFunctionCall(func, {
347
+ ...filter,
342
348
  function: "stake::add_stake",
343
349
  });
344
350
  return this;
345
351
  }
346
- onEntryIncreaseLockup(func) {
352
+ onEntryIncreaseLockup(func, filter) {
347
353
  this.onEntryFunctionCall(func, {
354
+ ...filter,
348
355
  function: "stake::increase_lockup",
349
356
  });
350
357
  return this;
351
358
  }
352
- onEntryInitializeStakeOwner(func) {
359
+ onEntryInitializeStakeOwner(func, filter) {
353
360
  this.onEntryFunctionCall(func, {
361
+ ...filter,
354
362
  function: "stake::initialize_stake_owner",
355
363
  });
356
364
  return this;
357
365
  }
358
- onEntryInitializeValidator(func) {
366
+ onEntryInitializeValidator(func, filter) {
359
367
  this.onEntryFunctionCall(func, {
368
+ ...filter,
360
369
  function: "stake::initialize_validator",
361
370
  });
362
371
  return this;
363
372
  }
364
- onEntryJoinValidatorSet(func) {
373
+ onEntryJoinValidatorSet(func, filter) {
365
374
  this.onEntryFunctionCall(func, {
375
+ ...filter,
366
376
  function: "stake::join_validator_set",
367
377
  });
368
378
  return this;
369
379
  }
370
- onEntryLeaveValidatorSet(func) {
380
+ onEntryLeaveValidatorSet(func, filter) {
371
381
  this.onEntryFunctionCall(func, {
382
+ ...filter,
372
383
  function: "stake::leave_validator_set",
373
384
  });
374
385
  return this;
375
386
  }
376
- onEntryReactivateStake(func) {
387
+ onEntryReactivateStake(func, filter) {
377
388
  this.onEntryFunctionCall(func, {
389
+ ...filter,
378
390
  function: "stake::reactivate_stake",
379
391
  });
380
392
  return this;
381
393
  }
382
- onEntryRotateConsensusKey(func) {
394
+ onEntryRotateConsensusKey(func, filter) {
383
395
  this.onEntryFunctionCall(func, {
396
+ ...filter,
384
397
  function: "stake::rotate_consensus_key",
385
398
  });
386
399
  return this;
387
400
  }
388
- onEntrySetDelegatedVoter(func) {
401
+ onEntrySetDelegatedVoter(func, filter) {
389
402
  this.onEntryFunctionCall(func, {
403
+ ...filter,
390
404
  function: "stake::set_delegated_voter",
391
405
  });
392
406
  return this;
393
407
  }
394
- onEntrySetOperator(func) {
408
+ onEntrySetOperator(func, filter) {
395
409
  this.onEntryFunctionCall(func, {
410
+ ...filter,
396
411
  function: "stake::set_operator",
397
412
  });
398
413
  return this;
399
414
  }
400
- onEntryUnlock(func) {
415
+ onEntryUnlock(func, filter) {
401
416
  this.onEntryFunctionCall(func, {
417
+ ...filter,
402
418
  function: "stake::unlock",
403
419
  });
404
420
  return this;
405
421
  }
406
- onEntryUpdateNetworkAndFullnodeAddresses(func) {
422
+ onEntryUpdateNetworkAndFullnodeAddresses(func, filter) {
407
423
  this.onEntryFunctionCall(func, {
424
+ ...filter,
408
425
  function: "stake::update_network_and_fullnode_addresses",
409
426
  });
410
427
  return this;
411
428
  }
412
- onEntryWithdraw(func) {
429
+ onEntryWithdraw(func, filter) {
413
430
  this.onEntryFunctionCall(func, {
431
+ ...filter,
414
432
  function: "stake::withdraw",
415
433
  });
416
434
  return this;
@@ -797,20 +815,23 @@ class account extends sdk_1.aptos.AptosBaseProcessor {
797
815
  static bind(options = {}) {
798
816
  return new account({ ...account.DEFAULT_OPTIONS, ...options });
799
817
  }
800
- onEntryOfferSignerCapability(func) {
818
+ onEntryOfferSignerCapability(func, filter) {
801
819
  this.onEntryFunctionCall(func, {
820
+ ...filter,
802
821
  function: "account::offer_signer_capability",
803
822
  });
804
823
  return this;
805
824
  }
806
- onEntryRevokeSignerCapability(func) {
825
+ onEntryRevokeSignerCapability(func, filter) {
807
826
  this.onEntryFunctionCall(func, {
827
+ ...filter,
808
828
  function: "account::revoke_signer_capability",
809
829
  });
810
830
  return this;
811
831
  }
812
- onEntryRotateAuthenticationKey(func) {
832
+ onEntryRotateAuthenticationKey(func, filter) {
813
833
  this.onEntryFunctionCall(func, {
834
+ ...filter,
814
835
  function: "account::rotate_authentication_key",
815
836
  });
816
837
  return this;
@@ -979,8 +1000,9 @@ class version extends sdk_1.aptos.AptosBaseProcessor {
979
1000
  static bind(options = {}) {
980
1001
  return new version({ ...version.DEFAULT_OPTIONS, ...options });
981
1002
  }
982
- onEntrySetVersion(func) {
1003
+ onEntrySetVersion(func, filter) {
983
1004
  this.onEntryFunctionCall(func, {
1005
+ ...filter,
984
1006
  function: "version::set_version",
985
1007
  });
986
1008
  return this;
@@ -1016,80 +1038,93 @@ class vesting extends sdk_1.aptos.AptosBaseProcessor {
1016
1038
  static bind(options = {}) {
1017
1039
  return new vesting({ ...vesting.DEFAULT_OPTIONS, ...options });
1018
1040
  }
1019
- onEntryAdminWithdraw(func) {
1041
+ onEntryAdminWithdraw(func, filter) {
1020
1042
  this.onEntryFunctionCall(func, {
1043
+ ...filter,
1021
1044
  function: "vesting::admin_withdraw",
1022
1045
  });
1023
1046
  return this;
1024
1047
  }
1025
- onEntryDistribute(func) {
1048
+ onEntryDistribute(func, filter) {
1026
1049
  this.onEntryFunctionCall(func, {
1050
+ ...filter,
1027
1051
  function: "vesting::distribute",
1028
1052
  });
1029
1053
  return this;
1030
1054
  }
1031
- onEntryResetBeneficiary(func) {
1055
+ onEntryResetBeneficiary(func, filter) {
1032
1056
  this.onEntryFunctionCall(func, {
1057
+ ...filter,
1033
1058
  function: "vesting::reset_beneficiary",
1034
1059
  });
1035
1060
  return this;
1036
1061
  }
1037
- onEntryResetLockup(func) {
1062
+ onEntryResetLockup(func, filter) {
1038
1063
  this.onEntryFunctionCall(func, {
1064
+ ...filter,
1039
1065
  function: "vesting::reset_lockup",
1040
1066
  });
1041
1067
  return this;
1042
1068
  }
1043
- onEntrySetBeneficiary(func) {
1069
+ onEntrySetBeneficiary(func, filter) {
1044
1070
  this.onEntryFunctionCall(func, {
1071
+ ...filter,
1045
1072
  function: "vesting::set_beneficiary",
1046
1073
  });
1047
1074
  return this;
1048
1075
  }
1049
- onEntrySetBeneficiaryResetter(func) {
1076
+ onEntrySetBeneficiaryResetter(func, filter) {
1050
1077
  this.onEntryFunctionCall(func, {
1078
+ ...filter,
1051
1079
  function: "vesting::set_beneficiary_resetter",
1052
1080
  });
1053
1081
  return this;
1054
1082
  }
1055
- onEntrySetManagementRole(func) {
1083
+ onEntrySetManagementRole(func, filter) {
1056
1084
  this.onEntryFunctionCall(func, {
1085
+ ...filter,
1057
1086
  function: "vesting::set_management_role",
1058
1087
  });
1059
1088
  return this;
1060
1089
  }
1061
- onEntryTerminateVestingContract(func) {
1090
+ onEntryTerminateVestingContract(func, filter) {
1062
1091
  this.onEntryFunctionCall(func, {
1092
+ ...filter,
1063
1093
  function: "vesting::terminate_vesting_contract",
1064
1094
  });
1065
1095
  return this;
1066
1096
  }
1067
- onEntryUnlockRewards(func) {
1097
+ onEntryUnlockRewards(func, filter) {
1068
1098
  this.onEntryFunctionCall(func, {
1099
+ ...filter,
1069
1100
  function: "vesting::unlock_rewards",
1070
1101
  });
1071
1102
  return this;
1072
1103
  }
1073
- onEntryUpdateOperator(func) {
1104
+ onEntryUpdateOperator(func, filter) {
1074
1105
  this.onEntryFunctionCall(func, {
1106
+ ...filter,
1075
1107
  function: "vesting::update_operator",
1076
1108
  });
1077
1109
  return this;
1078
1110
  }
1079
- onEntryUpdateOperatorWithSameCommission(func) {
1111
+ onEntryUpdateOperatorWithSameCommission(func, filter) {
1080
1112
  this.onEntryFunctionCall(func, {
1113
+ ...filter,
1081
1114
  function: "vesting::update_operator_with_same_commission",
1082
1115
  });
1083
1116
  return this;
1084
1117
  }
1085
- onEntryUpdateVoter(func) {
1118
+ onEntryUpdateVoter(func, filter) {
1086
1119
  this.onEntryFunctionCall(func, {
1120
+ ...filter,
1087
1121
  function: "vesting::update_voter",
1088
1122
  });
1089
1123
  return this;
1090
1124
  }
1091
- onEntryVest(func) {
1125
+ onEntryVest(func, filter) {
1092
1126
  this.onEntryFunctionCall(func, {
1127
+ ...filter,
1093
1128
  function: "vesting::vest",
1094
1129
  });
1095
1130
  return this;
@@ -1433,20 +1468,23 @@ class aptos_coin extends sdk_1.aptos.AptosBaseProcessor {
1433
1468
  static bind(options = {}) {
1434
1469
  return new aptos_coin({ ...aptos_coin.DEFAULT_OPTIONS, ...options });
1435
1470
  }
1436
- onEntryClaimMintCapability(func) {
1471
+ onEntryClaimMintCapability(func, filter) {
1437
1472
  this.onEntryFunctionCall(func, {
1473
+ ...filter,
1438
1474
  function: "aptos_coin::claim_mint_capability",
1439
1475
  });
1440
1476
  return this;
1441
1477
  }
1442
- onEntryDelegateMintCapability(func) {
1478
+ onEntryDelegateMintCapability(func, filter) {
1443
1479
  this.onEntryFunctionCall(func, {
1480
+ ...filter,
1444
1481
  function: "aptos_coin::delegate_mint_capability",
1445
1482
  });
1446
1483
  return this;
1447
1484
  }
1448
- onEntryMint(func) {
1485
+ onEntryMint(func, filter) {
1449
1486
  this.onEntryFunctionCall(func, {
1487
+ ...filter,
1450
1488
  function: "aptos_coin::mint",
1451
1489
  });
1452
1490
  return this;
@@ -1651,26 +1689,30 @@ class managed_coin extends sdk_1.aptos.AptosBaseProcessor {
1651
1689
  static bind(options = {}) {
1652
1690
  return new managed_coin({ ...managed_coin.DEFAULT_OPTIONS, ...options });
1653
1691
  }
1654
- onEntryBurn(func) {
1692
+ onEntryBurn(func, filter) {
1655
1693
  this.onEntryFunctionCall(func, {
1694
+ ...filter,
1656
1695
  function: "managed_coin::burn",
1657
1696
  });
1658
1697
  return this;
1659
1698
  }
1660
- onEntryInitialize(func) {
1699
+ onEntryInitialize(func, filter) {
1661
1700
  this.onEntryFunctionCall(func, {
1701
+ ...filter,
1662
1702
  function: "managed_coin::initialize",
1663
1703
  });
1664
1704
  return this;
1665
1705
  }
1666
- onEntryMint(func) {
1706
+ onEntryMint(func, filter) {
1667
1707
  this.onEntryFunctionCall(func, {
1708
+ ...filter,
1668
1709
  function: "managed_coin::mint",
1669
1710
  });
1670
1711
  return this;
1671
1712
  }
1672
- onEntryRegister(func) {
1713
+ onEntryRegister(func, filter) {
1673
1714
  this.onEntryFunctionCall(func, {
1715
+ ...filter,
1674
1716
  function: "managed_coin::register",
1675
1717
  });
1676
1718
  return this;
@@ -1724,14 +1766,16 @@ class aptos_account extends sdk_1.aptos.AptosBaseProcessor {
1724
1766
  static bind(options = {}) {
1725
1767
  return new aptos_account({ ...aptos_account.DEFAULT_OPTIONS, ...options });
1726
1768
  }
1727
- onEntryCreateAccount(func) {
1769
+ onEntryCreateAccount(func, filter) {
1728
1770
  this.onEntryFunctionCall(func, {
1771
+ ...filter,
1729
1772
  function: "aptos_account::create_account",
1730
1773
  });
1731
1774
  return this;
1732
1775
  }
1733
- onEntryTransfer(func) {
1776
+ onEntryTransfer(func, filter) {
1734
1777
  this.onEntryFunctionCall(func, {
1778
+ ...filter,
1735
1779
  function: "aptos_account::transfer",
1736
1780
  });
1737
1781
  return this;
@@ -1791,50 +1835,58 @@ class staking_proxy extends sdk_1.aptos.AptosBaseProcessor {
1791
1835
  static bind(options = {}) {
1792
1836
  return new staking_proxy({ ...staking_proxy.DEFAULT_OPTIONS, ...options });
1793
1837
  }
1794
- onEntrySetOperator(func) {
1838
+ onEntrySetOperator(func, filter) {
1795
1839
  this.onEntryFunctionCall(func, {
1840
+ ...filter,
1796
1841
  function: "staking_proxy::set_operator",
1797
1842
  });
1798
1843
  return this;
1799
1844
  }
1800
- onEntrySetStakePoolOperator(func) {
1845
+ onEntrySetStakePoolOperator(func, filter) {
1801
1846
  this.onEntryFunctionCall(func, {
1847
+ ...filter,
1802
1848
  function: "staking_proxy::set_stake_pool_operator",
1803
1849
  });
1804
1850
  return this;
1805
1851
  }
1806
- onEntrySetStakePoolVoter(func) {
1852
+ onEntrySetStakePoolVoter(func, filter) {
1807
1853
  this.onEntryFunctionCall(func, {
1854
+ ...filter,
1808
1855
  function: "staking_proxy::set_stake_pool_voter",
1809
1856
  });
1810
1857
  return this;
1811
1858
  }
1812
- onEntrySetStakingContractOperator(func) {
1859
+ onEntrySetStakingContractOperator(func, filter) {
1813
1860
  this.onEntryFunctionCall(func, {
1861
+ ...filter,
1814
1862
  function: "staking_proxy::set_staking_contract_operator",
1815
1863
  });
1816
1864
  return this;
1817
1865
  }
1818
- onEntrySetStakingContractVoter(func) {
1866
+ onEntrySetStakingContractVoter(func, filter) {
1819
1867
  this.onEntryFunctionCall(func, {
1868
+ ...filter,
1820
1869
  function: "staking_proxy::set_staking_contract_voter",
1821
1870
  });
1822
1871
  return this;
1823
1872
  }
1824
- onEntrySetVestingContractOperator(func) {
1873
+ onEntrySetVestingContractOperator(func, filter) {
1825
1874
  this.onEntryFunctionCall(func, {
1875
+ ...filter,
1826
1876
  function: "staking_proxy::set_vesting_contract_operator",
1827
1877
  });
1828
1878
  return this;
1829
1879
  }
1830
- onEntrySetVestingContractVoter(func) {
1880
+ onEntrySetVestingContractVoter(func, filter) {
1831
1881
  this.onEntryFunctionCall(func, {
1882
+ ...filter,
1832
1883
  function: "staking_proxy::set_vesting_contract_voter",
1833
1884
  });
1834
1885
  return this;
1835
1886
  }
1836
- onEntrySetVoter(func) {
1887
+ onEntrySetVoter(func, filter) {
1837
1888
  this.onEntryFunctionCall(func, {
1889
+ ...filter,
1838
1890
  function: "staking_proxy::set_voter",
1839
1891
  });
1840
1892
  return this;
@@ -1963,20 +2015,23 @@ class aptos_governance extends sdk_1.aptos.AptosBaseProcessor {
1963
2015
  ...options,
1964
2016
  });
1965
2017
  }
1966
- onEntryAddApprovedScriptHashScript(func) {
2018
+ onEntryAddApprovedScriptHashScript(func, filter) {
1967
2019
  this.onEntryFunctionCall(func, {
2020
+ ...filter,
1968
2021
  function: "aptos_governance::add_approved_script_hash_script",
1969
2022
  });
1970
2023
  return this;
1971
2024
  }
1972
- onEntryCreateProposal(func) {
2025
+ onEntryCreateProposal(func, filter) {
1973
2026
  this.onEntryFunctionCall(func, {
2027
+ ...filter,
1974
2028
  function: "aptos_governance::create_proposal",
1975
2029
  });
1976
2030
  return this;
1977
2031
  }
1978
- onEntryVote(func) {
2032
+ onEntryVote(func, filter) {
1979
2033
  this.onEntryFunctionCall(func, {
2034
+ ...filter,
1980
2035
  function: "aptos_governance::vote",
1981
2036
  });
1982
2037
  return this;
@@ -2088,20 +2143,23 @@ class resource_account extends sdk_1.aptos.AptosBaseProcessor {
2088
2143
  ...options,
2089
2144
  });
2090
2145
  }
2091
- onEntryCreateResourceAccount(func) {
2146
+ onEntryCreateResourceAccount(func, filter) {
2092
2147
  this.onEntryFunctionCall(func, {
2148
+ ...filter,
2093
2149
  function: "resource_account::create_resource_account",
2094
2150
  });
2095
2151
  return this;
2096
2152
  }
2097
- onEntryCreateResourceAccountAndFund(func) {
2153
+ onEntryCreateResourceAccountAndFund(func, filter) {
2098
2154
  this.onEntryFunctionCall(func, {
2155
+ ...filter,
2099
2156
  function: "resource_account::create_resource_account_and_fund",
2100
2157
  });
2101
2158
  return this;
2102
2159
  }
2103
- onEntryCreateResourceAccountAndPublishPackage(func) {
2160
+ onEntryCreateResourceAccountAndPublishPackage(func, filter) {
2104
2161
  this.onEntryFunctionCall(func, {
2162
+ ...filter,
2105
2163
  function: "resource_account::create_resource_account_and_publish_package",
2106
2164
  });
2107
2165
  return this;
@@ -2136,62 +2194,72 @@ class staking_contract extends sdk_1.aptos.AptosBaseProcessor {
2136
2194
  ...options,
2137
2195
  });
2138
2196
  }
2139
- onEntryAddStake(func) {
2197
+ onEntryAddStake(func, filter) {
2140
2198
  this.onEntryFunctionCall(func, {
2199
+ ...filter,
2141
2200
  function: "staking_contract::add_stake",
2142
2201
  });
2143
2202
  return this;
2144
2203
  }
2145
- onEntryCreateStakingContract(func) {
2204
+ onEntryCreateStakingContract(func, filter) {
2146
2205
  this.onEntryFunctionCall(func, {
2206
+ ...filter,
2147
2207
  function: "staking_contract::create_staking_contract",
2148
2208
  });
2149
2209
  return this;
2150
2210
  }
2151
- onEntryDistribute(func) {
2211
+ onEntryDistribute(func, filter) {
2152
2212
  this.onEntryFunctionCall(func, {
2213
+ ...filter,
2153
2214
  function: "staking_contract::distribute",
2154
2215
  });
2155
2216
  return this;
2156
2217
  }
2157
- onEntryRequestCommission(func) {
2218
+ onEntryRequestCommission(func, filter) {
2158
2219
  this.onEntryFunctionCall(func, {
2220
+ ...filter,
2159
2221
  function: "staking_contract::request_commission",
2160
2222
  });
2161
2223
  return this;
2162
2224
  }
2163
- onEntryResetLockup(func) {
2225
+ onEntryResetLockup(func, filter) {
2164
2226
  this.onEntryFunctionCall(func, {
2227
+ ...filter,
2165
2228
  function: "staking_contract::reset_lockup",
2166
2229
  });
2167
2230
  return this;
2168
2231
  }
2169
- onEntrySwitchOperator(func) {
2232
+ onEntrySwitchOperator(func, filter) {
2170
2233
  this.onEntryFunctionCall(func, {
2234
+ ...filter,
2171
2235
  function: "staking_contract::switch_operator",
2172
2236
  });
2173
2237
  return this;
2174
2238
  }
2175
- onEntrySwitchOperatorWithSameCommission(func) {
2239
+ onEntrySwitchOperatorWithSameCommission(func, filter) {
2176
2240
  this.onEntryFunctionCall(func, {
2241
+ ...filter,
2177
2242
  function: "staking_contract::switch_operator_with_same_commission",
2178
2243
  });
2179
2244
  return this;
2180
2245
  }
2181
- onEntryUnlockRewards(func) {
2246
+ onEntryUnlockRewards(func, filter) {
2182
2247
  this.onEntryFunctionCall(func, {
2248
+ ...filter,
2183
2249
  function: "staking_contract::unlock_rewards",
2184
2250
  });
2185
2251
  return this;
2186
2252
  }
2187
- onEntryUnlockStake(func) {
2253
+ onEntryUnlockStake(func, filter) {
2188
2254
  this.onEntryFunctionCall(func, {
2255
+ ...filter,
2189
2256
  function: "staking_contract::unlock_stake",
2190
2257
  });
2191
2258
  return this;
2192
2259
  }
2193
- onEntryUpdateVoter(func) {
2260
+ onEntryUpdateVoter(func, filter) {
2194
2261
  this.onEntryFunctionCall(func, {
2262
+ ...filter,
2195
2263
  function: "staking_contract::update_voter",
2196
2264
  });
2197
2265
  return this;