Skip to content

Commit

Permalink
chore(icp): new contract types
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Sep 24, 2024
1 parent 3120ae8 commit f17f0b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/contractsTypes/icp/bridge/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,17 @@ export const idlFactory = ({ IDL }) => {
[IDL.Opt(IDL.Bool)],
['query'],
),
'get_claim_nonce' : IDL.Func([], [IDL.Nat], ['query']),
'get_claimed_data' : IDL.Func(
[IDL.Text],
[IDL.Opt(ClaimedEvent)],
['query'],
),
'get_hash_from_claim_nonce' : IDL.Func(
[IDL.Nat],
[IDL.Opt(IDL.Text)],
['query'],
),
'get_hash_from_nonce' : IDL.Func([IDL.Nat], [IDL.Opt(IDL.Text)], ['query']),
'get_locked_data' : IDL.Func([IDL.Text], [IDL.Opt(LockedEvent)], ['query']),
'get_nonce' : IDL.Func([], [IDL.Nat], ['query']),
Expand Down
2 changes: 2 additions & 0 deletions src/contractsTypes/icp/bridge/bridge.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ export interface XPBridge {
>,
'encode_claim_data' : ActorMethod<[ClaimData], Uint8Array | number[]>,
'get_blacklisted_validators' : ActorMethod<[string], [] | [boolean]>,
'get_claim_nonce' : ActorMethod<[], bigint>,
'get_claimed_data' : ActorMethod<[string], [] | [ClaimedEvent]>,
'get_hash_from_claim_nonce' : ActorMethod<[bigint], [] | [string]>,
'get_hash_from_nonce' : ActorMethod<[bigint], [] | [string]>,
'get_locked_data' : ActorMethod<[string], [] | [LockedEvent]>,
'get_nonce' : ActorMethod<[], bigint>,
Expand Down

0 comments on commit f17f0b0

Please sign in to comment.