Skip to content

Commit 62f1b6c

Browse files
committed
Regenerated contracts
1 parent ffbbbdd commit 62f1b6c

6 files changed

Lines changed: 190 additions & 0 deletions

File tree

integration-tests/src/test/java/org/web3j/generated/Arrays.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,20 @@ public class Arrays extends Contract {
3939

4040
public static final String FUNC_DYNAMICREVERSE = "dynamicReverse";
4141

42+
@Deprecated
43+
protected Arrays(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
44+
super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit);
45+
}
46+
4247
protected Arrays(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
4348
super(BINARY, contractAddress, web3j, credentials, contractGasProvider);
4449
}
4550

51+
@Deprecated
52+
protected Arrays(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
53+
super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit);
54+
}
55+
4656
protected Arrays(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
4757
super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider);
4858
}
@@ -126,14 +136,34 @@ public List call() throws Exception {
126136
});
127137
}
128138

139+
public static RemoteCall<Arrays> deploy(Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
140+
return deployRemoteCall(Arrays.class, web3j, credentials, contractGasProvider, BINARY, "");
141+
}
142+
143+
@Deprecated
129144
public static RemoteCall<Arrays> deploy(Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
130145
return deployRemoteCall(Arrays.class, web3j, credentials, gasPrice, gasLimit, BINARY, "");
131146
}
132147

148+
public static RemoteCall<Arrays> deploy(Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
149+
return deployRemoteCall(Arrays.class, web3j, transactionManager, contractGasProvider, BINARY, "");
150+
}
151+
152+
@Deprecated
133153
public static RemoteCall<Arrays> deploy(Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
134154
return deployRemoteCall(Arrays.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, "");
135155
}
136156

157+
@Deprecated
158+
public static Arrays load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
159+
return new Arrays(contractAddress, web3j, credentials, gasPrice, gasLimit);
160+
}
161+
162+
@Deprecated
163+
public static Arrays load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
164+
return new Arrays(contractAddress, web3j, transactionManager, gasPrice, gasLimit);
165+
}
166+
137167
public static Arrays load(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
138168
return new Arrays(contractAddress, web3j, credentials, contractGasProvider);
139169
}

integration-tests/src/test/java/org/web3j/generated/Fibonacci.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,20 @@ public class Fibonacci extends Contract {
4444
Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {}, new TypeReference<Uint256>() {}));
4545
;
4646

47+
@Deprecated
48+
protected Fibonacci(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
49+
super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit);
50+
}
51+
4752
protected Fibonacci(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
4853
super(BINARY, contractAddress, web3j, credentials, contractGasProvider);
4954
}
5055

56+
@Deprecated
57+
protected Fibonacci(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
58+
super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit);
59+
}
60+
5161
protected Fibonacci(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
5262
super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider);
5363
}
@@ -100,14 +110,34 @@ public Observable<NotifyEventResponse> notifyEventObservable(DefaultBlockParamet
100110
return notifyEventObservable(filter);
101111
}
102112

113+
public static RemoteCall<Fibonacci> deploy(Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
114+
return deployRemoteCall(Fibonacci.class, web3j, credentials, contractGasProvider, BINARY, "");
115+
}
116+
117+
@Deprecated
103118
public static RemoteCall<Fibonacci> deploy(Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
104119
return deployRemoteCall(Fibonacci.class, web3j, credentials, gasPrice, gasLimit, BINARY, "");
105120
}
106121

122+
public static RemoteCall<Fibonacci> deploy(Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
123+
return deployRemoteCall(Fibonacci.class, web3j, transactionManager, contractGasProvider, BINARY, "");
124+
}
125+
126+
@Deprecated
107127
public static RemoteCall<Fibonacci> deploy(Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
108128
return deployRemoteCall(Fibonacci.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, "");
109129
}
110130

131+
@Deprecated
132+
public static Fibonacci load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
133+
return new Fibonacci(contractAddress, web3j, credentials, gasPrice, gasLimit);
134+
}
135+
136+
@Deprecated
137+
public static Fibonacci load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
138+
return new Fibonacci(contractAddress, web3j, transactionManager, gasPrice, gasLimit);
139+
}
140+
111141
public static Fibonacci load(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
112142
return new Fibonacci(contractAddress, web3j, credentials, contractGasProvider);
113143
}

integration-tests/src/test/java/org/web3j/generated/Greeter.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,20 @@ public class Greeter extends Contract {
3434

3535
public static final String FUNC_GREET = "greet";
3636

37+
@Deprecated
38+
protected Greeter(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
39+
super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit);
40+
}
41+
3742
protected Greeter(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
3843
super(BINARY, contractAddress, web3j, credentials, contractGasProvider);
3944
}
4045

46+
@Deprecated
47+
protected Greeter(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
48+
super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit);
49+
}
50+
4151
protected Greeter(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
4252
super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider);
4353
}
@@ -65,16 +75,38 @@ public RemoteCall<String> greet() {
6575
return executeRemoteCallSingleValueReturn(function, String.class);
6676
}
6777

78+
public static RemoteCall<Greeter> deploy(Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider, String _greeting) {
79+
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.<Type>asList(new org.web3j.abi.datatypes.Utf8String(_greeting)));
80+
return deployRemoteCall(Greeter.class, web3j, credentials, contractGasProvider, BINARY, encodedConstructor);
81+
}
82+
83+
public static RemoteCall<Greeter> deploy(Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider, String _greeting) {
84+
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.<Type>asList(new org.web3j.abi.datatypes.Utf8String(_greeting)));
85+
return deployRemoteCall(Greeter.class, web3j, transactionManager, contractGasProvider, BINARY, encodedConstructor);
86+
}
87+
88+
@Deprecated
6889
public static RemoteCall<Greeter> deploy(Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit, String _greeting) {
6990
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.<Type>asList(new org.web3j.abi.datatypes.Utf8String(_greeting)));
7091
return deployRemoteCall(Greeter.class, web3j, credentials, gasPrice, gasLimit, BINARY, encodedConstructor);
7192
}
7293

94+
@Deprecated
7395
public static RemoteCall<Greeter> deploy(Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit, String _greeting) {
7496
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.<Type>asList(new org.web3j.abi.datatypes.Utf8String(_greeting)));
7597
return deployRemoteCall(Greeter.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, encodedConstructor);
7698
}
7799

100+
@Deprecated
101+
public static Greeter load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
102+
return new Greeter(contractAddress, web3j, credentials, gasPrice, gasLimit);
103+
}
104+
105+
@Deprecated
106+
public static Greeter load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
107+
return new Greeter(contractAddress, web3j, transactionManager, gasPrice, gasLimit);
108+
}
109+
78110
public static Greeter load(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
79111
return new Greeter(contractAddress, web3j, credentials, contractGasProvider);
80112
}

integration-tests/src/test/java/org/web3j/generated/HumanStandardToken.java

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,20 @@ public class HumanStandardToken extends Contract {
7070
Arrays.<TypeReference<?>>asList(new TypeReference<Address>(true) {}, new TypeReference<Address>(true) {}, new TypeReference<Uint256>() {}));
7171
;
7272

73+
@Deprecated
74+
protected HumanStandardToken(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
75+
super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit);
76+
}
77+
7378
protected HumanStandardToken(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
7479
super(BINARY, contractAddress, web3j, credentials, contractGasProvider);
7580
}
7681

82+
@Deprecated
83+
protected HumanStandardToken(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
84+
super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit);
85+
}
86+
7787
protected HumanStandardToken(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
7888
super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider);
7989
}
@@ -166,6 +176,23 @@ public RemoteCall<BigInteger> allowance(String _owner, String _spender) {
166176
return executeRemoteCallSingleValueReturn(function, BigInteger.class);
167177
}
168178

179+
public static RemoteCall<HumanStandardToken> deploy(Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider, BigInteger _initialAmount, String _tokenName, BigInteger _decimalUnits, String _tokenSymbol) {
180+
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.<Type>asList(new org.web3j.abi.datatypes.generated.Uint256(_initialAmount),
181+
new org.web3j.abi.datatypes.Utf8String(_tokenName),
182+
new org.web3j.abi.datatypes.generated.Uint8(_decimalUnits),
183+
new org.web3j.abi.datatypes.Utf8String(_tokenSymbol)));
184+
return deployRemoteCall(HumanStandardToken.class, web3j, credentials, contractGasProvider, BINARY, encodedConstructor);
185+
}
186+
187+
public static RemoteCall<HumanStandardToken> deploy(Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider, BigInteger _initialAmount, String _tokenName, BigInteger _decimalUnits, String _tokenSymbol) {
188+
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.<Type>asList(new org.web3j.abi.datatypes.generated.Uint256(_initialAmount),
189+
new org.web3j.abi.datatypes.Utf8String(_tokenName),
190+
new org.web3j.abi.datatypes.generated.Uint8(_decimalUnits),
191+
new org.web3j.abi.datatypes.Utf8String(_tokenSymbol)));
192+
return deployRemoteCall(HumanStandardToken.class, web3j, transactionManager, contractGasProvider, BINARY, encodedConstructor);
193+
}
194+
195+
@Deprecated
169196
public static RemoteCall<HumanStandardToken> deploy(Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit, BigInteger _initialAmount, String _tokenName, BigInteger _decimalUnits, String _tokenSymbol) {
170197
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.<Type>asList(new org.web3j.abi.datatypes.generated.Uint256(_initialAmount),
171198
new org.web3j.abi.datatypes.Utf8String(_tokenName),
@@ -174,6 +201,7 @@ public static RemoteCall<HumanStandardToken> deploy(Web3j web3j, Credentials cre
174201
return deployRemoteCall(HumanStandardToken.class, web3j, credentials, gasPrice, gasLimit, BINARY, encodedConstructor);
175202
}
176203

204+
@Deprecated
177205
public static RemoteCall<HumanStandardToken> deploy(Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit, BigInteger _initialAmount, String _tokenName, BigInteger _decimalUnits, String _tokenSymbol) {
178206
String encodedConstructor = FunctionEncoder.encodeConstructor(Arrays.<Type>asList(new org.web3j.abi.datatypes.generated.Uint256(_initialAmount),
179207
new org.web3j.abi.datatypes.Utf8String(_tokenName),
@@ -252,6 +280,16 @@ public Observable<ApprovalEventResponse> approvalEventObservable(DefaultBlockPar
252280
return approvalEventObservable(filter);
253281
}
254282

283+
@Deprecated
284+
public static HumanStandardToken load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
285+
return new HumanStandardToken(contractAddress, web3j, credentials, gasPrice, gasLimit);
286+
}
287+
288+
@Deprecated
289+
public static HumanStandardToken load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
290+
return new HumanStandardToken(contractAddress, web3j, transactionManager, gasPrice, gasLimit);
291+
}
292+
255293
public static HumanStandardToken load(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
256294
return new HumanStandardToken(contractAddress, web3j, credentials, contractGasProvider);
257295
}

integration-tests/src/test/java/org/web3j/generated/ShipIt.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,20 @@ public class ShipIt extends Contract {
3434

3535
public static final String FUNC_SHIPMENTS = "shipments";
3636

37+
@Deprecated
38+
protected ShipIt(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
39+
super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit);
40+
}
41+
3742
protected ShipIt(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
3843
super(BINARY, contractAddress, web3j, credentials, contractGasProvider);
3944
}
4045

46+
@Deprecated
47+
protected ShipIt(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
48+
super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit);
49+
}
50+
4151
protected ShipIt(String contractAddress, Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
4252
super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider);
4353
}
@@ -64,14 +74,34 @@ public Tuple8<String, String, BigInteger, BigInteger, BigInteger, BigInteger, St
6474
});
6575
}
6676

77+
public static RemoteCall<ShipIt> deploy(Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
78+
return deployRemoteCall(ShipIt.class, web3j, credentials, contractGasProvider, BINARY, "");
79+
}
80+
81+
@Deprecated
6782
public static RemoteCall<ShipIt> deploy(Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
6883
return deployRemoteCall(ShipIt.class, web3j, credentials, gasPrice, gasLimit, BINARY, "");
6984
}
7085

86+
public static RemoteCall<ShipIt> deploy(Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
87+
return deployRemoteCall(ShipIt.class, web3j, transactionManager, contractGasProvider, BINARY, "");
88+
}
89+
90+
@Deprecated
7191
public static RemoteCall<ShipIt> deploy(Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
7292
return deployRemoteCall(ShipIt.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, "");
7393
}
7494

95+
@Deprecated
96+
public static ShipIt load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
97+
return new ShipIt(contractAddress, web3j, credentials, gasPrice, gasLimit);
98+
}
99+
100+
@Deprecated
101+
public static ShipIt load(String contractAddress, Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) {
102+
return new ShipIt(contractAddress, web3j, transactionManager, gasPrice, gasLimit);
103+
}
104+
75105
public static ShipIt load(String contractAddress, Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
76106
return new ShipIt(contractAddress, web3j, credentials, contractGasProvider);
77107
}

0 commit comments

Comments
 (0)