Skip to content

Commit

Permalink
[aptos-framework] initialize token transfers implicitly
Browse files Browse the repository at this point in the history
expecting users to remember to initialize these seems unnecessary and
could result in unnecessary race conditions.
  • Loading branch information
davidiw authored and aptos-bot committed Mar 29, 2022
1 parent 7288a6f commit a8bd8c0
Show file tree
Hide file tree
Showing 21 changed files with 95 additions and 182 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3751,29 +3751,12 @@
}
},
{
"bytecode": "0xa11ceb0b040000000d01000e020e220330990104c9012c05f501ce0207c304870308ca071006da07680ac208120bd408020cd608ae030d840c020e860c020000000100020003000400050006000008010700040707000101040204000400020206010700031107000505070100000008000100000902030107000a04030107000b05030107000c04030107000d05030107000e06030107000f0703010703120908000513030b010002140c03010702080d0101070115030f020404061602120001171314020404011813160204040119170a020404011a0f03020404021b18030107041c190100011d1b1c020404011e1d03020404021f1e1f0107022020210107022122030107090a0a0a0b0a0c0e0e0e0f1510150f0e1115121002100410140e0c15150e1610171014150e1518101515061002060c0301080101060c0003060c05060801040c05050304060c0506080103050c05050303010804010a020103010b0501090005060c0804080408040b05010307060c080408040804030804090002050b020208010b03010900010b02020900090101090007080105070b020208010b03010900070b0202050b020208010b030109000b020208010b03010900050b03010900010502070b020209000901060900010709010208010b03010900020900090101060b02020900090102060c0b030109000205030a070b0202050b020208010b030109000605070b020208010b03010900060801070b020208010b03010900070b03010900070b0202050b020208010b03010900050b0301090006080102060b020209000901060900010103070b0202090009010900090103060c06080103010b0301090001060b0301090001060801020b03010900070b030109000e546f6b656e5472616e7366657273055461626c6505546f6b656e0541534349490447554944064f7074696f6e065369676e65720249440c6372656174655f746f6b656e1a696e697469616c697a655f746f6b656e5f7472616e73666572730c726563656976655f66726f6d13726563656976655f66726f6d5f7363726970741073746f705f7472616e736665725f746f1773746f705f7472616e736665725f746f5f7363726970740b7472616e736665725f746f127472616e736665725f746f5f7363726970741170656e64696e675f7472616e736665727306537472696e6706737472696e67046e6f6e65116372656174655f636f6c6c656374696f6e066372656174650a616464726573735f6f660a626f72726f775f6d75740672656d6f766505636f756e740d64657374726f795f656d7074790d6465706f7369745f746f6b656e096372656174655f69640c636f6e7461696e735f6b657906696e736572740e77697468647261775f746f6b656e08746f6b656e5f69640b6d657267655f746f6b656e000000000000000000000000000000010a020d0c48656c6c6f2c20576f726c640a021918436f6c6c656374696f6e3a2048656c6c6f2c20576f726c640a02121168747470733a2f2f6170746f732e6465760a021413546f6b656e3a2048656c6c6f2c20546f6b656e0a020d0c48656c6c6f2c20546f6b656e000201100b0202050b020208010b030109000010000000000818070011080c020a00070111080e021407021108380038010b000b0207031108070411080b01070211080600000000000000003802020101000003050b00380339003f0002020100010011250a00110d0c080b013c0036000c060a060e0838040c050a050b0238050c09010b052e3806060000000000000000210317051f0b060e0838070c07010b07380805210b06010b000b09380902030200010001090b020b0311130c040e000b010e04380a02040100010011250a00110d0c080b083c0036000c060a060e0138040c050a050b0238050c09010b052e3806060000000000000000210317051f0b060e0138070c07010b07380805210b06010b000b09380902050200010001090b020b0311130c040e000b010e04380b0206010001001a3a0a00110d0c0b0b0b3c0036000c0a0a0a0e010c050c040b042e0b05380c20031205160a0a0a01380d380e0b0a0e0138040c080b000b020b03380f0c0c0e0c38100c0d0a080a0d0c070c060b062e0b073811032c05340b080b0d38120c090b0c0b09381305390b080b0d140b0c3814020702000100010a0b020b0311130c050e000b010e050b043815020000001000",
"bytecode": "0xa11ceb0b040000000d01000e020e220330990104c9012e05f701ce0207c504870308cc071006dc07680ac408120bd608020cd808bb030d930c020e950c020000000100020003000400050006000008010700040707000101040204000400020206010700031107000505070100000008000100000902030107000a04030107000b05030107000c04030107000d05030107000e06030107000f0703010703120908000513030b010002140c03010702080d0101070115030f020404061602120001171314020404011813160204040119170a020404011a0f03020404021b18030107041c190100011d1b1c020404011e1d03020404021f1e1f0107022020210107022122030107090a0a0a0b0a0c0e0e0e0f1510150f0e11151210021004100110140e0c15150e1610171014150e1518101515061002060c0301080101060c0003060c05060801040c05050304060c0506080103050c05050303010804010a020103010b0501090005060c0804080408040b05010307060c080408040804030804090002050b020208010b03010900010b02020900090101090007080105070b020208010b03010900070b0202050b020208010b030109000b020208010b03010900050b03010900010502070b020209000901060900010709010208010b03010900020900090101060b02020900090102060c0b030109000205030a070b0202050b020208010b030109000605070b020208010b03010900060801070b020208010b03010900070b03010900070b0202050b020208010b03010900050b0301090006080102060b020209000901060900010103070b0202090009010900090103060c06080103010b0301090001060b0301090001060801020b03010900070b030109000e546f6b656e5472616e7366657273055461626c6505546f6b656e0541534349490447554944064f7074696f6e065369676e65720249440c6372656174655f746f6b656e1a696e697469616c697a655f746f6b656e5f7472616e73666572730c726563656976655f66726f6d13726563656976655f66726f6d5f7363726970741073746f705f7472616e736665725f746f1773746f705f7472616e736665725f746f5f7363726970740b7472616e736665725f746f127472616e736665725f746f5f7363726970741170656e64696e675f7472616e736665727306537472696e6706737472696e67046e6f6e65116372656174655f636f6c6c656374696f6e066372656174650a616464726573735f6f660a626f72726f775f6d75740672656d6f766505636f756e740d64657374726f795f656d7074790d6465706f7369745f746f6b656e096372656174655f69640c636f6e7461696e735f6b657906696e736572740e77697468647261775f746f6b656e08746f6b656e5f69640b6d657267655f746f6b656e000000000000000000000000000000010a020d0c48656c6c6f2c20576f726c640a021918436f6c6c656374696f6e3a2048656c6c6f2c20576f726c640a02121168747470733a2f2f6170746f732e6465760a021413546f6b656e3a2048656c6c6f2c20546f6b656e0a020d0c48656c6c6f2c20546f6b656e000201100b0202050b020208010b030109000010000000000818070011080c020a00070111080e021407021108380038010b000b0207031108070411080b01070211080600000000000000003802020100000003050b00380339003f0002020100010011250a00110d0c080b013c0036000c060a060e0838040c050a050b0238050c09010b052e3806060000000000000000210317051f0b060e0838070c07010b07380805210b06010b000b09380902030200010001090b020b0311130c040e000b010e04380a02040100010011250a00110d0c080b083c0036000c060a060e0138040c050a050b0238050c09010b052e3806060000000000000000210317051f0b060e0138070c07010b07380805210b06010b000b09380902050200010001090b020b0311130c040e000b010e04380b0206010001001a410a00110d0c0b0a0b3b00200308050a0a00380c0b0b3c0036000c0a0a0a0e010c050c040b042e0b05380d200319051d0a0a0a01380e380f0b0a0e0138040c080b000b020b0338100c0c0e0c38110c0d0a080a0d0c070c060b062e0b0738120333053b0b080b0d38130c090b0c0b09381405400b080b0d140b0c3815020702000100010a0b020b0311130c050e000b010e050b043816020000001000",
"abi": {
"address": "0x1",
"name": "TokenTransfers",
"friends": [],
"exposed_functions": [
{
"name": "initialize_token_transfers",
"visibility": "public",
"generic_type_params": [
{
"constraints": [
"copy",
"drop",
"store"
]
}
],
"params": [
"&signer"
],
"return": []
},
{
"name": "receive_from",
"visibility": "public",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3751,29 +3751,12 @@
}
},
{
"bytecode": "0xa11ceb0b040000000d01000e020e220330990104c9012c05f501ce0207c304870308ca071006da07680ac208120bd408020cd608ae030d840c020e860c020000000100020003000400050006000008010700040707000101040204000400020206010700031107000505070100000008000100000902030107000a04030107000b05030107000c04030107000d05030107000e06030107000f0703010703120908000513030b010002140c03010702080d0101070115030f020404061602120001171314020404011813160204040119170a020404011a0f03020404021b18030107041c190100011d1b1c020404011e1d03020404021f1e1f0107022020210107022122030107090a0a0a0b0a0c0e0e0e0f1510150f0e1115121002100410140e0c15150e1610171014150e1518101515061002060c0301080101060c0003060c05060801040c05050304060c0506080103050c05050303010804010a020103010b0501090005060c0804080408040b05010307060c080408040804030804090002050b020208010b03010900010b02020900090101090007080105070b020208010b03010900070b0202050b020208010b030109000b020208010b03010900050b03010900010502070b020209000901060900010709010208010b03010900020900090101060b02020900090102060c0b030109000205030a070b0202050b020208010b030109000605070b020208010b03010900060801070b020208010b03010900070b03010900070b0202050b020208010b03010900050b0301090006080102060b020209000901060900010103070b0202090009010900090103060c06080103010b0301090001060b0301090001060801020b03010900070b030109000e546f6b656e5472616e7366657273055461626c6505546f6b656e0541534349490447554944064f7074696f6e065369676e65720249440c6372656174655f746f6b656e1a696e697469616c697a655f746f6b656e5f7472616e73666572730c726563656976655f66726f6d13726563656976655f66726f6d5f7363726970741073746f705f7472616e736665725f746f1773746f705f7472616e736665725f746f5f7363726970740b7472616e736665725f746f127472616e736665725f746f5f7363726970741170656e64696e675f7472616e736665727306537472696e6706737472696e67046e6f6e65116372656174655f636f6c6c656374696f6e066372656174650a616464726573735f6f660a626f72726f775f6d75740672656d6f766505636f756e740d64657374726f795f656d7074790d6465706f7369745f746f6b656e096372656174655f69640c636f6e7461696e735f6b657906696e736572740e77697468647261775f746f6b656e08746f6b656e5f69640b6d657267655f746f6b656e000000000000000000000000000000010a020d0c48656c6c6f2c20576f726c640a021918436f6c6c656374696f6e3a2048656c6c6f2c20576f726c640a02121168747470733a2f2f6170746f732e6465760a021413546f6b656e3a2048656c6c6f2c20546f6b656e0a020d0c48656c6c6f2c20546f6b656e000201100b0202050b020208010b030109000010000000000818070011080c020a00070111080e021407021108380038010b000b0207031108070411080b01070211080600000000000000003802020101000003050b00380339003f0002020100010011250a00110d0c080b013c0036000c060a060e0838040c050a050b0238050c09010b052e3806060000000000000000210317051f0b060e0838070c07010b07380805210b06010b000b09380902030200010001090b020b0311130c040e000b010e04380a02040100010011250a00110d0c080b083c0036000c060a060e0138040c050a050b0238050c09010b052e3806060000000000000000210317051f0b060e0138070c07010b07380805210b06010b000b09380902050200010001090b020b0311130c040e000b010e04380b0206010001001a3a0a00110d0c0b0b0b3c0036000c0a0a0a0e010c050c040b042e0b05380c20031205160a0a0a01380d380e0b0a0e0138040c080b000b020b03380f0c0c0e0c38100c0d0a080a0d0c070c060b062e0b073811032c05340b080b0d38120c090b0c0b09381305390b080b0d140b0c3814020702000100010a0b020b0311130c050e000b010e050b043815020000001000",
"bytecode": "0xa11ceb0b040000000d01000e020e220330990104c9012e05f701ce0207c504870308cc071006dc07680ac408120bd608020cd808bb030d930c020e950c020000000100020003000400050006000008010700040707000101040204000400020206010700031107000505070100000008000100000902030107000a04030107000b05030107000c04030107000d05030107000e06030107000f0703010703120908000513030b010002140c03010702080d0101070115030f020404061602120001171314020404011813160204040119170a020404011a0f03020404021b18030107041c190100011d1b1c020404011e1d03020404021f1e1f0107022020210107022122030107090a0a0a0b0a0c0e0e0e0f1510150f0e11151210021004100110140e0c15150e1610171014150e1518101515061002060c0301080101060c0003060c05060801040c05050304060c0506080103050c05050303010804010a020103010b0501090005060c0804080408040b05010307060c080408040804030804090002050b020208010b03010900010b02020900090101090007080105070b020208010b03010900070b0202050b020208010b030109000b020208010b03010900050b03010900010502070b020209000901060900010709010208010b03010900020900090101060b02020900090102060c0b030109000205030a070b0202050b020208010b030109000605070b020208010b03010900060801070b020208010b03010900070b03010900070b0202050b020208010b03010900050b0301090006080102060b020209000901060900010103070b0202090009010900090103060c06080103010b0301090001060b0301090001060801020b03010900070b030109000e546f6b656e5472616e7366657273055461626c6505546f6b656e0541534349490447554944064f7074696f6e065369676e65720249440c6372656174655f746f6b656e1a696e697469616c697a655f746f6b656e5f7472616e73666572730c726563656976655f66726f6d13726563656976655f66726f6d5f7363726970741073746f705f7472616e736665725f746f1773746f705f7472616e736665725f746f5f7363726970740b7472616e736665725f746f127472616e736665725f746f5f7363726970741170656e64696e675f7472616e736665727306537472696e6706737472696e67046e6f6e65116372656174655f636f6c6c656374696f6e066372656174650a616464726573735f6f660a626f72726f775f6d75740672656d6f766505636f756e740d64657374726f795f656d7074790d6465706f7369745f746f6b656e096372656174655f69640c636f6e7461696e735f6b657906696e736572740e77697468647261775f746f6b656e08746f6b656e5f69640b6d657267655f746f6b656e000000000000000000000000000000010a020d0c48656c6c6f2c20576f726c640a021918436f6c6c656374696f6e3a2048656c6c6f2c20576f726c640a02121168747470733a2f2f6170746f732e6465760a021413546f6b656e3a2048656c6c6f2c20546f6b656e0a020d0c48656c6c6f2c20546f6b656e000201100b0202050b020208010b030109000010000000000818070011080c020a00070111080e021407021108380038010b000b0207031108070411080b01070211080600000000000000003802020100000003050b00380339003f0002020100010011250a00110d0c080b013c0036000c060a060e0838040c050a050b0238050c09010b052e3806060000000000000000210317051f0b060e0838070c07010b07380805210b06010b000b09380902030200010001090b020b0311130c040e000b010e04380a02040100010011250a00110d0c080b083c0036000c060a060e0138040c050a050b0238050c09010b052e3806060000000000000000210317051f0b060e0138070c07010b07380805210b06010b000b09380902050200010001090b020b0311130c040e000b010e04380b0206010001001a410a00110d0c0b0a0b3b00200308050a0a00380c0b0b3c0036000c0a0a0a0e010c050c040b042e0b05380d200319051d0a0a0a01380e380f0b0a0e0138040c080b000b020b0338100c0c0e0c38110c0d0a080a0d0c070c060b062e0b0738120333053b0b080b0d38130c090b0c0b09381405400b080b0d140b0c3815020702000100010a0b020b0311130c050e000b010e050b043816020000001000",
"abi": {
"address": "0x1",
"name": "TokenTransfers",
"friends": [],
"exposed_functions": [
{
"name": "initialize_token_transfers",
"visibility": "public",
"generic_type_params": [
{
"constraints": [
"copy",
"drop",
"store"
]
}
],
"params": [
"&signer"
],
"return": []
},
{
"name": "receive_from",
"visibility": "public",
Expand Down
Loading

0 comments on commit a8bd8c0

Please sign in to comment.