1
- package org .web3j .eips .eip721 .generated ;
1
+ package org .web3j .contracts .eip721 .generated ;
2
2
3
+ import io .reactivex .Flowable ;
3
4
import java .math .BigInteger ;
4
5
import java .util .ArrayList ;
5
6
import java .util .Arrays ;
23
24
import org .web3j .tx .Contract ;
24
25
import org .web3j .tx .TransactionManager ;
25
26
import org .web3j .tx .gas .ContractGasProvider ;
26
- import rx .Observable ;
27
- import rx .functions .Func1 ;
28
27
29
28
/**
30
29
* <p>Auto generated code.
31
- * <p>ERC-721 Non-Fungible Token Standard
32
- * See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
33
- * the ERC-165 identifier for this interface is 0x80ac58cd.
30
+ * <p><strong>Do not modify!</strong>
31
+ * <p>Please use the <a href="https://docs.web3j.io/command_line.html">web3j command line tools</a>,
32
+ * or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the
33
+ * <a href="https://github.com/web3j/web3j/tree/master/codegen">codegen module</a> to update.
34
34
*
35
- * <p>Generated with web3j version 4.0.0-SNAPSHOT .
35
+ * <p>Generated with web3j version 4.1.1 .
36
36
*/
37
37
public class ERC721 extends Contract {
38
38
private static final String BINARY = "Bin file was not provided" ;
@@ -175,10 +175,10 @@ public List<TransferEventResponse> getTransferEvents(TransactionReceipt transact
175
175
return responses ;
176
176
}
177
177
178
- public Observable <TransferEventResponse > transferEventObservable (EthFilter filter ) {
179
- return web3j .ethLogObservable (filter ).map (new Func1 <Log , TransferEventResponse >() {
178
+ public Flowable <TransferEventResponse > transferEventFlowable (EthFilter filter ) {
179
+ return web3j .ethLogFlowable (filter ).map (new io . reactivex . functions . Function <Log , TransferEventResponse >() {
180
180
@ Override
181
- public TransferEventResponse call (Log log ) {
181
+ public TransferEventResponse apply (Log log ) {
182
182
Contract .EventValuesWithLog eventValues = extractEventParametersWithLog (TRANSFER_EVENT , log );
183
183
TransferEventResponse typedResponse = new TransferEventResponse ();
184
184
typedResponse .log = log ;
@@ -190,10 +190,10 @@ public TransferEventResponse call(Log log) {
190
190
});
191
191
}
192
192
193
- public Observable <TransferEventResponse > transferEventObservable (DefaultBlockParameter startBlock , DefaultBlockParameter endBlock ) {
193
+ public Flowable <TransferEventResponse > transferEventFlowable (DefaultBlockParameter startBlock , DefaultBlockParameter endBlock ) {
194
194
EthFilter filter = new EthFilter (startBlock , endBlock , getContractAddress ());
195
195
filter .addSingleTopic (EventEncoder .encode (TRANSFER_EVENT ));
196
- return transferEventObservable (filter );
196
+ return transferEventFlowable (filter );
197
197
}
198
198
199
199
public List <ApprovalEventResponse > getApprovalEvents (TransactionReceipt transactionReceipt ) {
@@ -210,10 +210,10 @@ public List<ApprovalEventResponse> getApprovalEvents(TransactionReceipt transact
210
210
return responses ;
211
211
}
212
212
213
- public Observable <ApprovalEventResponse > approvalEventObservable (EthFilter filter ) {
214
- return web3j .ethLogObservable (filter ).map (new Func1 <Log , ApprovalEventResponse >() {
213
+ public Flowable <ApprovalEventResponse > approvalEventFlowable (EthFilter filter ) {
214
+ return web3j .ethLogFlowable (filter ).map (new io . reactivex . functions . Function <Log , ApprovalEventResponse >() {
215
215
@ Override
216
- public ApprovalEventResponse call (Log log ) {
216
+ public ApprovalEventResponse apply (Log log ) {
217
217
Contract .EventValuesWithLog eventValues = extractEventParametersWithLog (APPROVAL_EVENT , log );
218
218
ApprovalEventResponse typedResponse = new ApprovalEventResponse ();
219
219
typedResponse .log = log ;
@@ -225,10 +225,10 @@ public ApprovalEventResponse call(Log log) {
225
225
});
226
226
}
227
227
228
- public Observable <ApprovalEventResponse > approvalEventObservable (DefaultBlockParameter startBlock , DefaultBlockParameter endBlock ) {
228
+ public Flowable <ApprovalEventResponse > approvalEventFlowable (DefaultBlockParameter startBlock , DefaultBlockParameter endBlock ) {
229
229
EthFilter filter = new EthFilter (startBlock , endBlock , getContractAddress ());
230
230
filter .addSingleTopic (EventEncoder .encode (APPROVAL_EVENT ));
231
- return approvalEventObservable (filter );
231
+ return approvalEventFlowable (filter );
232
232
}
233
233
234
234
public List <ApprovalForAllEventResponse > getApprovalForAllEvents (TransactionReceipt transactionReceipt ) {
@@ -245,10 +245,10 @@ public List<ApprovalForAllEventResponse> getApprovalForAllEvents(TransactionRece
245
245
return responses ;
246
246
}
247
247
248
- public Observable <ApprovalForAllEventResponse > approvalForAllEventObservable (EthFilter filter ) {
249
- return web3j .ethLogObservable (filter ).map (new Func1 <Log , ApprovalForAllEventResponse >() {
248
+ public Flowable <ApprovalForAllEventResponse > approvalForAllEventFlowable (EthFilter filter ) {
249
+ return web3j .ethLogFlowable (filter ).map (new io . reactivex . functions . Function <Log , ApprovalForAllEventResponse >() {
250
250
@ Override
251
- public ApprovalForAllEventResponse call (Log log ) {
251
+ public ApprovalForAllEventResponse apply (Log log ) {
252
252
Contract .EventValuesWithLog eventValues = extractEventParametersWithLog (APPROVALFORALL_EVENT , log );
253
253
ApprovalForAllEventResponse typedResponse = new ApprovalForAllEventResponse ();
254
254
typedResponse .log = log ;
@@ -260,10 +260,10 @@ public ApprovalForAllEventResponse call(Log log) {
260
260
});
261
261
}
262
262
263
- public Observable <ApprovalForAllEventResponse > approvalForAllEventObservable (DefaultBlockParameter startBlock , DefaultBlockParameter endBlock ) {
263
+ public Flowable <ApprovalForAllEventResponse > approvalForAllEventFlowable (DefaultBlockParameter startBlock , DefaultBlockParameter endBlock ) {
264
264
EthFilter filter = new EthFilter (startBlock , endBlock , getContractAddress ());
265
265
filter .addSingleTopic (EventEncoder .encode (APPROVALFORALL_EVENT ));
266
- return approvalForAllEventObservable (filter );
266
+ return approvalForAllEventFlowable (filter );
267
267
}
268
268
269
269
@ Deprecated
0 commit comments