Skip to content

Commit ddaf7df

Browse files
committed
add governed jetton v2
1 parent 089ef9e commit ddaf7df

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

abi/interfaces.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const (
4343
JettonWallet
4444
JettonWalletCoffeeLp
4545
JettonWalletGoverned
46+
JettonWalletGovernedV2
4647
JettonWalletV1
4748
JettonWalletV2
4849
Locker
@@ -202,6 +203,8 @@ func (c ContractInterface) String() string {
202203
return "jetton_wallet_coffee_lp"
203204
case JettonWalletGoverned:
204205
return "jetton_wallet_governed"
206+
case JettonWalletGovernedV2:
207+
return "jetton_wallet_governed_v2"
205208
case JettonWalletV1:
206209
return "jetton_wallet_v1"
207210
case JettonWalletV2:
@@ -449,6 +452,8 @@ func ContractInterfaceFromString(s string) ContractInterface {
449452
return JettonWalletCoffeeLp
450453
case "jetton_wallet_governed":
451454
return JettonWalletGoverned
455+
case "jetton_wallet_governed_v2":
456+
return JettonWalletGovernedV2
452457
case "jetton_wallet_v1":
453458
return JettonWalletV1
454459
case "jetton_wallet_v2":
@@ -1657,6 +1662,8 @@ func (c ContractInterface) recursiveImplements(other ContractInterface) bool {
16571662
return JettonWallet.Implements(other)
16581663
case JettonWalletGoverned:
16591664
return JettonWallet.Implements(other)
1665+
case JettonWalletGovernedV2:
1666+
return JettonWallet.Implements(other)
16601667
case JettonWalletV1:
16611668
return JettonWallet.Implements(other)
16621669
case JettonWalletV2:
@@ -2129,6 +2136,12 @@ var knownContracts = map[ton.Bits256]knownContractDescription{
21292136
Seqno,
21302137
},
21312138
},
2139+
ton.MustParseHash("e9aa0c02aafd5b38a295cc489019882439cf35c9738cc6dbeece4403dd066a5a"): {
2140+
contractInterfaces: []ContractInterface{JettonWalletGovernedV2},
2141+
getMethods: []InvokeFn{
2142+
GetWalletData,
2143+
},
2144+
},
21322145
ton.MustParseHash("edcc62f1752297fbda2408c09ca420b3af9528102e33b9e0a0ebe38553c18fec"): {
21332146
contractInterfaces: []ContractInterface{OmnistonReferral},
21342147
getMethods: []InvokeFn{},

abi/schemas/jettons.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
<interface name="jetton_wallet_governed" inherits="jetton_wallet">
4848
<code_hash>89468f02c78e570802e39979c8516fc38df07ea76a48357e0536f2ba7b3ee37b</code_hash>
4949
</interface>
50+
<interface name="jetton_wallet_governed_v2" inherits="jetton_wallet">
51+
<code_hash>e9aa0c02aafd5b38a295cc489019882439cf35c9738cc6dbeece4403dd066a5a</code_hash>
52+
</interface>
5053

5154
<!-- Jettons -->
5255
<get_method name="get_jetton_data">

0 commit comments

Comments
 (0)