@@ -21,7 +21,19 @@ import type {
2121 TypedLogDescription ,
2222 TypedListener ,
2323 TypedContractMethod ,
24- } from "../common.js" ;
24+ } from "./common.js" ;
25+
26+ export type TokenMetaStruct = {
27+ name : BytesLike ;
28+ symbol : BytesLike ;
29+ decimals : BigNumberish ;
30+ } ;
31+
32+ export type TokenMetaStructOutput = [
33+ name : string ,
34+ symbol : string ,
35+ decimals : bigint
36+ ] & { name : string ; symbol : string ; decimals : bigint } ;
2537
2638export type TokenIdStruct = { chainId : BigNumberish ; tokenAddress : BytesLike } ;
2739
@@ -30,6 +42,37 @@ export type TokenIdStructOutput = [chainId: bigint, tokenAddress: string] & {
3042 tokenAddress : string ;
3143} ;
3244
45+ export type TokenInfoStruct = { meta : TokenMetaStruct ; token : TokenIdStruct } ;
46+
47+ export type TokenInfoStructOutput = [
48+ meta : TokenMetaStructOutput ,
49+ token : TokenIdStructOutput
50+ ] & { meta : TokenMetaStructOutput ; token : TokenIdStructOutput } ;
51+
52+ export declare namespace NativeTokenTransferCodec {
53+ export type NativeTokenTransferStruct = {
54+ amount : BigNumberish ;
55+ token : TokenInfoStruct ;
56+ sender : BytesLike ;
57+ to : BytesLike ;
58+ additionalPayload : BytesLike ;
59+ } ;
60+
61+ export type NativeTokenTransferStructOutput = [
62+ amount : bigint ,
63+ token : TokenInfoStructOutput ,
64+ sender : string ,
65+ to : string ,
66+ additionalPayload : string
67+ ] & {
68+ amount : bigint ;
69+ token : TokenInfoStructOutput ;
70+ sender : string ;
71+ to : string ;
72+ additionalPayload : string ;
73+ } ;
74+ }
75+
3376export declare namespace RateLimitLib {
3477 export type RateLimitParamsStruct = {
3578 limit : BigNumberish ;
@@ -47,17 +90,13 @@ export declare namespace RateLimitLib {
4790export declare namespace IMultiTokenRateLimiter {
4891 export type InboundQueuedTransferStruct = {
4992 txTimestamp : BigNumberish ;
50- amount : BigNumberish ;
51- token : AddressLike ;
52- recipient : AddressLike ;
93+ sourceChainId : BigNumberish ;
5394 } ;
5495
5596 export type InboundQueuedTransferStructOutput = [
5697 txTimestamp : bigint ,
57- amount : bigint ,
58- token : string ,
59- recipient : string
60- ] & { txTimestamp : bigint ; amount : bigint ; token : string ; recipient : string } ;
98+ sourceChainId : bigint
99+ ] & { txTimestamp : bigint ; sourceChainId : bigint } ;
61100
62101 export type OutboundQueuedTransferStruct = {
63102 recipient : BytesLike ;
@@ -233,7 +272,7 @@ export interface MultiTokenNttInterface extends Interface {
233272 ) : string ;
234273 encodeFunctionData (
235274 functionFragment : "completeInboundQueuedTransfer" ,
236- values : [ BytesLike ]
275+ values : [ NativeTokenTransferCodec . NativeTokenTransferStruct ]
237276 ) : string ;
238277 encodeFunctionData (
239278 functionFragment : "completeOutboundQueuedTransfer" ,
@@ -777,7 +816,7 @@ export interface MultiTokenNtt extends BaseContract {
777816 > ;
778817
779818 completeInboundQueuedTransfer : TypedContractMethod <
780- [ digest : BytesLike ] ,
819+ [ nativeTokenTransfer : NativeTokenTransferCodec . NativeTokenTransferStruct ] ,
781820 [ void ] ,
782821 "nonpayable"
783822 > ;
@@ -937,7 +976,11 @@ export interface MultiTokenNtt extends BaseContract {
937976 ) : TypedContractMethod < [ messageSequence : BigNumberish ] , [ void ] , "nonpayable" > ;
938977 getFunction (
939978 nameOrSignature : "completeInboundQueuedTransfer"
940- ) : TypedContractMethod < [ digest : BytesLike ] , [ void ] , "nonpayable" > ;
979+ ) : TypedContractMethod <
980+ [ nativeTokenTransfer : NativeTokenTransferCodec . NativeTokenTransferStruct ] ,
981+ [ void ] ,
982+ "nonpayable"
983+ > ;
941984 getFunction (
942985 nameOrSignature : "completeOutboundQueuedTransfer"
943986 ) : TypedContractMethod < [ messageSequence : BigNumberish ] , [ bigint ] , "payable" > ;
0 commit comments