@@ -85,8 +85,8 @@ public class ERC1155: IERC1155 {
85
85
self . _hasReadProperties = true
86
86
} . wait ( )
87
87
}
88
-
89
- func safeTransferFrom( from: EthereumAddress , to: EthereumAddress , originalOwner: EthereumAddress , id: BigUInt , value: BigUInt , data: [ UInt8 ] ) throws -> WriteTransaction {
88
+
89
+ public func safeTransferFrom( from: EthereumAddress , to: EthereumAddress , originalOwner: EthereumAddress , id: BigUInt , value: BigUInt , data: [ UInt8 ] ) throws -> WriteTransaction {
90
90
let contract = self . contract
91
91
var basicOptions = TransactionOptions ( )
92
92
basicOptions. from = from
@@ -95,8 +95,8 @@ public class ERC1155: IERC1155 {
95
95
let tx = contract. write ( " safeTransferFrom " , parameters: [ originalOwner, to, id, value, data] as [ AnyObject ] , transactionOptions: basicOptions) !
96
96
return tx
97
97
}
98
-
99
- func safeBatchTransferFrom( from: EthereumAddress , to: EthereumAddress , originalOwner: EthereumAddress , ids: [ BigUInt ] , values: [ BigUInt ] , data: [ UInt8 ] ) throws -> WriteTransaction {
98
+
99
+ public func safeBatchTransferFrom( from: EthereumAddress , to: EthereumAddress , originalOwner: EthereumAddress , ids: [ BigUInt ] , values: [ BigUInt ] , data: [ UInt8 ] ) throws -> WriteTransaction {
100
100
let contract = self . contract
101
101
var basicOptions = TransactionOptions ( )
102
102
basicOptions. from = from
@@ -105,17 +105,17 @@ public class ERC1155: IERC1155 {
105
105
let tx = contract. write ( " safeBatchTransferFrom " , parameters: [ originalOwner, to, ids, values, data] as [ AnyObject ] , transactionOptions: basicOptions) !
106
106
return tx
107
107
}
108
-
109
- func balanceOf( account: EthereumAddress , id: BigUInt ) throws -> BigUInt {
108
+
109
+ public func balanceOf( account: EthereumAddress , id: BigUInt ) throws -> BigUInt {
110
110
let contract = self . contract
111
111
var transactionOptions = TransactionOptions ( )
112
112
transactionOptions. callOnBlock = . latest
113
113
let result = try contract. read ( " balanceOf " , parameters: [ account, id] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. call ( transactionOptions: transactionOptions)
114
114
guard let res = result [ " 0 " ] as? BigUInt else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
115
115
return res
116
116
}
117
-
118
- func setApprovalForAll( from: EthereumAddress , operator user: EthereumAddress , approved: Bool , scope: Data ) throws -> WriteTransaction {
117
+
118
+ public func setApprovalForAll( from: EthereumAddress , operator user: EthereumAddress , approved: Bool , scope: Data ) throws -> WriteTransaction {
119
119
let contract = self . contract
120
120
var basicOptions = TransactionOptions ( )
121
121
basicOptions. from = from
@@ -124,17 +124,17 @@ public class ERC1155: IERC1155 {
124
124
let tx = contract. write ( " setApprovalForAll " , parameters: [ user, approved, scope] as [ AnyObject ] , transactionOptions: basicOptions) !
125
125
return tx
126
126
}
127
-
128
- func isApprovedForAll( owner: EthereumAddress , operator user: EthereumAddress , scope: Data ) throws -> Bool {
127
+
128
+ public func isApprovedForAll( owner: EthereumAddress , operator user: EthereumAddress , scope: Data ) throws -> Bool {
129
129
let contract = self . contract
130
130
var basicOptions = TransactionOptions ( )
131
131
basicOptions. callOnBlock = . latest
132
132
let result = try contract. read ( " isApprovedForAll " , parameters: [ owner, user, scope] as [ AnyObject ] , extraData: Data ( ) , transactionOptions: self . transactionOptions) !. call ( transactionOptions: transactionOptions)
133
133
guard let res = result [ " 0 " ] as? Bool else { throw Web3Error . processingError ( desc: " Failed to get result of expected type from the Ethereum node " ) }
134
134
return res
135
135
}
136
-
137
- func supportsInterface( interfaceID: String ) throws -> Bool {
136
+
137
+ public func supportsInterface( interfaceID: String ) throws -> Bool {
138
138
let contract = self . contract
139
139
var transactionOptions = TransactionOptions ( )
140
140
transactionOptions. callOnBlock = . latest
0 commit comments