Skip to content

Commit

Permalink
Upgrade to 4.0.21-tangem5
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorov-d committed May 21, 2024
1 parent 144d999 commit 002e5a7
Show file tree
Hide file tree
Showing 25 changed files with 79,279 additions and 248,200 deletions.
2 changes: 1 addition & 1 deletion TangemWalletCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'TangemWalletCore'
s.version = '4.0.21-tangem3'
s.version = '4.0.21-tangem5'
s.summary = 'Use TW xcframework for Tangem integration'

# This description is used to generate tags and improve search results.
Expand Down
10 changes: 5 additions & 5 deletions WalletCore.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
<key>BinaryPath</key>
<string>WalletCore.framework/WalletCore</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>WalletCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>WalletCore.framework/WalletCore</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>WalletCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
// SPDX-License-Identifier: Apache-2.0
//
// Copyright © 2017 Trust Wallet.

// TANGEM

#pragma once

#include "TWBase.h"
#include "TWString.h"
#include "TWData.h"

TW_EXTERN_C_BEGIN

struct TWPublicKey;

/// Represents a TheOpenNetwork address.
TW_EXPORT_CLASS
struct TWTheOpenNetworkAddress;

/// Compares two addresses for equality.
///
/// \param lhs left Non-null TheOpenNetwork address to be compared
/// \param rhs right Non-null TheOpenNetwork address to be compared
/// \return true if both address are equal, false otherwise
TW_EXPORT_STATIC_METHOD
bool TWTheOpenNetworkAddressEqual(struct TWTheOpenNetworkAddress *_Nonnull lhs, struct TWTheOpenNetworkAddress *_Nonnull rhs);

/// Determines if the string is a valid TheOpenNetwork address.
///
/// \param string Non-null string.
/// \return true if it's a valid address, false otherwise
TW_EXPORT_STATIC_METHOD
bool TWTheOpenNetworkAddressIsValidString(TWString *_Nonnull string);

/// Create an address from a base58 string representation.
///
/// \param string Non-null string
/// \note Must be deleted with \TWTheOpenNetworkAddressDelete
/// \return Non-null TheOpenNetworkAddress
TW_EXPORT_STATIC_METHOD
struct TWTheOpenNetworkAddress *_Nullable TWTheOpenNetworkAddressCreateWithString(TWString *_Nonnull string);

/// Create an address from a public key and a prefix byte.
///
/// \param publicKey Non-null public key
/// \param prefix public key prefix
/// \note Must be deleted with \TWTheOpenNetworkAddressDelete
/// \return Non-null TheOpenNetworkAddress
TW_EXPORT_STATIC_METHOD
struct TWTheOpenNetworkAddress *_Nonnull TWTheOpenNetworkAddressCreateWithPublicKey(struct TWPublicKey *_Nonnull publicKey);

/// Delete a TheOpenNetwork address
///
/// \param address Non-null TheOpenNetworkAddress
TW_EXPORT_METHOD
void TWTheOpenNetworkAddressDelete(struct TWTheOpenNetworkAddress *_Nonnull address);

/// Returns the address string representation.
///
/// \param address Non-null TheOpenNetworkAddress
/// \return Address description as a non-null string
TW_EXPORT_PROPERTY
TWString *_Nonnull TWTheOpenNetworkAddressDescription(struct TWTheOpenNetworkAddress *_Nonnull address);

/// Returns the address string representation with additional parameters.
///
/// \param address Non-null TheOpenNetworkAddress
/// \return Address description as a non-null string
TW_EXPORT_METHOD
TWString *_Nonnull TWTheOpenNetworkAddressStringRepresentation(struct TWTheOpenNetworkAddress *_Nonnull address, bool userFriendly, bool bounceable, bool testOnly);

TW_EXTERN_C_END
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
// Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
#ifndef WALLETCORE_SWIFT_H
#define WALLETCORE_SWIFT_H
#pragma clang diagnostic push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ FOUNDATION_EXPORT const unsigned char WalletCoreVersionString[];
#include "TWStoredKeyEncryptionLevel.h"
#include "TWTHORChainSwap.h"
#include "TWTezosMessageSigner.h"
#include "TWTheOpenNetworkAddress.h"
#include "TWTransactionCompiler.h"
#include "TWTronMessageSigner.h"
#include "TWWalletConnectRequest.h"
Expand Down
Binary file modified WalletCore.xcframework/ios-arm64/WalletCore.framework/Info.plist
Binary file not shown.
Loading

0 comments on commit 002e5a7

Please sign in to comment.