//
//  JSHandleClass.m
//  TestDemo
//
//  Created by Etrent on 2022/9/5.
//

#import "JSHandleClass.h"
#import "cocos_demo_3_mobile-Swift.h"

MyWalletConnect* wc;
@implementation JSHandleClass

+ (void) init{
    wc =[MyWalletConnect alloc];
    [wc initWalleConnect];
    NSLog(@"调用到了init");
}

+ (void)walleConnectFun:(NSString*)urlTypesStr {
    [wc walleConnectFunWithUrlTypeStr:urlTypesStr];
    NSLog(@"调用到了walleConnectFun");
}


+ (void)sendMessageFun:(NSString*)jsonStr {
    [wc customRequestsWithJsonStr:jsonStr];
//    @"{\"method\": \"personal_sign\",\"params\": [\"0x49206861766520313030e282ac\",\"0x2eB535d54382eA5CED9183899916A9d39e093877\"]}"
    [wc walleConnectFunWithUrlTypeStr:@"imtokenv2"];
}

+ (void)sendContractFun:(NSString*)jsonStr {
    [wc contractRequestWithJsonStr:jsonStr];
//    @"{\"method\": \"personal_sign\",\"params\": [\"0x49206861766520313030e282ac\",\"0x2eB535d54382eA5CED9183899916A9d39e093877\"]}"
    [wc walleConnectFunWithUrlTypeStr:@"imtokenv2"];
}

@end
