diff --git a/account/account_test.go b/account/account_test.go index f6f07411..732d224b 100644 --- a/account/account_test.go +++ b/account/account_test.go @@ -118,28 +118,6 @@ func TestTransactionHashInvoke(t *testing.T) { Version: rpc.TransactionV1, }, }, - { - ExpectedHash: utils.TestHexToFelt(t, "0x3476c76a81522fe52616c41e95d062f5c3ea4eeb6c652904ad389fcd9ff4637"), - SetKS: false, - AccountAddress: utils.TestHexToFelt(t, "0x59cd166e363be0a921e42dd5cfca0049aedcf2093a707ef90b5c6e46d4555a8"), - ChainID: "SN_MAIN", - FnCall: rpc.FunctionCall{ - Calldata: utils.TestHexArrToFelt(t, []string{ - "0x1", - "0x5dbdedc203e92749e2e746e2d40a768d966bd243df04a6b712e222bc040a9af", - "0x2f0b3c5710379609eb5495f1ecd348cb28167711b73609fe565a72734550354", - "0x0", - "0x1", - "0x1", - "0x52884ee3f", - }), - }, - TxDetails: rpc.TxDetails{ - Nonce: utils.TestHexToFelt(t, "0x1"), - MaxFee: utils.TestHexToFelt(t, "0x2a173cd36e400"), - Version: rpc.TransactionV1, - }, - }, }, "devnet": {}, "testnet": { @@ -172,28 +150,6 @@ func TestTransactionHashInvoke(t *testing.T) { Version: rpc.TransactionV1, }, }, - { - ExpectedHash: utils.TestHexToFelt(t, "0x3476c76a81522fe52616c41e95d062f5c3ea4eeb6c652904ad389fcd9ff4637"), - SetKS: false, - AccountAddress: utils.TestHexToFelt(t, "0x59cd166e363be0a921e42dd5cfca0049aedcf2093a707ef90b5c6e46d4555a8"), - ChainID: "SN_MAIN", - FnCall: rpc.FunctionCall{ - Calldata: utils.TestHexArrToFelt(t, []string{ - "0x1", - "0x5dbdedc203e92749e2e746e2d40a768d966bd243df04a6b712e222bc040a9af", - "0x2f0b3c5710379609eb5495f1ecd348cb28167711b73609fe565a72734550354", - "0x0", - "0x1", - "0x1", - "0x52884ee3f", - }), - }, - TxDetails: rpc.TxDetails{ - Nonce: utils.TestHexToFelt(t, "0x1"), - MaxFee: utils.TestHexToFelt(t, "0x2a173cd36e400"), - Version: rpc.TransactionV1, - }, - }, }, "mainnet": {}, }[testEnv] @@ -522,7 +478,7 @@ func TestAddInvoke(t *testing.T) { AccountAddress: utils.TestHexToFelt(t, "0x01AE6Fe02FcD9f61A3A8c30D68a8a7c470B0d7dD6F0ee685d5BBFa0d79406ff9"), SetKS: true, PubKey: utils.TestHexToFelt(t, "0x022288424ec8116c73d2e2ed3b0663c5030d328d9c0fb44c2b54055db467f31e"), - PrivKey: utils.TestHexToFelt(t, "0x04818374f8071c3b4c3070ff7ce766e7b9352628df7b815ea4de26e0fadb5cc9"), + PrivKey: utils.TestHexToFelt(t, "0x04818374f8071c3b4c3070ff7ce766e7b9352628df7b815ea4de26e0fadb5cc9"), // InvokeTx: rpc.InvokeTxnV1{ Nonce: new(felt.Felt).SetUint64(5), MaxFee: utils.TestHexToFelt(t, "0x26112A960026"), @@ -1202,12 +1158,12 @@ func TestAddDeclareTxn(t *testing.T) { if testEnv != "testnet" { t.Skip("Skipping test as it requires a testnet environment") } - expectedTxHash := utils.TestHexToFelt(t, "0x76af2faec46130ffad1ab2f615ad16b30afcf49cfbd09f655a26e545b03a21d") - expectedClassHash := utils.TestHexToFelt(t, "0x76af2faec46130ffad1ab2f615ad16b30afcf49cfbd09f655a26e545b03a21d") + expectedTxHash := utils.TestHexToFelt(t, "0x28e430cc73715bd1052e8db4f17b053c53dd8174341cba4b1a337b9fecfa8c3") + expectedClassHash := utils.TestHexToFelt(t, "0x01f372292df22d28f2d4c5798734421afe9596e6a566b8bc9b7b50e26521b855") - AccountAddress := utils.TestHexToFelt(t, "0x0088d0038623a89bf853c70ea68b1062ccf32b094d1d7e5f924cda8404dc73e1") - PubKey := utils.TestHexToFelt(t, "0x7ed3c6482e12c3ef7351214d1195ee7406d814af04a305617599ff27be43883") - PrivKey := utils.TestHexToFelt(t, "0x07514c4f0de1f800b0b0c7377ef39294ce218a7abd9a1c9b6aa574779f7cdc6a") + AccountAddress := utils.TestHexToFelt(t, "0x01AE6Fe02FcD9f61A3A8c30D68a8a7c470B0d7dD6F0ee685d5BBFa0d79406ff9") + PubKey := utils.TestHexToFelt(t, "0x022288424ec8116c73d2e2ed3b0663c5030d328d9c0fb44c2b54055db467f31e") + PrivKey := utils.TestHexToFelt(t, "0x04818374f8071c3b4c3070ff7ce766e7b9352628df7b815ea4de26e0fadb5cc9") ks := account.NewMemKeystore() fakePrivKeyBI, ok := new(big.Int).SetString(PrivKey.String(), 0) diff --git a/account/tests/my_contract_my_contract.contract_class.sierra.json b/account/tests/my_contract_my_contract.contract_class.sierra.json new file mode 100644 index 00000000..c4fa11c8 --- /dev/null +++ b/account/tests/my_contract_my_contract.contract_class.sierra.json @@ -0,0 +1,941 @@ +{ + "sierra_program": [ + "0x1", + "0x4", + "0x0", + "0x2", + "0x5", + "0x4", + "0xc1", + "0x3f", + "0x1f", + "0x52616e6765436865636b", + "0x800000000000000100000000000000000000000000000000", + "0x537472756374", + "0x800000000000000f00000000000000000000000000000001", + "0x0", + "0x2ee1e2b1b89f8c495f200e4956278a4d47395fe262f27b52e5865c9524c08c3", + "0x800000000000000f00000000000000000000000000000002", + "0x1", + "0x16a4c8d7c05909052238a862d8cc3e7975bf05a07b3a69c6b28951083a6d672", + "0x4172726179", + "0x800000000000000300000000000000000000000000000001", + "0x8", + "0x800000000000000300000000000000000000000000000003", + "0x3", + "0x4", + "0x456e756d", + "0xcc5e86243f861d2d64b08c35db21013e773ac5cf10097946fe0011304886d5", + "0x2", + "0x5", + "0x101dc0399934cc08fa0d6f6f2daead4e4a38cabeea1c743e1fc28d2d6e58e99", + "0x66656c74323532", + "0x800000000000000700000000000000000000000000000000", + "0x90d0203c41ad646d024845257a6eceb2f8b59b29ce7420dd518053d2edeedc", + "0x753332", + "0x53746f7261676541646472657373", + "0x53746f726167654261736541646472657373", + "0x170f7a87eb14310129c44e31c42677779d0b8c6f1de8fde5e31ae32a4191817", + "0x800000000000000f00000000000000000000000000000003", + "0xd", + "0xe7cc11351c374dd4f75dffb4ce9ed2ef574127653400b57a361b79b42fd0d4", + "0xe", + "0x426f78", + "0x800000000000000700000000000000000000000000000001", + "0x800000000000000700000000000000000000000000000003", + "0x29d7d57c04a880978e7b3689f6218e507f3be17588744b58dc17762447ad0e7", + "0x10", + "0xda488461a9afd141e68da8594e19ecd9694b0152d68554197aa8704162a6ae", + "0x12", + "0x2a0bf21b71384d0e7bd18508cd6bdab10423e5b4e0c8276e283cee2b877d4c6", + "0x13", + "0x11c6d8087e00642489f92d2821ad6ebd6532ad1a3b6d12833da6d6810391511", + "0x536e617073686f74", + "0x800000000000000700000000000000000000000000000002", + "0x1baeba72e79e9db2587cf44fedb2f3700b2075a5e8e39a562584862c4b71f62", + "0x16", + "0x17", + "0x10203be321c62a7bd4c060d69539c1fbe065baa9e253c74d2cc48be163e259", + "0x19", + "0x4275696c74696e436f737473", + "0x53797374656d", + "0x9931c641b913035ae674b400b61a51476d506bbe8bba2ff8a6272790aba9e6", + "0x18", + "0x4761734275696c74696e", + "0x64", + "0x7265766f6b655f61705f747261636b696e67", + "0x77697468647261775f676173", + "0x6272616e63685f616c69676e", + "0x7374727563745f6465636f6e737472756374", + "0x73746f72655f74656d70", + "0x61727261795f736e617073686f745f706f705f66726f6e74", + "0x64726f70", + "0x61727261795f6e6577", + "0x66656c743235325f636f6e7374", + "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473", + "0x61727261795f617070656e64", + "0x7374727563745f636f6e737472756374", + "0x656e756d5f696e6974", + "0x1d", + "0x1e", + "0x1c", + "0x6765745f6275696c74696e5f636f737473", + "0x1b", + "0x77697468647261775f6761735f616c6c", + "0x736e617073686f745f74616b65", + "0x66756e6374696f6e5f63616c6c", + "0x656e756d5f6d61746368", + "0x1a", + "0x4f7574206f6620676173", + "0x15", + "0x14", + "0x4661696c656420746f20646573657269616c697a6520706172616d202331", + "0x6", + "0x72656e616d65", + "0x11", + "0x6a756d70", + "0x756e626f78", + "0x7", + "0xf", + "0x73746f726167655f626173655f616464726573735f636f6e7374", + "0x361458367e696363fbcc70777d07ebbd2394e89fd0adcaf147faccd1d294d60", + "0x73746f726167655f616464726573735f66726f6d5f62617365", + "0x7533325f636f6e7374", + "0xa", + "0xb", + "0x73746f726167655f726561645f73797363616c6c", + "0x9", + "0x73746f726167655f77726974655f73797363616c6c", + "0x150", + "0xffffffffffffffff", + "0x4b", + "0xc", + "0x3e", + "0x37", + "0x20", + "0x21", + "0x22", + "0x23", + "0x24", + "0x25", + "0x26", + "0x27", + "0x28", + "0x29", + "0x2a", + "0x2b", + "0x2c", + "0x2d", + "0x2e", + "0x2f", + "0x30", + "0x31", + "0x32", + "0x33", + "0x34", + "0x35", + "0x36", + "0xb2", + "0xa3", + "0x73", + "0x95", + "0x8e", + "0x38", + "0x39", + "0x3a", + "0xd1", + "0xd6", + "0xe0", + "0x3b", + "0x3c", + "0x3d", + "0xf8", + "0x3f", + "0x40", + "0x41", + "0x42", + "0x43", + "0x44", + "0x45", + "0x46", + "0x47", + "0x48", + "0x49", + "0x4a", + "0x10b", + "0x4c", + "0x110", + "0x4d", + "0x4e", + "0x4f", + "0x50", + "0x122", + "0x51", + "0x52", + "0x127", + "0x53", + "0x54", + "0x55", + "0x131", + "0x56", + "0x57", + "0x58", + "0x59", + "0x5a", + "0x5b", + "0x13e", + "0x5c", + "0x5d", + "0x5e", + "0x5f", + "0x14a", + "0x60", + "0x61", + "0x62", + "0x63", + "0xc0", + "0xc5", + "0xca", + "0xe7", + "0xfe", + "0x115", + "0x138", + "0x144", + "0xce7", + "0xd100f080e0806050d030c080b0a0905040308080605070306050403020100", + "0x3161a161916180f080c0817050d1016150f08080814050d10130812081105", + "0x8082408230522100c08212013081f081e050d1008081d0806051c031b0504", + "0x2a08080c08290522101308280827050d100808260806051c031d0825050703", + "0x1631130830082f050d100c0806052b032e0806052b032d082c052b030f0821", + "0xc08083c0508083b2e08083a0539053805373602351308340833050d100232", + "0x808420e0808420c0808410c08083b4012083f0c08083e2408083d2d08083d", + "0x1d08084205494808083b05474408083b4608083b4508083b08124408124313", + "0x8083d0c08084a3008083a4d08084c120e084b2608083d2608084a26080842", + "0x1243340808422e0808420f08083d0f08084a0808083d0e0e084b0f08083b0c", + "0x8084c130e084b4f08084c0f0e084b2e08083b2e08083d4e12083f05124408", + "0x51254081243080808420c080853520e084b2608083a5112083f2808083d50", + "0x3b05124f0812430c0808565408084c08125408124305555408083b2d08083b", + "0x51250081243280808421f08083a5808084c570e084b08124f0812434f0808", + "0x8083b5d08083b0512085c055b5a1208591d08083d0812500812435008083b", + "0x124305614d08083b0c0e084b0812600812436008083b051260081243055f5e", + "0x431f0808421208083a5208084c600e084b0812570812435708083b05125708", + "0x124305124d081243300808426008084c0812580812435808083b0512580812", + "0x505620812520812435208083b051252081243120808425708084c08124d08", + "0x863080e080e0505630805120557521264130f126312080512080505630805", + "0x600852050563080512055e084f5d601263120c0813050f0863080f080f050c", + "0x863081d085d051d08630805600565086308050c050563085d085705056308", + "0x824081f05240863081f58121d05580863080565051f0863081d65125e051d", + "0x54085405120863081208240513086308130858050f0863080f080f05540863", + "0x5260863080526050563085e0852050563080512055412130f0f0854086308", + "0x54f050563080512052d4f1266502812631226130f0e500526086308260828", + "0x85805056308300834054d3012630834082e05340863082e082d052e086308", + "0x630828080f054446480e63084d12500e300512086308120824055008630850", + "0x84508480568086308050c050563080512050008674508631244084d052808", + "0x680845056b0863086b085d050563086a0844056b6a12630869084605690863", + "0x56f6e1263086c0869050563086d0868056d6c126308686b12000568086308", + "0x57208630871086d057108630870086c05700863086f086b050563086e086a", + "0x7208630872085405460863084608240548086308480858052808630828080f", + "0x858052808630828080f057308630800081f05056308051205724648280f08", + "0x8051205734648280f08730863087308540546086308460824054808630848", + "0x63087574125e057508630875085d0575086308056e0574086308050c050563", + "0x84f080f057908630878081f05780863087677121d05770863080565057608", + "0x2d4f0f08790863087908540512086308120824052d0863082d0858054f0863", + "0x5d057b086308056e057a086308050c050563080e086f050563080512057912", + "0x7e0863087c7d121d057d0863080565057c0863087b7a125e057b0863087b08", + "0x863081208240557086308570858055208630852080f05670863087e081f05", + "0x130f1263120805120805056308050505671257520f08670863086708540512", + "0xf080f05600c1263080e0871050e0863080e0870050563080512055752127f", + "0x1305650863080c080e050563080512055e08805d086312600872050f086308", + "0x50563081f0857050563081d0852050563080512055808811f1d1263126508", + "0x125e055408630854085d055408630805600524086308050c050563085d0844", + "0x54f08630850081f05500863082628121d0528086308056505260863085424", + "0x4f0863084f085405120863081208240513086308130858050f0863080f080f", + "0x82d0828052d086308052605056308580852050563080512054f12130f0f08", + "0x48086308054f050563080512054d301282342e1263122d130f0e50052d0863", + "0x863085d085d05120863081208240534086308340858054608630848082d05", + "0x8368086312000874052e0863082e080f050045440e63085d4612340f73055d", + "0x6c6b1263086a0869056a086308050c05056308680875050563080512056908", + "0x6f0863086e086d056e0863086d086c056d0863086c086b050563086b086a05", + "0x863086f085405450863084508240544086308440858052e0863082e080f05", + "0x58052e0863082e080f057008630869081f050563080512056f45442e0f086f", + "0x512057045442e0f0870086308700854054508630845082405440863084408", + "0x8630872085d0572086308056e0571086308050c050563085d084405056308", + "0x875081f05750863087374121d0574086308056505730863087271125e0572", + "0x7608540512086308120824054d0863084d0858053008630830080f05760863", + "0x50563080c086f050563085e08680505630805120576124d300f0876086308", + "0x5790863087877125e057808630878085d057808630805760577086308050c", + "0xf0863080f080f057c0863087b081f057b086308797a121d057a0863080565", + "0x57c12130f0f087c0863087c08540512086308120824051308630813085805", + "0x87e085d057e086308056e057d086308050c050563080e086f050563080512", + "0x81f05850863086784121d0584086308056505670863087e7d125e057e0863", + "0x5405120863081208240557086308570858055208630852080f058608630885", + "0x8240505086308050858050e08630812087705861257520f08860863088608", + "0x5120863080508790552130f0e0852130f0e63080e08050e78050808630808", + "0x5080e050f0e12080e0863080e0845050f086308057a050e0863081208125e", + "0x5130863080e087b050563080512050f08870e121263120808130508086308", + "0x8057a05056308051205058808057e055708630813087d055208630812087c", + "0x52086b055708630860087d05520863080f087c05600863080c0867050c0863", + "0x85050563080512056508895e086312570884055d0863085d0870055d086308", + "0x55d0863085d087005580863081f0886051f0863081d0879051d0863085e08", + "0x24086308057a0505630865086805056308051205585d12085808630858088a", + "0x87705545d12085408630854088a055d0863085d0870055408630824088b05", + "0x8c050e0863080e085d05080863080808240505086308050858050f08630812", + "0x88e0505630805120560088d0c086312570866055752130e63080e0f08050f", + "0x128f051d0863085d082d0565086308057a050563085e0868055e5d1263080c", + "0x552086308520824051308630813085805580863081f0890051f086308651d", + "0x81308580524086308600892050563080512055852130e0858086308580891", + "0x56308120893052452130e0824086308240891055208630852082405130863", + "0x51308630813089705130863080596050f0863080e0895050e086308059405", + "0x563080512055e5d600e9a0c57520e63120f1308050f99050f0863080f0898", + "0x8630865089b051f086308570824051d08630852085805650863080c086405", + "0x24051d08630860085805240863085e089d05056308051205059c08057e0558", + "0x51d0863081d0858055408630858089e055808630824089b051f0863085d08", + "0xf0895050f086308059405541f1d0e085408630854089f051f0863081f0824", + "0x513a005130863081308980552086308520897055208630805960513086308", + "0x6508a20565086308057a050563080512055e5d600ea10c571263120e135208", + "0x57e05240863081d08a305580863080c0824051f086308570858051d086308", + "0x63085d0824051f08630860085805540863085e08a50505630805120505a408", + "0x12055008a8280863122608a705260863082408a605240863085408a3055808", + "0x58052e0863082d08ab052d0863084f1212aa054f0863082808a90505630805", + "0x80512052e581f0e082e0863082e08ac0558086308580824051f0863081f08", + "0x6308580824051f0863081f085805340863085008ad05056308120893050563", + "0x63080512051208af080863120508ae0534581f0e08340863083408ac055808", + "0x512050f08080f0863080f089f050f0863080e08b1050e0863080808b00505", + "0x57089f05570863085208b205520863081213121d0513086308056505056308", + "0x863080808b5050563080512051208b4080863120508b30557080857086308", + "0x63080565050563080512050f08080f0863080f08b7050f0863080e08b6050e", + "0x5d570808570863085708b705570863085208b805520863081213121d051308", + "0xeac0e120805444645050f2e4645050f050e120805444645050f2e4645050f", + "0x2646450fbb054f2e122e08ba0805080f120f0c12b91208054d46450e264645", + "0x5846450e0c1d46450fbd1208054d46450e1d46450ebc0e1208055046450e0c", + "0xc00552085708bf054d086008be0e120805" + ], + "sierra_program_debug_info": { + "type_names": [ + [ + 0, + "RangeCheck" + ], + [ + 1, + "Unit" + ], + [ + 2, + "Tuple" + ], + [ + 3, + "core::panics::Panic" + ], + [ + 4, + "Array" + ], + [ + 5, + "Tuple>" + ], + [ + 6, + "core::panics::PanicResult::<((),)>" + ], + [ + 7, + "core::result::Result::<(), core::array::Array::>" + ], + [ + 8, + "felt252" + ], + [ + 9, + "core::result::Result::>" + ], + [ + 10, + "u32" + ], + [ + 11, + "StorageAddress" + ], + [ + 12, + "StorageBaseAddress" + ], + [ + 13, + "my_contract::my_contract::__member_module_name::ContractMemberState" + ], + [ + 14, + "Tuple" + ], + [ + 15, + "core::panics::PanicResult::<(my_contract::my_contract::__member_module_name::ContractMemberState, ())>" + ], + [ + 16, + "Box" + ], + [ + 17, + "core::option::Option::>" + ], + [ + 18, + "my_contract::my_contract::ContractState" + ], + [ + 19, + "Tuple" + ], + [ + 20, + "core::panics::PanicResult::<(my_contract::my_contract::ContractState, ())>" + ], + [ + 21, + "core::option::Option::" + ], + [ + 22, + "Snapshot>" + ], + [ + 23, + "core::array::Span::" + ], + [ + 24, + "Tuple>" + ], + [ + 25, + "Tuple" + ], + [ + 26, + "core::panics::PanicResult::<(core::felt252,)>" + ], + [ + 27, + "BuiltinCosts" + ], + [ + 28, + "System" + ], + [ + 29, + "core::panics::PanicResult::<(core::array::Span::,)>" + ], + [ + 30, + "GasBuiltin" + ] + ], + "libfunc_names": [ + [ + 0, + "revoke_ap_tracking" + ], + [ + 1, + "withdraw_gas" + ], + [ + 2, + "branch_align" + ], + [ + 3, + "struct_deconstruct>" + ], + [ + 4, + "store_temp" + ], + [ + 5, + "array_snapshot_pop_front" + ], + [ + 6, + "drop>>" + ], + [ + 7, + "drop>" + ], + [ + 8, + "array_new" + ], + [ + 9, + "felt252_const<7733229381460288120802334208475838166080759535023995805565484692595>" + ], + [ + 10, + "store_temp" + ], + [ + 11, + "array_append" + ], + [ + 12, + "struct_construct" + ], + [ + 13, + "struct_construct>>" + ], + [ + 14, + "enum_init,)>, 1>" + ], + [ + 15, + "store_temp" + ], + [ + 16, + "store_temp" + ], + [ + 17, + "store_temp,)>>" + ], + [ + 18, + "get_builtin_costs" + ], + [ + 19, + "store_temp" + ], + [ + 20, + "withdraw_gas_all" + ], + [ + 21, + "struct_construct" + ], + [ + 22, + "struct_construct" + ], + [ + 23, + "snapshot_take" + ], + [ + 24, + "drop" + ], + [ + 25, + "function_call" + ], + [ + 26, + "enum_match>" + ], + [ + 27, + "struct_deconstruct>" + ], + [ + 28, + "snapshot_take" + ], + [ + 29, + "drop" + ], + [ + 30, + "store_temp>" + ], + [ + 31, + "function_call" + ], + [ + 32, + "drop" + ], + [ + 33, + "snapshot_take>" + ], + [ + 34, + "drop>" + ], + [ + 35, + "struct_construct>" + ], + [ + 36, + "struct_construct>>" + ], + [ + 37, + "enum_init,)>, 0>" + ], + [ + 38, + "felt252_const<375233589013918064796019>" + ], + [ + 39, + "drop>" + ], + [ + 40, + "store_temp>" + ], + [ + 41, + "function_call" + ], + [ + 42, + "enum_match>" + ], + [ + 43, + "function_call" + ], + [ + 44, + "enum_match>" + ], + [ + 45, + "drop>" + ], + [ + 46, + "felt252_const<485748461484230571791265682659113160264223489397539653310998840191492913>" + ], + [ + 47, + "struct_deconstruct" + ], + [ + 48, + "function_call" + ], + [ + 49, + "rename" + ], + [ + 50, + "struct_construct" + ], + [ + 51, + "enum_init>, 0>" + ], + [ + 52, + "store_temp>>" + ], + [ + 53, + "store_temp>>" + ], + [ + 54, + "jump" + ], + [ + 55, + "enum_init>, 1>" + ], + [ + 56, + "enum_match>>" + ], + [ + 57, + "unbox" + ], + [ + 58, + "enum_init, 0>" + ], + [ + 59, + "store_temp>" + ], + [ + 60, + "enum_init, 1>" + ], + [ + 61, + "function_call" + ], + [ + 62, + "enum_match>" + ], + [ + 63, + "struct_deconstruct>" + ], + [ + 64, + "struct_construct>" + ], + [ + 65, + "enum_init, 0>" + ], + [ + 66, + "store_temp>" + ], + [ + 67, + "enum_init, 1>" + ], + [ + 68, + "drop" + ], + [ + 69, + "storage_base_address_const<1528802474226268325865027367859591458315299653151958663884057507666229546336>" + ], + [ + 70, + "storage_address_from_base" + ], + [ + 71, + "u32_const<0>" + ], + [ + 72, + "store_temp" + ], + [ + 73, + "store_temp" + ], + [ + 74, + "storage_read_syscall" + ], + [ + 75, + "enum_init>, 0>" + ], + [ + 76, + "store_temp>>" + ], + [ + 77, + "enum_init>, 1>" + ], + [ + 78, + "function_call::unwrap_syscall>" + ], + [ + 79, + "store_temp>" + ], + [ + 80, + "storage_write_syscall" + ], + [ + 81, + "enum_init>, 0>" + ], + [ + 82, + "store_temp>>" + ], + [ + 83, + "enum_init>, 1>" + ], + [ + 84, + "function_call::unwrap_syscall>" + ], + [ + 85, + "enum_match>" + ], + [ + 86, + "struct_deconstruct>" + ], + [ + 87, + "struct_construct>" + ], + [ + 88, + "enum_init, 0>" + ], + [ + 89, + "store_temp>" + ], + [ + 90, + "enum_init, 1>" + ], + [ + 91, + "enum_match>>" + ], + [ + 92, + "struct_construct>" + ], + [ + 93, + "enum_init, 0>" + ], + [ + 94, + "enum_init, 1>" + ], + [ + 95, + "enum_match>>" + ], + [ + 96, + "struct_construct>" + ], + [ + 97, + "enum_init, 0>" + ], + [ + 98, + "store_temp>" + ], + [ + 99, + "enum_init, 1>" + ] + ], + "user_func_names": [ + [ + 0, + "my_contract::my_contract::__wrapper__MyContract__get_name" + ], + [ + 1, + "my_contract::my_contract::__wrapper__constructor" + ], + [ + 2, + "my_contract::my_contract::MyContract::get_name" + ], + [ + 3, + "core::Felt252Serde::serialize" + ], + [ + 4, + "core::Felt252Serde::deserialize" + ], + [ + 5, + "my_contract::my_contract::constructor" + ], + [ + 6, + "my_contract::my_contract::__member_module_name::InternalContractMemberStateImpl::read" + ], + [ + 7, + "my_contract::my_contract::__member_module_name::InternalContractMemberStateImpl::write" + ], + [ + 8, + "core::starknet::SyscallResultTraitImpl::::unwrap_syscall" + ], + [ + 9, + "core::starknet::SyscallResultTraitImpl::<()>::unwrap_syscall" + ] + ] + }, + "contract_class_version": "0.1.0", + "entry_points_by_type": { + "EXTERNAL": [ + { + "selector": "0x31341177714d81ad9ccd0c903211bc056a60e8af988d0fd918cc43874549653", + "function_idx": 0 + } + ], + "L1_HANDLER": [], + "CONSTRUCTOR": [ + { + "selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194", + "function_idx": 1 + } + ] + }, + "abi": [ + { + "type": "impl", + "name": "MyContract", + "interface_name": "my_contract::MyContractInterface" + }, + { + "type": "interface", + "name": "my_contract::MyContractInterface", + "items": [ + { + "type": "function", + "name": "get_name", + "inputs": [], + "outputs": [ + { + "type": "core::felt252" + } + ], + "state_mutability": "view" + } + ] + }, + { + "type": "constructor", + "name": "constructor", + "inputs": [ + { + "name": "name", + "type": "core::felt252" + } + ] + }, + { + "type": "event", + "name": "my_contract::my_contract::Event", + "kind": "enum", + "variants": [] + } + ] +} \ No newline at end of file