Skip to content

Commit

Permalink
chore: update the Native Token Transferrer bytecode
Browse files Browse the repository at this point in the history
  • Loading branch information
IaroslavMazur committed Aug 28, 2024
1 parent 7f2c373 commit 1fda4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/revm/src/sablier/test_native_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod test {
/// "Transfer-Multiple-And-Call", "Get-Balance-Of-Token" and "Get-Call-Values" Precompile functionalities.
///
/// This Bytecode has been generated from the Solidity code in stdlib's [NaiveTokenTransferrerMock.sol] (https://github.com/sablier-labs/stdlib/blob/main/src/standards/srf-20/NaiveTokenTransferrerMock.sol)
static NAIVE_TOKEN_TRANSFERRER_MOCK_BYTECODE: Bytes = bytes!("608060405260043610610064575f3560e01c8063995834171161004257806399583417146100d7578063a7a85a6b146100ff578063d1c673e91461013b57610064565b8063095bcdb6146100685780636141a8b914610090578063822bbe4c146100af575b5f80fd5b348015610073575f80fd5b5061008e6004803603810190610089919061092e565b610163565b005b610098610193565b6040516100a6929190610a35565b60405180910390f35b3480156100ba575f80fd5b506100d560048036038101906100d09190610b20565b6101bd565b005b3480156100e2575f80fd5b506100fd60048036038101906100f89190610be4565b6101f9565b005b34801561010a575f80fd5b5061012560048036038101906101209190610c75565b61022f565b6040516101329190610cc2565b60405180910390f35b348015610146575f80fd5b50610161600480360381019061015c9190610cdb565b610261565b005b61018e82828573ffffffffffffffffffffffffffffffffffffffff166102979092919063ffffffff16565b505050565b6060806101b53373ffffffffffffffffffffffffffffffffffffffff16610376565b915091509091565b6101f08686868686868d73ffffffffffffffffffffffffffffffffffffffff166104a4909695949392919063ffffffff16565b50505050505050565b610228848484848973ffffffffffffffffffffffffffffffffffffffff1661058f90949392919063ffffffff16565b5050505050565b5f610259828473ffffffffffffffffffffffffffffffffffffffff1661067490919063ffffffff16565b905092915050565b610290848484848973ffffffffffffffffffffffffffffffffffffffff166107ab90949392919063ffffffff16565b5050505050565b5f8383836040516024016102ad93929190610d6e565b60405160208183030381529060405263095bcdb660e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f73706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff168260405161032e9190610e0f565b5f60405180830381855af49150503d805f8114610366576040519150601f19603f3d011682016040523d82523d5f602084013e61036b565b606091505b505090505050505050565b6060805f604051602401604051602081830303815290604052636141a8b960e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f8073706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff16836040516104029190610e0f565b5f60405180830381855af49150503d805f811461043a576040519150601f19603f3d011682016040523d82523d5f602084013e61043f565b606091505b509150915081610484576040517f17e60c8200000000000000000000000000000000000000000000000000000000815260040161047b90610ea5565b60405180910390fd5b80806020019051810190610498919061101f565b94509450505050915091565b5f878787878787876040516024016104c29796959493929190611147565b60405160208183030381529060405263822bbe4c60e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f73706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff16826040516105439190610e0f565b5f60405180830381855af49150503d805f811461057b576040519150601f19603f3d011682016040523d82523d5f602084013e610580565b606091505b50509050505050505050505050565b5f85858585856040516024016105a99594939291906111a5565b604051602081830303815290604052639958341760e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f73706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff168260405161062a9190610e0f565b5f60405180830381855af49150503d805f8114610662576040519150601f19603f3d011682016040523d82523d5f602084013e610667565b606091505b5050905050505050505050565b5f8083836040516024016106899291906111ec565b60405160208183030381529060405262fdd58e60e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f8073706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff168360405161070a9190610e0f565b5f60405180830381855afa9150503d805f8114610742576040519150601f19603f3d011682016040523d82523d5f602084013e610747565b606091505b50915091508161078c576040517f17e60c820000000000000000000000000000000000000000000000000000000081526004016107839061125d565b60405180910390fd5b808060200190518101906107a0919061127b565b935050505092915050565b5f85858585856040516024016107c59594939291906112a6565b60405160208183030381529060405263d1c673e960e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f73706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff16826040516108469190610e0f565b5f60405180830381855af49150503d805f811461087e576040519150601f19603f3d011682016040523d82523d5f602084013e610883565b606091505b5050905050505050505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6108ca826108a1565b9050919050565b6108da816108c0565b81146108e4575f80fd5b50565b5f813590506108f5816108d1565b92915050565b5f819050919050565b61090d816108fb565b8114610917575f80fd5b50565b5f8135905061092881610904565b92915050565b5f805f6060848603121561094557610944610899565b5b5f610952868287016108e7565b93505060206109638682870161091a565b92505060406109748682870161091a565b9150509250925092565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6109b0816108fb565b82525050565b5f6109c183836109a7565b60208301905092915050565b5f602082019050919050565b5f6109e38261097e565b6109ed8185610988565b93506109f883610998565b805f5b83811015610a28578151610a0f88826109b6565b9750610a1a836109cd565b9250506001810190506109fb565b5085935050505092915050565b5f6040820190508181035f830152610a4d81856109d9565b90508181036020830152610a6181846109d9565b90509392505050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112610a8b57610a8a610a6a565b5b8235905067ffffffffffffffff811115610aa857610aa7610a6e565b5b602083019150836020820283011115610ac457610ac3610a72565b5b9250929050565b5f8083601f840112610ae057610adf610a6a565b5b8235905067ffffffffffffffff811115610afd57610afc610a6e565b5b602083019150836001820283011115610b1957610b18610a72565b5b9250929050565b5f805f805f805f6080888a031215610b3b57610b3a610899565b5b5f610b488a828b016108e7565b975050602088013567ffffffffffffffff811115610b6957610b6861089d565b5b610b758a828b01610a76565b9650965050604088013567ffffffffffffffff811115610b9857610b9761089d565b5b610ba48a828b01610a76565b9450945050606088013567ffffffffffffffff811115610bc757610bc661089d565b5b610bd38a828b01610acb565b925092505092959891949750929550565b5f805f805f60608688031215610bfd57610bfc610899565b5b5f610c0a888289016108e7565b955050602086013567ffffffffffffffff811115610c2b57610c2a61089d565b5b610c3788828901610a76565b9450945050604086013567ffffffffffffffff811115610c5a57610c5961089d565b5b610c6688828901610a76565b92509250509295509295909350565b5f8060408385031215610c8b57610c8a610899565b5b5f610c98858286016108e7565b9250506020610ca98582860161091a565b9150509250929050565b610cbc816108fb565b82525050565b5f602082019050610cd55f830184610cb3565b92915050565b5f805f805f60808688031215610cf457610cf3610899565b5b5f610d01888289016108e7565b9550506020610d128882890161091a565b9450506040610d238882890161091a565b935050606086013567ffffffffffffffff811115610d4457610d4361089d565b5b610d5088828901610acb565b92509250509295509295909350565b610d68816108c0565b82525050565b5f606082019050610d815f830186610d5f565b610d8e6020830185610cb3565b610d9b6040830184610cb3565b949350505050565b5f81519050919050565b5f81905092915050565b5f5b83811015610dd4578082015181840152602081019050610db9565b5f8484015250505050565b5f610de982610da3565b610df38185610dad565b9350610e03818560208601610db7565b80840191505092915050565b5f610e1a8284610ddf565b915081905092915050565b5f82825260208201905092915050565b7f4e6174697665546f6b656e733a2067657443616c6c56616c756573206661696c5f8201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b5f610e8f602283610e25565b9150610e9a82610e35565b604082019050919050565b5f6020820190508181035f830152610ebc81610e83565b9050919050565b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610f0982610ec3565b810181811067ffffffffffffffff82111715610f2857610f27610ed3565b5b80604052505050565b5f610f3a610890565b9050610f468282610f00565b919050565b5f67ffffffffffffffff821115610f6557610f64610ed3565b5b602082029050602081019050919050565b5f81519050610f8481610904565b92915050565b5f610f9c610f9784610f4b565b610f31565b90508083825260208201905060208402830185811115610fbf57610fbe610a72565b5b835b81811015610fe85780610fd48882610f76565b845260208401935050602081019050610fc1565b5050509392505050565b5f82601f83011261100657611005610a6a565b5b8151611016848260208601610f8a565b91505092915050565b5f806040838503121561103557611034610899565b5b5f83015167ffffffffffffffff8111156110525761105161089d565b5b61105e85828601610ff2565b925050602083015167ffffffffffffffff81111561107f5761107e61089d565b5b61108b85828601610ff2565b9150509250929050565b5f80fd5b82818337505050565b5f6110ad8385610988565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156110e0576110df611095565b5b6020830292506110f1838584611099565b82840190509392505050565b5f82825260208201905092915050565b828183375f83830152505050565b5f61112683856110fd565b935061113383858461110d565b61113c83610ec3565b840190509392505050565b5f60808201905061115a5f83018a610d5f565b818103602083015261116d81888a6110a2565b905081810360408301526111828186886110a2565b9050818103606083015261119781848661111b565b905098975050505050505050565b5f6060820190506111b85f830188610d5f565b81810360208301526111cb8186886110a2565b905081810360408301526111e08184866110a2565b90509695505050505050565b5f6040820190506111ff5f830185610d5f565b61120c6020830184610cb3565b9392505050565b7f4e6174697665546f6b656e733a2062616c616e63654f66206661696c656400005f82015250565b5f611247601e83610e25565b915061125282611213565b602082019050919050565b5f6020820190508181035f8301526112748161123b565b9050919050565b5f602082840312156112905761128f610899565b5b5f61129d84828501610f76565b91505092915050565b5f6080820190506112b95f830188610d5f565b6112c66020830187610cb3565b6112d36040830186610cb3565b81810360608301526112e681848661111b565b9050969550505050505056fea164736f6c634300081a000a");
static NAIVE_TOKEN_TRANSFERRER_MOCK_BYTECODE: Bytes = bytes!("608060405260043610610064575f3560e01c8063995834171161004257806399583417146100d7578063a7a85a6b146100ff578063d1c673e91461013b57610064565b8063095bcdb6146100685780636141a8b914610090578063822bbe4c146100af575b5f80fd5b348015610073575f80fd5b5061008e6004803603810190610089919061092e565b610163565b005b610098610193565b6040516100a6929190610a35565b60405180910390f35b3480156100ba575f80fd5b506100d560048036038101906100d09190610b20565b6101bd565b005b3480156100e2575f80fd5b506100fd60048036038101906100f89190610be4565b6101f9565b005b34801561010a575f80fd5b5061012560048036038101906101209190610c75565b61022f565b6040516101329190610cc2565b60405180910390f35b348015610146575f80fd5b50610161600480360381019061015c9190610cdb565b610261565b005b61018e82828573ffffffffffffffffffffffffffffffffffffffff166102979092919063ffffffff16565b505050565b6060806101b53073ffffffffffffffffffffffffffffffffffffffff16610376565b915091509091565b6101f08686868686868d73ffffffffffffffffffffffffffffffffffffffff166104a4909695949392919063ffffffff16565b50505050505050565b610228848484848973ffffffffffffffffffffffffffffffffffffffff1661058f90949392919063ffffffff16565b5050505050565b5f610259828473ffffffffffffffffffffffffffffffffffffffff1661067490919063ffffffff16565b905092915050565b610290848484848973ffffffffffffffffffffffffffffffffffffffff166107ab90949392919063ffffffff16565b5050505050565b5f8383836040516024016102ad93929190610d6e565b60405160208183030381529060405263095bcdb660e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f73706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff168260405161032e9190610e0f565b5f60405180830381855af49150503d805f8114610366576040519150601f19603f3d011682016040523d82523d5f602084013e61036b565b606091505b505090505050505050565b6060805f604051602401604051602081830303815290604052636141a8b960e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f8073706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff16836040516104029190610e0f565b5f60405180830381855af49150503d805f811461043a576040519150601f19603f3d011682016040523d82523d5f602084013e61043f565b606091505b509150915081610484576040517f17e60c8200000000000000000000000000000000000000000000000000000000815260040161047b90610ea5565b60405180910390fd5b80806020019051810190610498919061101f565b94509450505050915091565b5f878787878787876040516024016104c29796959493929190611147565b60405160208183030381529060405263822bbe4c60e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f73706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff16826040516105439190610e0f565b5f60405180830381855af49150503d805f811461057b576040519150601f19603f3d011682016040523d82523d5f602084013e610580565b606091505b50509050505050505050505050565b5f85858585856040516024016105a99594939291906111a5565b604051602081830303815290604052639958341760e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f73706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff168260405161062a9190610e0f565b5f60405180830381855af49150503d805f8114610662576040519150601f19603f3d011682016040523d82523d5f602084013e610667565b606091505b5050905050505050505050565b5f8083836040516024016106899291906111ec565b60405160208183030381529060405262fdd58e60e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f8073706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff168360405161070a9190610e0f565b5f60405180830381855afa9150503d805f8114610742576040519150601f19603f3d011682016040523d82523d5f602084013e610747565b606091505b50915091508161078c576040517f17e60c820000000000000000000000000000000000000000000000000000000081526004016107839061125d565b60405180910390fd5b808060200190518101906107a0919061127b565b935050505092915050565b5f85858585856040516024016107c59594939291906112a6565b60405160208183030381529060405263d1c673e960e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090505f73706000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff16826040516108469190610e0f565b5f60405180830381855af49150503d805f811461087e576040519150601f19603f3d011682016040523d82523d5f602084013e610883565b606091505b5050905050505050505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6108ca826108a1565b9050919050565b6108da816108c0565b81146108e4575f80fd5b50565b5f813590506108f5816108d1565b92915050565b5f819050919050565b61090d816108fb565b8114610917575f80fd5b50565b5f8135905061092881610904565b92915050565b5f805f6060848603121561094557610944610899565b5b5f610952868287016108e7565b93505060206109638682870161091a565b92505060406109748682870161091a565b9150509250925092565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6109b0816108fb565b82525050565b5f6109c183836109a7565b60208301905092915050565b5f602082019050919050565b5f6109e38261097e565b6109ed8185610988565b93506109f883610998565b805f5b83811015610a28578151610a0f88826109b6565b9750610a1a836109cd565b9250506001810190506109fb565b5085935050505092915050565b5f6040820190508181035f830152610a4d81856109d9565b90508181036020830152610a6181846109d9565b90509392505050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112610a8b57610a8a610a6a565b5b8235905067ffffffffffffffff811115610aa857610aa7610a6e565b5b602083019150836020820283011115610ac457610ac3610a72565b5b9250929050565b5f8083601f840112610ae057610adf610a6a565b5b8235905067ffffffffffffffff811115610afd57610afc610a6e565b5b602083019150836001820283011115610b1957610b18610a72565b5b9250929050565b5f805f805f805f6080888a031215610b3b57610b3a610899565b5b5f610b488a828b016108e7565b975050602088013567ffffffffffffffff811115610b6957610b6861089d565b5b610b758a828b01610a76565b9650965050604088013567ffffffffffffffff811115610b9857610b9761089d565b5b610ba48a828b01610a76565b9450945050606088013567ffffffffffffffff811115610bc757610bc661089d565b5b610bd38a828b01610acb565b925092505092959891949750929550565b5f805f805f60608688031215610bfd57610bfc610899565b5b5f610c0a888289016108e7565b955050602086013567ffffffffffffffff811115610c2b57610c2a61089d565b5b610c3788828901610a76565b9450945050604086013567ffffffffffffffff811115610c5a57610c5961089d565b5b610c6688828901610a76565b92509250509295509295909350565b5f8060408385031215610c8b57610c8a610899565b5b5f610c98858286016108e7565b9250506020610ca98582860161091a565b9150509250929050565b610cbc816108fb565b82525050565b5f602082019050610cd55f830184610cb3565b92915050565b5f805f805f60808688031215610cf457610cf3610899565b5b5f610d01888289016108e7565b9550506020610d128882890161091a565b9450506040610d238882890161091a565b935050606086013567ffffffffffffffff811115610d4457610d4361089d565b5b610d5088828901610acb565b92509250509295509295909350565b610d68816108c0565b82525050565b5f606082019050610d815f830186610d5f565b610d8e6020830185610cb3565b610d9b6040830184610cb3565b949350505050565b5f81519050919050565b5f81905092915050565b5f5b83811015610dd4578082015181840152602081019050610db9565b5f8484015250505050565b5f610de982610da3565b610df38185610dad565b9350610e03818560208601610db7565b80840191505092915050565b5f610e1a8284610ddf565b915081905092915050565b5f82825260208201905092915050565b7f4e6174697665546f6b656e733a2067657443616c6c56616c756573206661696c5f8201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b5f610e8f602283610e25565b9150610e9a82610e35565b604082019050919050565b5f6020820190508181035f830152610ebc81610e83565b9050919050565b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610f0982610ec3565b810181811067ffffffffffffffff82111715610f2857610f27610ed3565b5b80604052505050565b5f610f3a610890565b9050610f468282610f00565b919050565b5f67ffffffffffffffff821115610f6557610f64610ed3565b5b602082029050602081019050919050565b5f81519050610f8481610904565b92915050565b5f610f9c610f9784610f4b565b610f31565b90508083825260208201905060208402830185811115610fbf57610fbe610a72565b5b835b81811015610fe85780610fd48882610f76565b845260208401935050602081019050610fc1565b5050509392505050565b5f82601f83011261100657611005610a6a565b5b8151611016848260208601610f8a565b91505092915050565b5f806040838503121561103557611034610899565b5b5f83015167ffffffffffffffff8111156110525761105161089d565b5b61105e85828601610ff2565b925050602083015167ffffffffffffffff81111561107f5761107e61089d565b5b61108b85828601610ff2565b9150509250929050565b5f80fd5b82818337505050565b5f6110ad8385610988565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156110e0576110df611095565b5b6020830292506110f1838584611099565b82840190509392505050565b5f82825260208201905092915050565b828183375f83830152505050565b5f61112683856110fd565b935061113383858461110d565b61113c83610ec3565b840190509392505050565b5f60808201905061115a5f83018a610d5f565b818103602083015261116d81888a6110a2565b905081810360408301526111828186886110a2565b9050818103606083015261119781848661111b565b905098975050505050505050565b5f6060820190506111b85f830188610d5f565b81810360208301526111cb8186886110a2565b905081810360408301526111e08184866110a2565b90509695505050505050565b5f6040820190506111ff5f830185610d5f565b61120c6020830184610cb3565b9392505050565b7f4e6174697665546f6b656e733a2062616c616e63654f66206661696c656400005f82015250565b5f611247601e83610e25565b915061125282611213565b602082019050919050565b5f6020820190508181035f8301526112748161123b565b9050919050565b5f602082840312156112905761128f610899565b5b5f61129d84828501610f76565b91505092915050565b5f6080820190506112b95f830188610d5f565b6112c66020830187610cb3565b6112d36040830186610cb3565b81810360608301526112e681848661111b565b9050969550505050505056fea164736f6c634300081a000a");

/// The address of the Naive Token Transferrer Mock Contract.
///
Expand Down

0 comments on commit 1fda4b6

Please # to comment.