Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgdorf committed Sep 8, 2022
1 parent 05eec0b commit f1d07b6
Show file tree
Hide file tree
Showing 32 changed files with 186 additions and 186 deletions.
28 changes: 14 additions & 14 deletions crates/analyzer/tests/snapshots/analysis__abi_encoding_stress.snap
Original file line number Diff line number Diff line change
Expand Up @@ -434,98 +434,98 @@ note:
┌─ abi_encoding_stress.fe:85:5
85 │ ╭ pub fn emit_my_event(self, ctx: Context) {
86 │ │ ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86 │ │ ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
87 │ │ }
│ ╰─────^ self: Some(Mutable), params: [{ label: None, name: ctx, typ: Context }] -> ()

note:
┌─ abi_encoding_stress.fe:86:9
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^ ^^^^ Foo: Value
│ │
Context: Memory

note:
┌─ abi_encoding_stress.fe:86:36
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^^ Array<address, 5>: Storage { nonce: Some(0) }

note:
┌─ abi_encoding_stress.fe:86:36
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^^^^^^^^^^^ ^^^^ Foo: Value
│ │
Array<address, 5>: Storage { nonce: Some(0) } => Memory

note:
┌─ abi_encoding_stress.fe:86:69
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^ ^^^^ Foo: Value
│ │
u128: Storage { nonce: Some(1) } => Value

note:
┌─ abi_encoding_stress.fe:86:94
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^^^ String<10>: Storage { nonce: Some(2) }

note:
┌─ abi_encoding_stress.fe:86:94
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ Foo: Value
│ │
String<10>: Storage { nonce: Some(2) } => Memory

note:
┌─ abi_encoding_stress.fe:86:128
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^ Array<u16, 255>: Storage { nonce: Some(3) }

note:
┌─ abi_encoding_stress.fe:86:128
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^^^^^^^^^^ ^^^^ Foo: Value
│ │
Array<u16, 255>: Storage { nonce: Some(3) } => Memory

note:
┌─ abi_encoding_stress.fe:86:160
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^ ^^^^ Foo: Value
│ │
bool: Storage { nonce: Some(4) } => Value

note:
┌─ abi_encoding_stress.fe:86:184
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^^ Array<u8, 100>: Storage { nonce: Some(5) }

note:
┌─ abi_encoding_stress.fe:86:184
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^^^^^^^^^^^ Array<u8, 100>: Storage { nonce: Some(5) } => Memory

note:
┌─ abi_encoding_stress.fe:86:18
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ MyEvent: Memory

note:
┌─ abi_encoding_stress.fe:86:9
86ctx.logy(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
86ctx.emit(MyEvent(my_addrs: self.my_addrs.to_mem(), my_u128: self.my_u128, my_string: self.my_string.to_mem(), my_u16s: self.my_u16s.to_mem(), my_bool: self.my_bool, my_bytes: self.my_bytes.to_mem()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (): Value


Original file line number Diff line number Diff line change
Expand Up @@ -571,14 +571,14 @@ note:
┌─ data_copying_stress.fe:69:5
69 │ ╭ fn emit_my_event_internal(ctx: Context, _ my_string: String<42>, _ my_u256: u256) {
70 │ │ ctx.logy(MyEvent(my_string, my_u256))
70 │ │ ctx.emit(MyEvent(my_string, my_u256))
71 │ │ }
│ ╰─────^ self: None, params: [{ label: None, name: ctx, typ: Context }, { label: Some("_"), name: my_string, typ: String<42> }, { label: Some("_"), name: my_u256, typ: u256 }] -> ()

note:
┌─ data_copying_stress.fe:70:9
70ctx.logy(MyEvent(my_string, my_u256))
70ctx.emit(MyEvent(my_string, my_u256))
^^^ ^^^^^^^^^ ^^^^^^^ u256: Value
│ │ │
│ │ String<42>: Memory
Expand All @@ -587,13 +587,13 @@ note:
note:
┌─ data_copying_stress.fe:70:18
70ctx.logy(MyEvent(my_string, my_u256))
70ctx.emit(MyEvent(my_string, my_u256))
^^^^^^^^^^^^^^^^^^^^^^^^^^^ MyEvent: Memory

note:
┌─ data_copying_stress.fe:70:9
70ctx.logy(MyEvent(my_string, my_u256))
70ctx.emit(MyEvent(my_string, my_u256))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (): Value

note:
Expand Down
36 changes: 18 additions & 18 deletions crates/analyzer/tests/snapshots/analysis__erc20_token.snap
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ note:
85 │ │ assert recipient != address(0)
86 │ │ _before_token_transfer(from: sender, to: recipient, value)
· │
89 │ │ ctx.logy(Transfer(from: sender, to: recipient, value))
89 │ │ ctx.emit(Transfer(from: sender, to: recipient, value))
90 │ │ }
│ ╰─────^ self: Some(Mutable), params: [{ label: None, name: ctx, typ: Context }, { label: None, name: sender, typ: address }, { label: None, name: recipient, typ: address }, { label: None, name: value, typ: u256 }] -> ()

Expand Down Expand Up @@ -671,7 +671,7 @@ note:
88self._balances[recipient] = self._balances[recipient] + value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ u256: Value
89ctx.logy(Transfer(from: sender, to: recipient, value))
89ctx.emit(Transfer(from: sender, to: recipient, value))
^^^ ^^^^^^ ^^^^^^^^^ ^^^^^ u256: Value
│ │ │ │
│ │ │ address: Value
Expand All @@ -681,13 +681,13 @@ note:
note:
┌─ erc20_token.fe:89:18
89ctx.logy(Transfer(from: sender, to: recipient, value))
89ctx.emit(Transfer(from: sender, to: recipient, value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Transfer: Memory

note:
┌─ erc20_token.fe:89:9
89ctx.logy(Transfer(from: sender, to: recipient, value))
89ctx.emit(Transfer(from: sender, to: recipient, value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (): Value

note:
Expand All @@ -698,7 +698,7 @@ note:
94 │ │ _before_token_transfer(from: address(0), to: account, value)
95 │ │ self._total_supply = self._total_supply + value
96 │ │ self._balances[account] = self._balances[account] + value
97 │ │ ctx.logy(Transfer(from: address(0), to: account, value))
97 │ │ ctx.emit(Transfer(from: address(0), to: account, value))
98 │ │ }
│ ╰─────^ self: Some(Mutable), params: [{ label: None, name: ctx, typ: Context }, { label: None, name: account, typ: address }, { label: None, name: value, typ: u256 }] -> ()

Expand Down Expand Up @@ -802,15 +802,15 @@ note:
96self._balances[account] = self._balances[account] + value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ u256: Value
97ctx.logy(Transfer(from: address(0), to: account, value))
97ctx.emit(Transfer(from: address(0), to: account, value))
^^^ ^ u256: Value
│ │
Context: Memory

note:
┌─ erc20_token.fe:97:33
97ctx.logy(Transfer(from: address(0), to: account, value))
97ctx.emit(Transfer(from: address(0), to: account, value))
^^^^^^^^^^ ^^^^^^^ ^^^^^ u256: Value
│ │ │
│ │ address: Value
Expand All @@ -819,13 +819,13 @@ note:
note:
┌─ erc20_token.fe:97:18
97ctx.logy(Transfer(from: address(0), to: account, value))
97ctx.emit(Transfer(from: address(0), to: account, value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Transfer: Memory

note:
┌─ erc20_token.fe:97:9
97ctx.logy(Transfer(from: address(0), to: account, value))
97ctx.emit(Transfer(from: address(0), to: account, value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (): Value

note:
Expand All @@ -836,7 +836,7 @@ note:
102 │ │ _before_token_transfer(from: account, to: address(0), value)
103 │ │ self._balances[account] = self._balances[account] - value
104 │ │ self._total_supply = self._total_supply - value
105 │ │ ctx.logy(Transfer(from: account, to: address(0), value))
105 │ │ ctx.emit(Transfer(from: account, to: address(0), value))
106 │ │ }
│ ╰─────^ self: Some(Mutable), params: [{ label: None, name: ctx, typ: Context }, { label: None, name: account, typ: address }, { label: None, name: value, typ: u256 }] -> ()

Expand Down Expand Up @@ -941,7 +941,7 @@ note:
104self._total_supply = self._total_supply - value
^^^^^^^^^^^^^^^^^^^^^^^^^^ u256: Value
105ctx.logy(Transfer(from: account, to: address(0), value))
105ctx.emit(Transfer(from: account, to: address(0), value))
^^^ ^^^^^^^ ^ u256: Value
│ │ │
│ │ address: Value
Expand All @@ -950,21 +950,21 @@ note:
note:
┌─ erc20_token.fe:105:46
105ctx.logy(Transfer(from: account, to: address(0), value))
105ctx.emit(Transfer(from: account, to: address(0), value))
^^^^^^^^^^ ^^^^^ u256: Value
│ │
address: Value

note:
┌─ erc20_token.fe:105:18
105ctx.logy(Transfer(from: account, to: address(0), value))
105ctx.emit(Transfer(from: account, to: address(0), value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Transfer: Memory

note:
┌─ erc20_token.fe:105:9
105ctx.logy(Transfer(from: account, to: address(0), value))
105ctx.emit(Transfer(from: account, to: address(0), value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (): Value

note:
Expand All @@ -974,7 +974,7 @@ note:
109 │ │ assert owner != address(0)
110 │ │ assert spender != address(0)
111 │ │ self._allowances[owner][spender] = value
112 │ │ ctx.logy(Approval(owner, spender, value))
112 │ │ ctx.emit(Approval(owner, spender, value))
113 │ │ }
│ ╰─────^ self: Some(Mutable), params: [{ label: None, name: ctx, typ: Context }, { label: None, name: owner, typ: address }, { label: None, name: spender, typ: address }, { label: None, name: value, typ: u256 }] -> ()

Expand Down Expand Up @@ -1039,7 +1039,7 @@ note:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ u256: Value
│ │
u256: Storage { nonce: None }
112ctx.logy(Approval(owner, spender, value))
112ctx.emit(Approval(owner, spender, value))
^^^ ^^^^^ ^^^^^^^ ^^^^^ u256: Value
│ │ │ │
│ │ │ address: Value
Expand All @@ -1049,13 +1049,13 @@ note:
note:
┌─ erc20_token.fe:112:18
112ctx.logy(Approval(owner, spender, value))
112ctx.emit(Approval(owner, spender, value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Approval: Memory

note:
┌─ erc20_token.fe:112:9
112ctx.logy(Approval(owner, spender, value))
112ctx.emit(Approval(owner, spender, value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (): Value

note:
Expand Down
Loading

0 comments on commit f1d07b6

Please sign in to comment.