Skip to content

Commit

Permalink
regenerate files after merging new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Apr 26, 2024
1 parent 684e05d commit 6ffffad
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 5 deletions.
33 changes: 33 additions & 0 deletions abi/contracts_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion abi/generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
16 changes: 13 additions & 3 deletions abi/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -936,7 +946,7 @@ func (c ContractInterface) IntMsgs() []msgDecoderFunc {
}
case GramMiner:
return []msgDecoderFunc{
decodeFuncSubmitProofOfWorkMsgBody,
decodeFuncGramSubmitProofOfWorkMsgBody,
}
case JettonMaster:
return []msgDecoderFunc{
Expand Down
2 changes: 1 addition & 1 deletion abi/schemas/gram.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<code_hash>ccae6ffb603c7d3e779ab59ec267ffc22dc1ebe0af9839902289a7a83e4c00f1</code_hash>
<get_method name="get_pow_params"/>
<msg_in>
<internal name="submit_proof_of_work"/>
<internal name="gram_submit_proof_of_work"/>
</msg_in>
</interface>
<get_method name="get_pow_params">
Expand Down
1 change: 1 addition & 0 deletions abi/schemas/wallets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<interface name="wallet_v5r1" inherits="wallet">
<code_hash>f3d7ca53493deedac28b381986a849403cbac3d2c584779af081065af0ac4b93</code_hash> <!-- with library -->
<code_hash>e4cf3b2f4c6d6a61ea0f2b5447d266785b26af3637db2deee6bcd1aa826f3412</code_hash> <!-- without library -->
<get_method name="seqno"/>
</interface>
<interface name="wallet_highload_v1r1" inherits="wallet">
<code_hash>d8cdbbb79f2c5caa677ac450770be0351be21e1250486de85cc52aa33dd16484</code_hash>
Expand Down

0 comments on commit 6ffffad

Please sign in to comment.