From 6ffffada77769aa038de8db3aa12b9a13dd25064 Mon Sep 17 00:00:00 2001 From: Denis Subbotin Date: Fri, 26 Apr 2024 20:52:48 +0300 Subject: [PATCH] regenerate files after merging new schemas --- abi/contracts_errors.go | 33 +++++++++++++++++++++++++++++++++ abi/generated_test.go | 2 +- abi/interfaces.go | 16 +++++++++++++--- abi/schemas/gram.xml | 2 +- abi/schemas/wallets.xml | 1 + 5 files changed, 49 insertions(+), 5 deletions(-) diff --git a/abi/contracts_errors.go b/abi/contracts_errors.go index 6ec9f022..08aef8b3 100644 --- a/abi/contracts_errors.go +++ b/abi/contracts_errors.go @@ -24,6 +24,39 @@ var contractErrors = map[ContractInterface]map[int32]string{ 1007: "Unauthorized proposer", 1008: "Invalid new order", }, + NftAuctionGetgemsV3: {403: "Unauthorized address", + 1000: "Low bid", + 1001: "Already initiated", + 1002: "Invalid op, expect ownership_assigned", + 1003: "Invalid op, expect ownership_assigned", + 1005: "Already executed", + 1006: "Already activated", + 1008: "Not enough TONs", + 1009: "Already has bid", + 1010: "Auction in progress", + 65535: "Unknown operation", + }, + NftSaleGetgemsV2: {404: "Already sold or cancelled", + 450: "Not enough TONs for sale", + 457: "Not enough TONs for cancellation", + 458: "Unauthorized cancellation", + 500: "Unauthorized initiation", + 501: "Invalid op, expected ownership_assigned", + 65535: "Unknown operation", + }, + NftSaleGetgemsV3: {404: "Already sold or cancelled", + 405: "Mode 32 not allowed", + 406: "Can't execute command at this time", + 408: "Inconsistent price and fees", + 409: "Inconsistent price and fees", + 410: "Inconsistent price and fees", + 450: "Not enough TONs for sale", + 457: "Not enough TONs for cancellation", + 458: "Unauthorized cancellation", + 500: "Unauthorized initiation", + 501: "Invalid op, expected ownership_assigned", + 65535: "Unknown operation", + }, WalletV4R2: {33: "Invalid seqno", 34: "Invalid subwallet ID", 35: "Invalid signature", diff --git a/abi/generated_test.go b/abi/generated_test.go index eda7b90a..a1c236a8 100644 --- a/abi/generated_test.go +++ b/abi/generated_test.go @@ -1078,7 +1078,7 @@ func TestDecodeExternalIn(t *testing.T) { { name: "gram miner - submit proof of work", interfaces: []ContractInterface{GramMiner}, - wantOpName: "SubmitProofOfWork", + wantOpName: "GramSubmitProofOfWork", boc: "te6ccgEBAQEAewAA8k1pbmUAZh5n6Ko92S+6JcXv0vZh3JgmUoAzO2R8CeNp7hvCAYZUe9AHyiw3HOIN5fq3UWUTxJ2NzkQQ8n/18ag79sePGkYAAACknATyivxe2NapVEVFPsjSyiw3HOIN5fq3UWUTxJ2NzkQQ8n/18ag79sePGkYAAAA=", wantValue: func() any { seed := big.Int{} diff --git a/abi/interfaces.go b/abi/interfaces.go index cdf9dc3b..53e97455 100644 --- a/abi/interfaces.go +++ b/abi/interfaces.go @@ -788,6 +788,12 @@ var knownContracts = map[ton.Bits256]knownContractDescription{ contractInterfaces: []ContractInterface{WalletHighloadV2R2}, getMethods: []InvokeFn{}, }, + ton.MustParseHash("24221fa571e542e055c77bedfdbf527c7af460cfdc7f344c450787b4cfa1eb4d"): { + contractInterfaces: []ContractInterface{NftSaleGetgemsV3}, + getMethods: []InvokeFn{ + GetSaleData, + }, + }, ton.MustParseHash("32050dfac44f64866bcc86f2cd9e1305fe9dcadb3959c002237cfb0902d44323"): { contractInterfaces: []ContractInterface{NftSaleGetgemsV3}, getMethods: []InvokeFn{ @@ -891,11 +897,15 @@ var knownContracts = map[ton.Bits256]knownContractDescription{ }, ton.MustParseHash("e4cf3b2f4c6d6a61ea0f2b5447d266785b26af3637db2deee6bcd1aa826f3412"): { contractInterfaces: []ContractInterface{WalletV5R1}, - getMethods: []InvokeFn{}, + getMethods: []InvokeFn{ + Seqno, + }, }, ton.MustParseHash("f3d7ca53493deedac28b381986a849403cbac3d2c584779af081065af0ac4b93"): { contractInterfaces: []ContractInterface{WalletV5R1}, - getMethods: []InvokeFn{}, + getMethods: []InvokeFn{ + Seqno, + }, }, ton.MustParseHash("fe9530d3243853083ef2ef0b4c2908c0abf6fa1c31ea243aacaa5bf8c7d753f1"): { contractInterfaces: []ContractInterface{WalletV2R2}, @@ -936,7 +946,7 @@ func (c ContractInterface) IntMsgs() []msgDecoderFunc { } case GramMiner: return []msgDecoderFunc{ - decodeFuncSubmitProofOfWorkMsgBody, + decodeFuncGramSubmitProofOfWorkMsgBody, } case JettonMaster: return []msgDecoderFunc{ diff --git a/abi/schemas/gram.xml b/abi/schemas/gram.xml index 63252111..d34d9776 100644 --- a/abi/schemas/gram.xml +++ b/abi/schemas/gram.xml @@ -3,7 +3,7 @@ ccae6ffb603c7d3e779ab59ec267ffc22dc1ebe0af9839902289a7a83e4c00f1 - + diff --git a/abi/schemas/wallets.xml b/abi/schemas/wallets.xml index cc0fad60..64bf5428 100644 --- a/abi/schemas/wallets.xml +++ b/abi/schemas/wallets.xml @@ -96,6 +96,7 @@ f3d7ca53493deedac28b381986a849403cbac3d2c584779af081065af0ac4b93 e4cf3b2f4c6d6a61ea0f2b5447d266785b26af3637db2deee6bcd1aa826f3412 + d8cdbbb79f2c5caa677ac450770be0351be21e1250486de85cc52aa33dd16484