Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force stop contracts #449

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions docs/forcestop_contract/forcestop_contract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Force Stop Contract


## Keys
| key | type | value | description |
| :-------------------------- | --------: | :----------------------- | :------------------------------------------------ |
| `%s%s__disabled__{address}` | `boolean` | `true` | Contract status |
| `%s__forceStopPermission` | `String` | `{address1}__{address2}` | List of Addresses allowed to force stop Contracts |


## Functions
Enable/Disable contracts:
```
@Callable(i)
func forceStopContract(address: String, disable: Boolean)
```

Add address to `%s__forceStopPermission` list:
```
@Callable(i)
func addPermission(address: String)
```

Remove address from `%s__forceStopPermission` list:
```
@Callable(i)
func removePermission(address: String)
```

# TESTNET
| Name | Address | Public key |
| --------- | ------------------------------------- | ---------------------------------------------- |
| forcestop | `3MqsDXvFU9WM8hEzCcrw2aVGtVimCgbNeXD` | `4dNR2Up6mpwUEcy9WQuE2wAzR7HRURa6Pk9jrFKgcHqB` |
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "3hP4hEyMLcQrPrEhRkFjYvqKWMFTEsoT7ws1sN94KgwW",
"data": [
{
"key": "%s__managerVaultAddress",
"type": "string",
"value": "3P4QKaU3NfbfxwF9aB5Kz4rvxFnLc4mBqYN"
},
{
"key": "%s__forceStopPermission",
"type": "string",
"value": ""
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "3g4LaykUG5wGWdSeML6WkuKVnzkREN7uAWEK1UR1uUGB",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "BwKfcbhBESamhFtQJPk6cWHZwmdSGfmvQo2e3cgJXNF2",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "7AkYRHYaiaxocnoA7YJv29kujpmkVBJxFppUkasDe4Ej",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "Ajaez2Qx6UNQu7rT1BceE2hNDrQd52fLHsoq7Js5q3by",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
14 changes: 14 additions & 0 deletions migrations/2024_04_08_force_stop_contract/06_boosting_data_tx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "6PdA345SW1zresPEKuWiLPsh9Ku14mFDW6cZtpCQrp3E",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
14 changes: 14 additions & 0 deletions migrations/2024_04_08_force_stop_contract/07_emission_data_tx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "FoGdD9qz4AFW3pdmp1QCA5vvo9wn3fTbv4JnYrWZe3BB",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "HBWgh7DKPyzCnEXKJAJ5dKQ3jmPtMhGD78tt6jRdkV61",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "5erVrXGwDf4uTNPpGnGNKjHcwFUTztTpFTvj8ZBrLq57",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "EfRKQWb1FWaWmo9fkorRwMA4BrSzUWNAVhXqB9vLmv7g",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "8f1rQCPEcUfjitkvwMuxK9bwf2jupzdaHjtKTW5J45Rf",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "6ggGUvisvwXkZVUaHNi5huvqSYFSVk3T1RiD5VnRq4DY",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "DziAWik7v792pPHDeEqmkowKnGawQAGHvQVBRQx2s9gB",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
14 changes: 14 additions & 0 deletions migrations/2024_04_08_force_stop_contract/14_proposal_data_tx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "2VkbtS8CodmbZqAounEpDSf4dAfLoCWfEEGHZK7qtbeD",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
14 changes: 14 additions & 0 deletions migrations/2024_04_08_force_stop_contract/15_referral_data_tx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "AEV7LzxNAcdrjC2NC4182iTxuyTyqfCLzqJ14TXnVSCm",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
14 changes: 14 additions & 0 deletions migrations/2024_04_08_force_stop_contract/16_slippage_data_tx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "9Ps647vMbFkxBfwxidninuYHYNazJGxBssESpf6Pya34",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
14 changes: 14 additions & 0 deletions migrations/2024_04_08_force_stop_contract/17_staking_data_tx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "EAtbDa63mS5omrvW7Pfr7DKWEVLuReJtu72vfiBLRXsx",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
14 changes: 14 additions & 0 deletions migrations/2024_04_08_force_stop_contract/18_swap_data_tx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "GERKRN49XMxhcF1QrLqUAazuipfaJc7KQGq2jChkA4pb",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "52HVeUFDYgRVXrPNfdX4WinZBFdizmuf1vqmbd8ExAZS",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
14 changes: 14 additions & 0 deletions migrations/2024_04_08_force_stop_contract/20_vesting_data_tx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "5k2UWS7wygmRcxBwEgn852bk5KPTt5435nWprBqxXooc",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "CCXSSdRtixuMuZvCAKzJ5Kr1YR74z994WNqq2ooMWBB",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": 12,
"fee": 500000,
"feeAssetId": null,
"version": 2,
"senderPublicKey": "",
"data": [
{
"key": "%s__forceStopContract",
"type": "string",
"value": "3PPxptrgcPnwgtRBcryN7qyTxSRKZdPtRU3"
}
]
}
Loading
Loading