@@ -708,7 +708,7 @@ func uniffiCheckChecksums() {
708708 checksum := rustCall (func (_uniffiStatus * C.RustCallStatus ) C.uint16_t {
709709 return C .uniffi_kos_mobile_checksum_func_new_substrate_transaction_options ()
710710 })
711- if checksum != 59821 {
711+ if checksum != 29579 {
712712 // If this happens try cleaning and rebuilding your project
713713 panic ("kos_mobile: uniffi_kos_mobile_checksum_func_new_substrate_transaction_options: UniFFI API checksum mismatch" )
714714 }
@@ -1702,25 +1702,27 @@ type TransactionChainOptionsSubstrate struct {
17021702 Era []byte
17031703 Nonce uint32
17041704 Tip uint64
1705- AssetId * uint32
1705+ AssetId * string
17061706 BlockHash []byte
17071707 GenesisHash []byte
17081708 SpecVersion uint32
17091709 TransactionVersion uint32
17101710 AppId * uint32
1711+ SignedExtensions * []string
17111712}
17121713
17131714func (e TransactionChainOptionsSubstrate ) Destroy () {
17141715 FfiDestroyerBytes {}.Destroy (e .Call )
17151716 FfiDestroyerBytes {}.Destroy (e .Era )
17161717 FfiDestroyerUint32 {}.Destroy (e .Nonce )
17171718 FfiDestroyerUint64 {}.Destroy (e .Tip )
1718- FfiDestroyerOptionalUint32 {}.Destroy (e .AssetId )
1719+ FfiDestroyerOptionalString {}.Destroy (e .AssetId )
17191720 FfiDestroyerBytes {}.Destroy (e .BlockHash )
17201721 FfiDestroyerBytes {}.Destroy (e .GenesisHash )
17211722 FfiDestroyerUint32 {}.Destroy (e .SpecVersion )
17221723 FfiDestroyerUint32 {}.Destroy (e .TransactionVersion )
17231724 FfiDestroyerOptionalUint32 {}.Destroy (e .AppId )
1725+ FfiDestroyerOptionalSequenceString {}.Destroy (e .SignedExtensions )
17241726}
17251727
17261728type TransactionChainOptionsCosmos struct {
@@ -1762,12 +1764,13 @@ func (FfiConverterTransactionChainOptions) Read(reader io.Reader) TransactionCha
17621764 FfiConverterBytesINSTANCE .Read (reader ),
17631765 FfiConverterUint32INSTANCE .Read (reader ),
17641766 FfiConverterUint64INSTANCE .Read (reader ),
1765- FfiConverterOptionalUint32INSTANCE .Read (reader ),
1767+ FfiConverterOptionalStringINSTANCE .Read (reader ),
17661768 FfiConverterBytesINSTANCE .Read (reader ),
17671769 FfiConverterBytesINSTANCE .Read (reader ),
17681770 FfiConverterUint32INSTANCE .Read (reader ),
17691771 FfiConverterUint32INSTANCE .Read (reader ),
17701772 FfiConverterOptionalUint32INSTANCE .Read (reader ),
1773+ FfiConverterOptionalSequenceStringINSTANCE .Read (reader ),
17711774 }
17721775 case 4 :
17731776 return TransactionChainOptionsCosmos {
@@ -1794,12 +1797,13 @@ func (FfiConverterTransactionChainOptions) Write(writer io.Writer, value Transac
17941797 FfiConverterBytesINSTANCE .Write (writer , variant_value .Era )
17951798 FfiConverterUint32INSTANCE .Write (writer , variant_value .Nonce )
17961799 FfiConverterUint64INSTANCE .Write (writer , variant_value .Tip )
1797- FfiConverterOptionalUint32INSTANCE .Write (writer , variant_value .AssetId )
1800+ FfiConverterOptionalStringINSTANCE .Write (writer , variant_value .AssetId )
17981801 FfiConverterBytesINSTANCE .Write (writer , variant_value .BlockHash )
17991802 FfiConverterBytesINSTANCE .Write (writer , variant_value .GenesisHash )
18001803 FfiConverterUint32INSTANCE .Write (writer , variant_value .SpecVersion )
18011804 FfiConverterUint32INSTANCE .Write (writer , variant_value .TransactionVersion )
18021805 FfiConverterOptionalUint32INSTANCE .Write (writer , variant_value .AppId )
1806+ FfiConverterOptionalSequenceStringINSTANCE .Write (writer , variant_value .SignedExtensions )
18031807 case TransactionChainOptionsCosmos :
18041808 writeInt32 (writer , 4 )
18051809 FfiConverterStringINSTANCE .Write (writer , variant_value .ChainId )
@@ -1919,6 +1923,43 @@ func (_ FfiDestroyerOptionalUint32) Destroy(value *uint32) {
19191923 }
19201924}
19211925
1926+ type FfiConverterOptionalString struct {}
1927+
1928+ var FfiConverterOptionalStringINSTANCE = FfiConverterOptionalString {}
1929+
1930+ func (c FfiConverterOptionalString ) Lift (rb RustBufferI ) * string {
1931+ return LiftFromRustBuffer [* string ](c , rb )
1932+ }
1933+
1934+ func (_ FfiConverterOptionalString ) Read (reader io.Reader ) * string {
1935+ if readInt8 (reader ) == 0 {
1936+ return nil
1937+ }
1938+ temp := FfiConverterStringINSTANCE .Read (reader )
1939+ return & temp
1940+ }
1941+
1942+ func (c FfiConverterOptionalString ) Lower (value * string ) C.RustBuffer {
1943+ return LowerIntoRustBuffer [* string ](c , value )
1944+ }
1945+
1946+ func (_ FfiConverterOptionalString ) Write (writer io.Writer , value * string ) {
1947+ if value == nil {
1948+ writeInt8 (writer , 0 )
1949+ } else {
1950+ writeInt8 (writer , 1 )
1951+ FfiConverterStringINSTANCE .Write (writer , * value )
1952+ }
1953+ }
1954+
1955+ type FfiDestroyerOptionalString struct {}
1956+
1957+ func (_ FfiDestroyerOptionalString ) Destroy (value * string ) {
1958+ if value != nil {
1959+ FfiDestroyerString {}.Destroy (* value )
1960+ }
1961+ }
1962+
19221963type FfiConverterOptionalWalletOptions struct {}
19231964
19241965var FfiConverterOptionalWalletOptionsINSTANCE = FfiConverterOptionalWalletOptions {}
@@ -2030,6 +2071,43 @@ func (_ FfiDestroyerOptionalWalletChainOptions) Destroy(value *WalletChainOption
20302071 }
20312072}
20322073
2074+ type FfiConverterOptionalSequenceString struct {}
2075+
2076+ var FfiConverterOptionalSequenceStringINSTANCE = FfiConverterOptionalSequenceString {}
2077+
2078+ func (c FfiConverterOptionalSequenceString ) Lift (rb RustBufferI ) * []string {
2079+ return LiftFromRustBuffer [* []string ](c , rb )
2080+ }
2081+
2082+ func (_ FfiConverterOptionalSequenceString ) Read (reader io.Reader ) * []string {
2083+ if readInt8 (reader ) == 0 {
2084+ return nil
2085+ }
2086+ temp := FfiConverterSequenceStringINSTANCE .Read (reader )
2087+ return & temp
2088+ }
2089+
2090+ func (c FfiConverterOptionalSequenceString ) Lower (value * []string ) C.RustBuffer {
2091+ return LowerIntoRustBuffer [* []string ](c , value )
2092+ }
2093+
2094+ func (_ FfiConverterOptionalSequenceString ) Write (writer io.Writer , value * []string ) {
2095+ if value == nil {
2096+ writeInt8 (writer , 0 )
2097+ } else {
2098+ writeInt8 (writer , 1 )
2099+ FfiConverterSequenceStringINSTANCE .Write (writer , * value )
2100+ }
2101+ }
2102+
2103+ type FfiDestroyerOptionalSequenceString struct {}
2104+
2105+ func (_ FfiDestroyerOptionalSequenceString ) Destroy (value * []string ) {
2106+ if value != nil {
2107+ FfiDestroyerSequenceString {}.Destroy (* value )
2108+ }
2109+ }
2110+
20332111type FfiConverterSequenceUint32 struct {}
20342112
20352113var FfiConverterSequenceUint32INSTANCE = FfiConverterSequenceUint32 {}
@@ -2642,10 +2720,10 @@ func NewIcpWalletOptions(useLegacyPath bool, keyType string) WalletOptions {
26422720 }))
26432721}
26442722
2645- func NewSubstrateTransactionOptions (call string , era string , nonce uint32 , tip uint64 , assetId * uint32 , blockHash string , genesisHash string , specVersion uint32 , transactionVersion uint32 , appId * uint32 ) TransactionChainOptions {
2723+ func NewSubstrateTransactionOptions (call string , era string , nonce uint32 , tip uint64 , assetId * string , blockHash string , genesisHash string , specVersion uint32 , transactionVersion uint32 , appId * uint32 , signedExtensions * [] string ) TransactionChainOptions {
26462724 return FfiConverterTransactionChainOptionsINSTANCE .Lift (rustCall (func (_uniffiStatus * C.RustCallStatus ) RustBufferI {
26472725 return GoRustBuffer {
2648- inner : C .uniffi_kos_mobile_fn_func_new_substrate_transaction_options (FfiConverterStringINSTANCE .Lower (call ), FfiConverterStringINSTANCE .Lower (era ), FfiConverterUint32INSTANCE .Lower (nonce ), FfiConverterUint64INSTANCE .Lower (tip ), FfiConverterOptionalUint32INSTANCE .Lower (assetId ), FfiConverterStringINSTANCE .Lower (blockHash ), FfiConverterStringINSTANCE .Lower (genesisHash ), FfiConverterUint32INSTANCE .Lower (specVersion ), FfiConverterUint32INSTANCE .Lower (transactionVersion ), FfiConverterOptionalUint32INSTANCE .Lower (appId ), _uniffiStatus ),
2726+ inner : C .uniffi_kos_mobile_fn_func_new_substrate_transaction_options (FfiConverterStringINSTANCE .Lower (call ), FfiConverterStringINSTANCE .Lower (era ), FfiConverterUint32INSTANCE .Lower (nonce ), FfiConverterUint64INSTANCE .Lower (tip ), FfiConverterOptionalStringINSTANCE .Lower (assetId ), FfiConverterStringINSTANCE .Lower (blockHash ), FfiConverterStringINSTANCE .Lower (genesisHash ), FfiConverterUint32INSTANCE .Lower (specVersion ), FfiConverterUint32INSTANCE .Lower (transactionVersion ), FfiConverterOptionalUint32INSTANCE .Lower (appId ), FfiConverterOptionalSequenceStringINSTANCE . Lower ( signedExtensions ), _uniffiStatus ),
26492727 }
26502728 }))
26512729}
0 commit comments