[sui 14/x] - PyCharm Move linter (#928)
* linting stuff * more linting * more linting
This commit is contained in:
parent
e5fd5a9d81
commit
5e064b0a30
|
@ -48,11 +48,11 @@ module pyth::batch_price_attestation {
|
|||
let _unknown = bytes::take_bytes(cur, (unknown_header_bytes as u64));
|
||||
|
||||
Header {
|
||||
magic: magic,
|
||||
magic,
|
||||
header_size: (header_size as u64),
|
||||
version_minor: (version_minor as u64),
|
||||
version_major: (version_major as u64),
|
||||
payload_id: payload_id,
|
||||
payload_id,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ module pyth::batch_price_attestation {
|
|||
header,
|
||||
attestation_count: (attestation_count as u64),
|
||||
attestation_size: (attestation_size as u64),
|
||||
price_infos: price_infos,
|
||||
price_infos,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -59,8 +59,8 @@ module pyth::data_source {
|
|||
|
||||
public(friend) fun new(emitter_chain: u64, emitter_address: ExternalAddress): DataSource {
|
||||
DataSource {
|
||||
emitter_chain: emitter_chain,
|
||||
emitter_address: emitter_address,
|
||||
emitter_chain,
|
||||
emitter_address,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ module pyth::governance_instruction {
|
|||
module_: _,
|
||||
action: _,
|
||||
target_chain_id: _,
|
||||
payload: payload
|
||||
payload
|
||||
} = instruction;
|
||||
payload
|
||||
}
|
||||
|
|
|
@ -31,8 +31,8 @@ module pyth::i64 {
|
|||
};
|
||||
|
||||
I64 {
|
||||
magnitude: magnitude,
|
||||
negative: negative,
|
||||
magnitude,
|
||||
negative,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -21,10 +21,10 @@ module pyth::price {
|
|||
|
||||
public fun new(price: I64, conf: u64, expo: I64, timestamp: u64): Price {
|
||||
Price {
|
||||
price: price,
|
||||
conf: conf,
|
||||
expo: expo,
|
||||
timestamp: timestamp,
|
||||
price,
|
||||
conf,
|
||||
expo,
|
||||
timestamp,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,9 +17,9 @@ module pyth::price_feed {
|
|||
price: Price,
|
||||
ema_price: Price): PriceFeed {
|
||||
PriceFeed {
|
||||
price_identifier: price_identifier,
|
||||
price: price,
|
||||
ema_price: ema_price,
|
||||
price_identifier,
|
||||
price,
|
||||
ema_price,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ module pyth::price_identifier {
|
|||
public fun from_byte_vec(bytes: vector<u8>): PriceIdentifier {
|
||||
assert!(vector::length(&bytes) == IDENTIFIER_BYTES_LENGTH, E_INCORRECT_IDENTIFIER_LENGTH);
|
||||
PriceIdentifier {
|
||||
bytes: bytes
|
||||
bytes
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ module pyth::price_info {
|
|||
): PriceInfoObject {
|
||||
PriceInfoObject {
|
||||
id: object::new(ctx),
|
||||
price_info: price_info
|
||||
price_info
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,9 +107,9 @@ module pyth::price_info {
|
|||
price_feed: PriceFeed,
|
||||
): PriceInfo {
|
||||
PriceInfo {
|
||||
attestation_time: attestation_time,
|
||||
arrival_time: arrival_time,
|
||||
price_feed: price_feed,
|
||||
attestation_time,
|
||||
arrival_time,
|
||||
price_feed,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -145,7 +145,7 @@ module pyth::price_info {
|
|||
#[test_only]
|
||||
public fun destroy(price_info: PriceInfoObject){
|
||||
let PriceInfoObject {
|
||||
id: id,
|
||||
id,
|
||||
price_info: _,
|
||||
} = price_info;
|
||||
object::delete(id);
|
||||
|
|
|
@ -15,7 +15,7 @@ module pyth::price_status {
|
|||
public fun from_u64(status: u64): PriceStatus {
|
||||
assert!(status <= TRADING, 0);
|
||||
PriceStatus {
|
||||
status: status
|
||||
status
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue