@algorandfoundation/algorand-typescript-testing 1.0.0-alpha.8 → 1.0.0-alpha.9

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/index.mjs CHANGED
@@ -129,6 +129,16 @@ const AcctParams = {
129
129
  const acct = getAccount(a);
130
130
  return [acct.totalBoxBytes, acct.balance !== 0];
131
131
  },
132
+ // TODO: implement v11 methods
133
+ acctIncentiveEligible: function (_a) {
134
+ throw new Error('Function not implemented.');
135
+ },
136
+ acctLastProposed: function (_a) {
137
+ throw new Error('Function not implemented.');
138
+ },
139
+ acctLastHeartbeat: function (_a) {
140
+ throw new Error('Function not implemented.');
141
+ },
132
142
  };
133
143
 
134
144
  const resolveAppIndex = (appIdOrIndex) => {
@@ -748,6 +758,12 @@ const Global = {
748
758
  get genesisHash() {
749
759
  return getGlobalData().genesisHash;
750
760
  },
761
+ payoutsEnabled: false,
762
+ // TODO: implement v11 fields
763
+ payoutsGoOnlineFee: 0,
764
+ payoutsPercent: 0,
765
+ payoutsMinBalance: 0,
766
+ payoutsMaxBalance: 0,
751
767
  };
752
768
 
753
769
  const GTxn = {
@@ -2085,6 +2101,31 @@ const Block = {
2085
2101
  blkTimestamp: function (a) {
2086
2102
  return asUint64(lazyContext.ledger.getBlockContent(a).timestamp);
2087
2103
  },
2104
+ // TODO: implement v11 methods
2105
+ blkProposer: function (_a) {
2106
+ throw new Error('Function not implemented.');
2107
+ },
2108
+ blkFeesCollected: function (_a) {
2109
+ throw new Error('Function not implemented.');
2110
+ },
2111
+ blkBonus: function (_a) {
2112
+ throw new Error('Function not implemented.');
2113
+ },
2114
+ blkBranch: function (_a) {
2115
+ throw new Error('Function not implemented.');
2116
+ },
2117
+ blkFeeSink: function (_a) {
2118
+ throw new Error('Function not implemented.');
2119
+ },
2120
+ blkProtocol: function (_a) {
2121
+ throw new Error('Function not implemented.');
2122
+ },
2123
+ blkTxnCounter: function (_a) {
2124
+ throw new Error('Function not implemented.');
2125
+ },
2126
+ blkProposerPayout: function (_a) {
2127
+ throw new Error('Function not implemented.');
2128
+ },
2088
2129
  };
2089
2130
 
2090
2131
  const gaid = (a) => {