2021-07-07 15:34:03 +00:00
|
|
|
/*
|
|
|
|
Proxy contract is a contract deployed in NeoFS side chain.
|
|
|
|
|
|
|
|
Proxy contract pays for all multi signature transaction executions when notary
|
|
|
|
service enabled in side chain. Notary service prepares multi signed transaction,
|
|
|
|
however they should contain side chain GAS to be executed. It is inconvenient to
|
|
|
|
ask Alphabet nodes to pay for these transactions: nodes can change over time,
|
|
|
|
some nodes will spend side chain GAS faster, it creates economic instability.
|
|
|
|
|
|
|
|
Proxy contract exists to solve this issue. While Alphabet contracts hold all
|
|
|
|
side chain NEO, proxy contract holds most of the side chain GAS. Alphabet
|
|
|
|
contracts emits half of the available GAS to the proxy contract. Address of the
|
|
|
|
Proxy contract is used as the first signer in the multi signature transaction.
|
|
|
|
Therefore NeoVM executes Verify method of the contract and if invocation is
|
|
|
|
verified, then Proxy contract pays for the execution.
|
|
|
|
|
|
|
|
Contract notifications
|
|
|
|
|
|
|
|
Proxy contract does not produce notifications to process.
|
|
|
|
*/
|
2021-07-04 11:08:37 +00:00
|
|
|
package proxy
|