Skip to content

Commit

Permalink
Updated for new abis and core sample permission
Browse files Browse the repository at this point in the history
  • Loading branch information
clexmond committed Nov 13, 2024
1 parent e6d8d2a commit e6b0551
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 325 deletions.
324 changes: 0 additions & 324 deletions src/contracts/starknet_abis.json
Original file line number Diff line number Diff line change
Expand Up @@ -2973,330 +2973,6 @@
]
}
],
"Escrow": [
{
"type": "constructor",
"name": "constructor",
"inputs": [
{
"name": "admin",
"type": "core::starknet::contract_address::ContractAddress"
}
]
},
{
"type": "function",
"name": "upgrade",
"inputs": [
{
"name": "class_hash",
"type": "core::starknet::class_hash::ClassHash"
}
],
"outputs": [],
"state_mutability": "external"
},
{
"type": "struct",
"name": "core::integer::u256",
"members": [
{
"name": "low",
"type": "core::integer::u128"
},
{
"name": "high",
"type": "core::integer::u128"
}
]
},
{
"type": "function",
"name": "balance_of",
"inputs": [
{
"name": "order_id",
"type": "core::felt252"
}
],
"outputs": [
{
"type": "core::integer::u256"
}
],
"state_mutability": "view"
},
{
"type": "struct",
"name": "core::array::Span::<core::felt252>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<core::felt252>"
}
]
},
{
"type": "struct",
"name": "influence::contracts::escrow::Hook",
"members": [
{
"name": "contract",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "entry_point_selector",
"type": "core::felt252"
},
{
"name": "calldata",
"type": "core::array::Span::<core::felt252>"
}
]
},
{
"type": "function",
"name": "deposit",
"inputs": [
{
"name": "token",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "amount",
"type": "core::integer::u256"
},
{
"name": "withdraw_hook",
"type": "influence::contracts::escrow::Hook"
},
{
"name": "deposit_hook",
"type": "influence::contracts::escrow::Hook"
}
],
"outputs": [
{
"type": "core::felt252"
}
],
"state_mutability": "external"
},
{
"type": "struct",
"name": "influence::contracts::escrow::Withdrawal",
"members": [
{
"name": "recipient",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "amount",
"type": "core::integer::u256"
}
]
},
{
"type": "struct",
"name": "core::array::Span::<influence::contracts::escrow::Withdrawal>",
"members": [
{
"name": "snapshot",
"type": "@core::array::Array::<influence::contracts::escrow::Withdrawal>"
}
]
},
{
"type": "function",
"name": "withdraw",
"inputs": [
{
"name": "original_caller",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "token",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "withdraw_hook",
"type": "influence::contracts::escrow::Hook"
},
{
"name": "withdraw_calldata",
"type": "core::array::Array::<core::felt252>"
},
{
"name": "withdrawals",
"type": "core::array::Span::<influence::contracts::escrow::Withdrawal>"
}
],
"outputs": [],
"state_mutability": "external"
},
{
"type": "function",
"name": "start_force_withdraw",
"inputs": [
{
"name": "token",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "withdraw_hook",
"type": "influence::contracts::escrow::Hook"
}
],
"outputs": [],
"state_mutability": "external"
},
{
"type": "function",
"name": "finish_force_withdraw",
"inputs": [
{
"name": "token",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "withdraw_hook",
"type": "influence::contracts::escrow::Hook"
}
],
"outputs": [],
"state_mutability": "external"
},
{
"type": "event",
"name": "influence::contracts::escrow::Escrow::Deposited",
"kind": "struct",
"members": [
{
"name": "order_id",
"type": "core::felt252",
"kind": "data"
},
{
"name": "caller",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
},
{
"name": "token",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
},
{
"name": "amount",
"type": "core::integer::u256",
"kind": "data"
},
{
"name": "deposit_hook",
"type": "influence::contracts::escrow::Hook",
"kind": "data"
},
{
"name": "withdraw_hook",
"type": "influence::contracts::escrow::Hook",
"kind": "data"
}
]
},
{
"type": "event",
"name": "influence::contracts::escrow::Escrow::Withdrawn",
"kind": "struct",
"members": [
{
"name": "order_id",
"type": "core::felt252",
"kind": "data"
},
{
"name": "caller",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
},
{
"name": "withdrawals",
"type": "core::array::Span::<influence::contracts::escrow::Withdrawal>",
"kind": "data"
},
{
"name": "withdraw_hook",
"type": "influence::contracts::escrow::Hook",
"kind": "data"
}
]
},
{
"type": "event",
"name": "influence::contracts::escrow::Escrow::ForcedWithdrawStarted",
"kind": "struct",
"members": [
{
"name": "order_id",
"type": "core::felt252",
"kind": "data"
},
{
"name": "caller",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
},
{
"name": "finish_time",
"type": "core::integer::u64",
"kind": "data"
}
]
},
{
"type": "event",
"name": "influence::contracts::escrow::Escrow::ForcedWithdrawFinished",
"kind": "struct",
"members": [
{
"name": "order_id",
"type": "core::felt252",
"kind": "data"
},
{
"name": "caller",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
}
]
},
{
"type": "event",
"name": "influence::contracts::escrow::Escrow::Event",
"kind": "enum",
"variants": [
{
"name": "Deposited",
"type": "influence::contracts::escrow::Escrow::Deposited",
"kind": "nested"
},
{
"name": "Withdrawn",
"type": "influence::contracts::escrow::Escrow::Withdrawn",
"kind": "nested"
},
{
"name": "ForcedWithdrawStarted",
"type": "influence::contracts::escrow::Escrow::ForcedWithdrawStarted",
"kind": "nested"
},
{
"name": "ForcedWithdrawFinished",
"type": "influence::contracts::escrow::Escrow::ForcedWithdrawFinished",
"kind": "nested"
}
]
}
],
"Ship": [
{
"type": "constructor",
Expand Down
44 changes: 44 additions & 0 deletions src/contracts/starknet_events.json
Original file line number Diff line number Diff line change
Expand Up @@ -3032,6 +3032,50 @@
}
]
},
"DirectMessageSent": {
"type": "event",
"name": "DirectMessageSent",
"kind": "struct",
"members": [
{
"name": "recipient",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
},
{
"name": "content_hash",
"type": "core::array::Span::<core::felt252>",
"kind": "data"
},
{
"name": "caller",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
}
]
},
"RekeyedInbox": {
"type": "event",
"name": "RekeyedInbox",
"kind": "struct",
"members": [
{
"name": "messaging_key_x",
"type": "core::integer::u256",
"kind": "data"
},
{
"name": "messaging_key_y",
"type": "core::integer::u256",
"kind": "data"
},
{
"name": "caller",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
}
]
},
"EventAnnotated": {
"type": "event",
"name": "EventAnnotated",
Expand Down
Loading

0 comments on commit e6b0551

Please sign in to comment.