Skip to content

Commit

Permalink
feat(contracts): uncomment abi.readonly modifiers now that the sdk is…
Browse files Browse the repository at this point in the history
… ok with it in the generated json specs
  • Loading branch information
pbennett committed Sep 29, 2024
1 parent 30ad704 commit d56b5cd
Show file tree
Hide file tree
Showing 18 changed files with 13,935 additions and 13,823 deletions.
18 changes: 0 additions & 18 deletions contracts/__test__/contracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4500,23 +4500,5 @@ describe('CoinFabrik Audit suggested extra tests', () => {
.execute({ populateAppCallResources: true, suppressLog: true }),
).rejects.toThrowError()
})

// FAILS - Reflects ISSUE MI-05
// invalid test - sunsetting is timestamp, not round and setting before now is way to instantly sunset which
// may be desired outcome.
test.skip('SunsettingOn cannot be set before now', async () => {
// set the new sunset 1000 rounds before now
const badSunset = (await fixture.context.algod.getTransactionParams().do()).firstRound - 1000

await expect(
validatorMasterClient
.compose()
.changeValidatorSunsetInfo(
{ validatorId, sunsettingOn: badSunset, sunsettingTo: validatorId },
{ sender: validatorOwnerAccount },
)
.execute({ populateAppCallResources: true, suppressLog: true }),
).rejects.toThrowError()
})
})
})
1 change: 1 addition & 0 deletions contracts/contracts/artifacts/StakingPool.arc32.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
{
"name": "getStakerInfo",
"desc": "Retrieves the staked information for a given staker.",
"readonly": true,
"args": [
{
"name": "staker",
Expand Down
1 change: 1 addition & 0 deletions contracts/contracts/artifacts/StakingPool.arc4.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
{
"name": "getStakerInfo",
"desc": "Retrieves the staked information for a given staker.",
"readonly": true,
"args": [
{
"name": "staker",
Expand Down
21 changes: 11 additions & 10 deletions contracts/contracts/artifacts/StakingPool.arc56_draft.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
{
"name": "getStakerInfo",
"desc": "Retrieves the staked information for a given staker.",
"readonly": true,
"args": [
{
"name": "staker",
Expand Down Expand Up @@ -7865,7 +7866,7 @@
},
{
"teal": 1731,
"source": 451,
"source": 450,
"pc": [
1801,
1802
Expand Down Expand Up @@ -7919,7 +7920,7 @@
},
{
"teal": 1744,
"source": 451,
"source": 450,
"pc": [
1812,
1813,
Expand All @@ -7928,35 +7929,35 @@
},
{
"teal": 1745,
"source": 451,
"source": 450,
"pc": [
1815
]
},
{
"teal": 1746,
"source": 451,
"source": 450,
"pc": [
1816
]
},
{
"teal": 1747,
"source": 451,
"source": 450,
"pc": [
1817
]
},
{
"teal": 1748,
"source": 451,
"source": 450,
"pc": [
1818
]
},
{
"teal": 1758,
"source": 451,
"source": 450,
"pc": [
1819,
1820,
Expand All @@ -7965,7 +7966,7 @@
},
{
"teal": 1761,
"source": 451,
"source": 450,
"pc": [
1822,
1823
Expand Down Expand Up @@ -8340,15 +8341,15 @@
},
{
"teal": 1846,
"source": 451,
"source": 450,
"pc": [
1902,
1903
]
},
{
"teal": 1847,
"source": 451,
"source": 450,
"pc": [
1904
]
Expand Down
20 changes: 10 additions & 10 deletions contracts/contracts/artifacts/StakingPool.src_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -7376,7 +7376,7 @@
},
{
"teal": 1731,
"source": 451,
"source": 450,
"pc": [
1801,
1802
Expand Down Expand Up @@ -7430,7 +7430,7 @@
},
{
"teal": 1744,
"source": 451,
"source": 450,
"pc": [
1812,
1813,
Expand All @@ -7439,35 +7439,35 @@
},
{
"teal": 1745,
"source": 451,
"source": 450,
"pc": [
1815
]
},
{
"teal": 1746,
"source": 451,
"source": 450,
"pc": [
1816
]
},
{
"teal": 1747,
"source": 451,
"source": 450,
"pc": [
1817
]
},
{
"teal": 1748,
"source": 451,
"source": 450,
"pc": [
1818
]
},
{
"teal": 1758,
"source": 451,
"source": 450,
"pc": [
1819,
1820,
Expand All @@ -7476,7 +7476,7 @@
},
{
"teal": 1761,
"source": 451,
"source": 450,
"pc": [
1822,
1823
Expand Down Expand Up @@ -7851,15 +7851,15 @@
},
{
"teal": 1846,
"source": 451,
"source": 450,
"pc": [
1902,
1903
]
},
{
"teal": 1847,
"source": 451,
"source": 450,
"pc": [
1904
]
Expand Down
Loading

0 comments on commit d56b5cd

Please sign in to comment.