Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit 0f499e0

Browse files
committed
sync
Signed-off-by: Gyuho Lee <[email protected]>
1 parent 1f89b82 commit 0f499e0

23 files changed

+340
-342
lines changed

Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "avalanche-types"
3-
version = "0.0.346" # https://crates.io/crates/avalanche-types
3+
version = "0.0.368" # https://crates.io/crates/avalanche-types
44
edition = "2021"
5-
rust-version = "1.68" # use "rustup override set stable" to overwrite current toolchain
5+
rust-version = "1.69" # use "rustup override set stable" to overwrite current toolchain
66
publish = true
77
description = "Avalanche primitive types in Rust"
88
license = "BSD-3-Clause"
@@ -48,7 +48,7 @@ zeroize = "1.6.0" # for "BLS
4848
secp256k1 = { version = "0.27.0", features = ["global-context", "rand-std", "recovery"], optional = true } # https://crates.io/crates/secp256k1
4949

5050
# [OPTIONAL] for "kms_aws"
51-
aws-manager = { version = "0.26.1", features = ["kms"], optional = true } # https://github.com/gyuho/aws-manager/tags
51+
aws-manager = { version = "0.26.15", features = ["kms"], optional = true } # https://github.com/gyuho/aws-manager/tags
5252
aws-sdk-kms = { version = "0.26.0", optional = true } # https://crates.io/crates/aws-sdk-kms/versions
5353

5454
# [OPTIONAL] for "cert"
@@ -78,17 +78,17 @@ ethers-signers = { version = "=2.0.3", optional = true } # https://github.com/ga
7878
# [OPTIONAL] for "subnet"
7979
futures = { version = "0.3.28", optional = true }
8080
http = { version = "0.2.9", optional = true }
81-
hyper = { version = "0.14.25", optional = true }
81+
hyper = { version = "0.14.26", optional = true }
8282
jsonrpc-core = { version = "18.0.0", optional = true }
8383
jsonrpc-http-server = { version = "18.0.0", optional = true }
8484
num-derive = { version = "0.3.3", optional = true }
8585
num-traits = { version = "0.2.15", optional = true }
8686
prost = { version = "0.11.9", optional = true } # prost-build requires "cmake", https://github.com/tokio-rs/prost/releases
8787
semver = { version = "1.0.17", optional = true }
8888
tokio-stream = { version = "0.1.12", features = ["net"], optional = true }
89-
tonic = { version = "0.9.1", features = ["gzip"], optional = true } # https://github.com/hyperium/tonic/tags
90-
tonic-health = { version = "0.9.1", optional = true } # https://github.com/hyperium/tonic/blob/v0.9.0/tonic-health/src/lib.rs
91-
tonic-reflection = { version = "0.9.1", optional = true }
89+
tonic = { version = "0.9.2", features = ["gzip"], optional = true } # https://github.com/hyperium/tonic/tags
90+
tonic-health = { version = "0.9.2", optional = true } # https://github.com/hyperium/tonic/blob/v0.9.0/tonic-health/src/lib.rs
91+
tonic-reflection = { version = "0.9.2", optional = true }
9292
tower-service = { version = "0.3.2", optional = true }
9393

9494
# [OPTIONAL] for "subnet_metrics"

examples/evm_contract_counter_increment.rs

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ async fn main() -> io::Result<()> {
7676
.recipient(recipient_contract_addr) // contract address that this transaction will interact with
7777
.data(increment_calldata)
7878
.urgent()
79+
.check_receipt(true)
7980
.check_acceptance(true)
8081
.submit()
8182
.await

examples/evm_contract_counter_increment_append_calldata.rs

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ async fn main() -> Result<()> {
9696
.recipient(recipient_contract_addr) // contract address that this transaction will interact with
9797
.data(appended_calldata)
9898
.urgent()
99+
.check_receipt(true)
99100
.check_acceptance(true)
100101
.submit()
101102
.await?;

examples/evm_contract_counter_increment_forwarder_execute.rs

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ async fn main() -> io::Result<()> {
161161
.recipient(forwarder_contract_addr)
162162
.data(gas_payer_calldata)
163163
.urgent()
164+
.check_receipt(true)
164165
.check_acceptance(true)
165166
.submit()
166167
.await

examples/evm_contract_counter_increment_forwarder_proxy_call.rs

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ async fn main() -> io::Result<()> {
9494
.recipient(forwarder_contract_addr) // contract address that this transaction will interact with
9595
.data(calldata)
9696
.urgent()
97+
.check_receipt(true)
9798
.check_acceptance(true)
9899
.submit()
99100
.await

examples/evm_contract_counter_increment_forwarder_relay_eip712.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async fn main() -> io::Result<()> {
157157
.await
158158
.unwrap();
159159
log::info!(
160-
"pending tx hash {} from 0x{:x}",
160+
"pending tx hash 0x{:x} using no gas key 0x{:x}",
161161
pending.tx_hash(),
162162
no_gas_key_info.h160_address
163163
);

examples/evm_contract_erc20_simple_token_increase_allowance_forwarder_relay_eip712.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ async fn main() -> io::Result<()> {
177177
.await
178178
.unwrap();
179179
log::info!(
180-
"pending tx hash {} from 0x{:x}",
180+
"pending tx hash 0x{:x} using no gas key 0x{:x}",
181181
pending.tx_hash(),
182182
no_gas_key_info.h160_address
183183
);

examples/evm_contract_erc20_simple_token_transfer_from_forwarder_relay_eip712.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async fn main() -> io::Result<()> {
186186
.await
187187
.unwrap();
188188
log::info!(
189-
"pending tx hash {} from 0x{:x}",
189+
"pending tx hash 0x{:x} using no gas key 0x{:x}",
190190
pending.tx_hash(),
191191
no_gas_key_info.h160_address
192192
);

examples/evm_contract_erc721_my_token_approve_forwarder_relay_eip712.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ async fn main() -> io::Result<()> {
170170
.await
171171
.unwrap();
172172
log::info!(
173-
"pending tx hash {} from 0x{:x}",
173+
"pending tx hash 0x{:x} using no gas key 0x{:x}",
174174
pending.tx_hash(),
175175
no_gas_key_info.h160_address
176176
);

examples/evm_contract_erc721_my_token_mint_forwarder_relay_eip712.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ async fn main() -> io::Result<()> {
170170
.await
171171
.unwrap();
172172
log::info!(
173-
"pending tx hash {} from 0x{:x}",
173+
"pending tx hash 0x{:x} using no gas key 0x{:x}",
174174
pending.tx_hash(),
175175
no_gas_key_info.h160_address
176176
);

examples/evm_contract_erc721_my_token_transfer_from_forwarder_relay_eip712.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async fn main() -> io::Result<()> {
182182
.await
183183
.unwrap();
184184
log::info!(
185-
"pending tx hash {} from 0x{:x}",
185+
"pending tx hash 0x{:x} using no gas key 0x{:x}",
186186
pending.tx_hash(),
187187
no_gas_key_info.h160_address
188188
);

examples/evm_contract_simple_registry_register.rs

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ async fn main() -> io::Result<()> {
6363
.recipient(contract_addr) // contract address that this transaction will interact with
6464
.data(calldata)
6565
.urgent()
66+
.check_receipt(true)
6667
.check_acceptance(true)
6768
.submit()
6869
.await

examples/evm_contract_simple_registry_register_forwarder_execute.rs

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ async fn main() -> io::Result<()> {
140140
.recipient(forwarder_contract_addr)
141141
.data(gas_payer_calldata)
142142
.urgent()
143+
.check_receipt(true)
143144
.check_acceptance(true)
144145
.submit()
145146
.await

examples/evm_contract_simple_registry_register_forwarder_relay_eip712.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async fn main() -> io::Result<()> {
156156
.await
157157
.unwrap();
158158
log::info!(
159-
"pending tx hash {} from 0x{:x}",
159+
"pending tx hash 0x{:x} using no gas key 0x{:x}",
160160
pending.tx_hash(),
161161
no_gas_key_info.h160_address
162162
);

examples/evm_contract_voter_vote_a_forwarder_relay_eip712.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async fn main() -> io::Result<()> {
157157
.await
158158
.unwrap();
159159
log::info!(
160-
"pending tx hash {} from 0x{:x}",
160+
"pending tx hash 0x{:x} using no gas key 0x{:x}",
161161
pending.tx_hash(),
162162
no_gas_key_info.h160_address
163163
);

examples/evm_send_raw_transaction_eip1559_hot_key.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async fn main() -> io::Result<()> {
4848
.send_raw_transaction(signed_bytes)
4949
.await
5050
.unwrap();
51-
log::info!("pending tx hash {}", pending.tx_hash());
51+
log::info!("pending tx hash 0x{:x}", pending.tx_hash());
5252

5353
Ok(())
5454
}

examples/evm_send_raw_transaction_eip1559_kms_aws.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async fn main() -> io::Result<()> {
6262
.send_raw_transaction(signed_bytes)
6363
.await
6464
.unwrap();
65-
log::info!("pending tx hash {}", pending.tx_hash());
65+
log::info!("pending tx hash 0x{:x}", pending.tx_hash());
6666

6767
Ok(())
6868
}

examples/wallet_evm_send_transaction_hot_key.rs

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ async fn main() -> io::Result<()> {
6363
.recipient(key_info2.h160_address)
6464
.value(transfer_amount)
6565
.urgent()
66+
.check_receipt(true)
6667
.check_acceptance(true)
6768
.submit()
6869
.await

0 commit comments

Comments
 (0)