Skip to content

Commit bdc8a23

Browse files
authored
normalized -> trimmed amount (#198)
1 parent 1986d1a commit bdc8a23

File tree

78 files changed

+717
-776
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+717
-776
lines changed

ci_tests/evm_binding/IRateLimiter.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,36 @@ import type {
2020
OnEvent,
2121
} from "./common";
2222

23-
export type NormalizedAmountStruct = {
23+
export type TrimmedAmountStruct = {
2424
amount: BigNumberish;
2525
decimals: BigNumberish;
2626
};
2727

28-
export type NormalizedAmountStructOutput = [BigNumber, number] & {
28+
export type TrimmedAmountStructOutput = [BigNumber, number] & {
2929
amount: BigNumber;
3030
decimals: number;
3131
};
3232

3333
export declare namespace IRateLimiter {
3434
export type InboundQueuedTransferStruct = {
35-
amount: NormalizedAmountStruct;
35+
amount: TrimmedAmountStruct;
3636
txTimestamp: BigNumberish;
3737
recipient: string;
3838
};
3939

4040
export type InboundQueuedTransferStructOutput = [
41-
NormalizedAmountStructOutput,
41+
TrimmedAmountStructOutput,
4242
BigNumber,
4343
string
4444
] & {
45-
amount: NormalizedAmountStructOutput;
45+
amount: TrimmedAmountStructOutput;
4646
txTimestamp: BigNumber;
4747
recipient: string;
4848
};
4949

5050
export type OutboundQueuedTransferStruct = {
5151
recipient: BytesLike;
52-
amount: NormalizedAmountStruct;
52+
amount: TrimmedAmountStruct;
5353
txTimestamp: BigNumberish;
5454
recipientChain: BigNumberish;
5555
sender: string;
@@ -58,14 +58,14 @@ export declare namespace IRateLimiter {
5858

5959
export type OutboundQueuedTransferStructOutput = [
6060
string,
61-
NormalizedAmountStructOutput,
61+
TrimmedAmountStructOutput,
6262
BigNumber,
6363
number,
6464
string,
6565
string
6666
] & {
6767
recipient: string;
68-
amount: NormalizedAmountStructOutput;
68+
amount: TrimmedAmountStructOutput;
6969
txTimestamp: BigNumber;
7070
recipientChain: number;
7171
sender: string;

ci_tests/evm_binding/MockNttManager.sol/MockNttManagerContract.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import type {
2727
OnEvent,
2828
} from "../common";
2929

30-
export type NormalizedAmountStruct = {
30+
export type TrimmedAmountStruct = {
3131
amount: BigNumberish;
3232
decimals: BigNumberish;
3333
};
3434

35-
export type NormalizedAmountStructOutput = [BigNumber, number] & {
35+
export type TrimmedAmountStructOutput = [BigNumber, number] & {
3636
amount: BigNumber;
3737
decimals: number;
3838
};
@@ -63,40 +63,40 @@ export declare namespace TransceiverStructs {
6363

6464
export declare namespace IRateLimiter {
6565
export type RateLimitParamsStruct = {
66-
limit: NormalizedAmountStruct;
67-
currentCapacity: NormalizedAmountStruct;
66+
limit: TrimmedAmountStruct;
67+
currentCapacity: TrimmedAmountStruct;
6868
lastTxTimestamp: BigNumberish;
6969
};
7070

7171
export type RateLimitParamsStructOutput = [
72-
NormalizedAmountStructOutput,
73-
NormalizedAmountStructOutput,
72+
TrimmedAmountStructOutput,
73+
TrimmedAmountStructOutput,
7474
BigNumber
7575
] & {
76-
limit: NormalizedAmountStructOutput;
77-
currentCapacity: NormalizedAmountStructOutput;
76+
limit: TrimmedAmountStructOutput;
77+
currentCapacity: TrimmedAmountStructOutput;
7878
lastTxTimestamp: BigNumber;
7979
};
8080

8181
export type InboundQueuedTransferStruct = {
82-
amount: NormalizedAmountStruct;
82+
amount: TrimmedAmountStruct;
8383
txTimestamp: BigNumberish;
8484
recipient: string;
8585
};
8686

8787
export type InboundQueuedTransferStructOutput = [
88-
NormalizedAmountStructOutput,
88+
TrimmedAmountStructOutput,
8989
BigNumber,
9090
string
9191
] & {
92-
amount: NormalizedAmountStructOutput;
92+
amount: TrimmedAmountStructOutput;
9393
txTimestamp: BigNumber;
9494
recipient: string;
9595
};
9696

9797
export type OutboundQueuedTransferStruct = {
9898
recipient: BytesLike;
99-
amount: NormalizedAmountStruct;
99+
amount: TrimmedAmountStruct;
100100
txTimestamp: BigNumberish;
101101
recipientChain: BigNumberish;
102102
sender: string;
@@ -105,14 +105,14 @@ export declare namespace IRateLimiter {
105105

106106
export type OutboundQueuedTransferStructOutput = [
107107
string,
108-
NormalizedAmountStructOutput,
108+
TrimmedAmountStructOutput,
109109
BigNumber,
110110
number,
111111
string,
112112
string
113113
] & {
114114
recipient: string;
115-
amount: NormalizedAmountStructOutput;
115+
amount: TrimmedAmountStructOutput;
116116
txTimestamp: BigNumber;
117117
recipientChain: number;
118118
sender: string;

ci_tests/evm_binding/MockNttManager.sol/MockNttManagerImmutableCheck.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import type {
2727
OnEvent,
2828
} from "../common";
2929

30-
export type NormalizedAmountStruct = {
30+
export type TrimmedAmountStruct = {
3131
amount: BigNumberish;
3232
decimals: BigNumberish;
3333
};
3434

35-
export type NormalizedAmountStructOutput = [BigNumber, number] & {
35+
export type TrimmedAmountStructOutput = [BigNumber, number] & {
3636
amount: BigNumber;
3737
decimals: number;
3838
};
@@ -63,24 +63,24 @@ export declare namespace TransceiverStructs {
6363

6464
export declare namespace IRateLimiter {
6565
export type InboundQueuedTransferStruct = {
66-
amount: NormalizedAmountStruct;
66+
amount: TrimmedAmountStruct;
6767
txTimestamp: BigNumberish;
6868
recipient: string;
6969
};
7070

7171
export type InboundQueuedTransferStructOutput = [
72-
NormalizedAmountStructOutput,
72+
TrimmedAmountStructOutput,
7373
BigNumber,
7474
string
7575
] & {
76-
amount: NormalizedAmountStructOutput;
76+
amount: TrimmedAmountStructOutput;
7777
txTimestamp: BigNumber;
7878
recipient: string;
7979
};
8080

8181
export type OutboundQueuedTransferStruct = {
8282
recipient: BytesLike;
83-
amount: NormalizedAmountStruct;
83+
amount: TrimmedAmountStruct;
8484
txTimestamp: BigNumberish;
8585
recipientChain: BigNumberish;
8686
sender: string;
@@ -89,14 +89,14 @@ export declare namespace IRateLimiter {
8989

9090
export type OutboundQueuedTransferStructOutput = [
9191
string,
92-
NormalizedAmountStructOutput,
92+
TrimmedAmountStructOutput,
9393
BigNumber,
9494
number,
9595
string,
9696
string
9797
] & {
9898
recipient: string;
99-
amount: NormalizedAmountStructOutput;
99+
amount: TrimmedAmountStructOutput;
100100
txTimestamp: BigNumber;
101101
recipientChain: number;
102102
sender: string;

ci_tests/evm_binding/MockNttManager.sol/MockNttManagerImmutableRemoveCheck.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import type {
2727
OnEvent,
2828
} from "../common";
2929

30-
export type NormalizedAmountStruct = {
30+
export type TrimmedAmountStruct = {
3131
amount: BigNumberish;
3232
decimals: BigNumberish;
3333
};
3434

35-
export type NormalizedAmountStructOutput = [BigNumber, number] & {
35+
export type TrimmedAmountStructOutput = [BigNumber, number] & {
3636
amount: BigNumber;
3737
decimals: number;
3838
};
@@ -63,24 +63,24 @@ export declare namespace TransceiverStructs {
6363

6464
export declare namespace IRateLimiter {
6565
export type InboundQueuedTransferStruct = {
66-
amount: NormalizedAmountStruct;
66+
amount: TrimmedAmountStruct;
6767
txTimestamp: BigNumberish;
6868
recipient: string;
6969
};
7070

7171
export type InboundQueuedTransferStructOutput = [
72-
NormalizedAmountStructOutput,
72+
TrimmedAmountStructOutput,
7373
BigNumber,
7474
string
7575
] & {
76-
amount: NormalizedAmountStructOutput;
76+
amount: TrimmedAmountStructOutput;
7777
txTimestamp: BigNumber;
7878
recipient: string;
7979
};
8080

8181
export type OutboundQueuedTransferStruct = {
8282
recipient: BytesLike;
83-
amount: NormalizedAmountStruct;
83+
amount: TrimmedAmountStruct;
8484
txTimestamp: BigNumberish;
8585
recipientChain: BigNumberish;
8686
sender: string;
@@ -89,14 +89,14 @@ export declare namespace IRateLimiter {
8989

9090
export type OutboundQueuedTransferStructOutput = [
9191
string,
92-
NormalizedAmountStructOutput,
92+
TrimmedAmountStructOutput,
9393
BigNumber,
9494
number,
9595
string,
9696
string
9797
] & {
9898
recipient: string;
99-
amount: NormalizedAmountStructOutput;
99+
amount: TrimmedAmountStructOutput;
100100
txTimestamp: BigNumber;
101101
recipientChain: number;
102102
sender: string;

ci_tests/evm_binding/MockNttManager.sol/MockNttManagerMigrateBasic.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import type {
2727
OnEvent,
2828
} from "../common";
2929

30-
export type NormalizedAmountStruct = {
30+
export type TrimmedAmountStruct = {
3131
amount: BigNumberish;
3232
decimals: BigNumberish;
3333
};
3434

35-
export type NormalizedAmountStructOutput = [BigNumber, number] & {
35+
export type TrimmedAmountStructOutput = [BigNumber, number] & {
3636
amount: BigNumber;
3737
decimals: number;
3838
};
@@ -63,24 +63,24 @@ export declare namespace TransceiverStructs {
6363

6464
export declare namespace IRateLimiter {
6565
export type InboundQueuedTransferStruct = {
66-
amount: NormalizedAmountStruct;
66+
amount: TrimmedAmountStruct;
6767
txTimestamp: BigNumberish;
6868
recipient: string;
6969
};
7070

7171
export type InboundQueuedTransferStructOutput = [
72-
NormalizedAmountStructOutput,
72+
TrimmedAmountStructOutput,
7373
BigNumber,
7474
string
7575
] & {
76-
amount: NormalizedAmountStructOutput;
76+
amount: TrimmedAmountStructOutput;
7777
txTimestamp: BigNumber;
7878
recipient: string;
7979
};
8080

8181
export type OutboundQueuedTransferStruct = {
8282
recipient: BytesLike;
83-
amount: NormalizedAmountStruct;
83+
amount: TrimmedAmountStruct;
8484
txTimestamp: BigNumberish;
8585
recipientChain: BigNumberish;
8686
sender: string;
@@ -89,14 +89,14 @@ export declare namespace IRateLimiter {
8989

9090
export type OutboundQueuedTransferStructOutput = [
9191
string,
92-
NormalizedAmountStructOutput,
92+
TrimmedAmountStructOutput,
9393
BigNumber,
9494
number,
9595
string,
9696
string
9797
] & {
9898
recipient: string;
99-
amount: NormalizedAmountStructOutput;
99+
amount: TrimmedAmountStructOutput;
100100
txTimestamp: BigNumber;
101101
recipientChain: number;
102102
sender: string;

ci_tests/evm_binding/MockNttManager.sol/MockNttManagerStorageLayoutChange.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import type {
2727
OnEvent,
2828
} from "../common";
2929

30-
export type NormalizedAmountStruct = {
30+
export type TrimmedAmountStruct = {
3131
amount: BigNumberish;
3232
decimals: BigNumberish;
3333
};
3434

35-
export type NormalizedAmountStructOutput = [BigNumber, number] & {
35+
export type TrimmedAmountStructOutput = [BigNumber, number] & {
3636
amount: BigNumber;
3737
decimals: number;
3838
};
@@ -63,24 +63,24 @@ export declare namespace TransceiverStructs {
6363

6464
export declare namespace IRateLimiter {
6565
export type InboundQueuedTransferStruct = {
66-
amount: NormalizedAmountStruct;
66+
amount: TrimmedAmountStruct;
6767
txTimestamp: BigNumberish;
6868
recipient: string;
6969
};
7070

7171
export type InboundQueuedTransferStructOutput = [
72-
NormalizedAmountStructOutput,
72+
TrimmedAmountStructOutput,
7373
BigNumber,
7474
string
7575
] & {
76-
amount: NormalizedAmountStructOutput;
76+
amount: TrimmedAmountStructOutput;
7777
txTimestamp: BigNumber;
7878
recipient: string;
7979
};
8080

8181
export type OutboundQueuedTransferStruct = {
8282
recipient: BytesLike;
83-
amount: NormalizedAmountStruct;
83+
amount: TrimmedAmountStruct;
8484
txTimestamp: BigNumberish;
8585
recipientChain: BigNumberish;
8686
sender: string;
@@ -89,14 +89,14 @@ export declare namespace IRateLimiter {
8989

9090
export type OutboundQueuedTransferStructOutput = [
9191
string,
92-
NormalizedAmountStructOutput,
92+
TrimmedAmountStructOutput,
9393
BigNumber,
9494
number,
9595
string,
9696
string
9797
] & {
9898
recipient: string;
99-
amount: NormalizedAmountStructOutput;
99+
amount: TrimmedAmountStructOutput;
100100
txTimestamp: BigNumber;
101101
recipientChain: number;
102102
sender: string;

0 commit comments

Comments
 (0)