This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7088 from EOSIO/6705-restrict-action-to-self
Implement RESTRICT_ACTION_TO_SELF protocol feature
- Loading branch information
Showing
15 changed files
with
311 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if( EOSIO_COMPILE_TEST_CONTRACTS ) | ||
add_contract( restrict_action_test restrict_action_test restrict_action_test.cpp ) | ||
else() | ||
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/restrict_action_test.wasm ${CMAKE_CURRENT_BINARY_DIR}/restrict_action_test.wasm COPYONLY ) | ||
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/restrict_action_test.abi ${CMAKE_CURRENT_BINARY_DIR}/restrict_action_test.abi COPYONLY ) | ||
endif() |
98 changes: 98 additions & 0 deletions
98
unittests/test-contracts/restrict_action_test/restrict_action_test.abi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT ", | ||
"version": "eosio::abi/1.1", | ||
"types": [], | ||
"structs": [ | ||
{ | ||
"name": "noop", | ||
"base": "", | ||
"fields": [] | ||
}, | ||
{ | ||
"name": "notifydefer", | ||
"base": "", | ||
"fields": [ | ||
{ | ||
"name": "acctonotify", | ||
"type": "name" | ||
}, | ||
{ | ||
"name": "authorizer", | ||
"type": "name" | ||
}, | ||
{ | ||
"name": "senderid", | ||
"type": "uint32" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "notifyinline", | ||
"base": "", | ||
"fields": [ | ||
{ | ||
"name": "acctonotify", | ||
"type": "name" | ||
}, | ||
{ | ||
"name": "authorizer", | ||
"type": "name" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "senddefer", | ||
"base": "", | ||
"fields": [ | ||
{ | ||
"name": "authorizer", | ||
"type": "name" | ||
}, | ||
{ | ||
"name": "senderid", | ||
"type": "uint32" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sendinline", | ||
"base": "", | ||
"fields": [ | ||
{ | ||
"name": "authorizer", | ||
"type": "name" | ||
} | ||
] | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"name": "noop", | ||
"type": "noop", | ||
"ricardian_contract": "" | ||
}, | ||
{ | ||
"name": "notifydefer", | ||
"type": "notifydefer", | ||
"ricardian_contract": "" | ||
}, | ||
{ | ||
"name": "notifyinline", | ||
"type": "notifyinline", | ||
"ricardian_contract": "" | ||
}, | ||
{ | ||
"name": "senddefer", | ||
"type": "senddefer", | ||
"ricardian_contract": "" | ||
}, | ||
{ | ||
"name": "sendinline", | ||
"type": "sendinline", | ||
"ricardian_contract": "" | ||
} | ||
], | ||
"tables": [], | ||
"ricardian_clauses": [], | ||
"variants": [] | ||
} |
Oops, something went wrong.