Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This project uses SvelteKit and `npm`. It is configured for a deployment to Clou
### Development

To start development:

1. Copy `.env.example` to `.env`.
2. Then fill in the `env` variables by creating a [WalletConnect](https://walletconnect.com) project
3. Also create an [account](https://accounts.polymerlabs.org/) with Polymer to generation [Polymer](https://polymerlabs.org) API keys.
Expand Down
273 changes: 12 additions & 261 deletions src/lib/abi/escrow.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
export const SETTLER_ESCROW_ABI = [
{
type: "constructor",
inputs: [
{
name: "initialOwner",
type: "address",
internalType: "address"
}
],
inputs: [],
stateMutability: "nonpayable"
},
{
Expand All @@ -23,33 +17,6 @@ export const SETTLER_ESCROW_ABI = [
],
stateMutability: "view"
},
{
type: "function",
name: "applyGovernanceFee",
inputs: [],
outputs: [],
stateMutability: "nonpayable"
},
{
type: "function",
name: "cancelOwnershipHandover",
inputs: [],
outputs: [],
stateMutability: "payable"
},
{
type: "function",
name: "completeOwnershipHandover",
inputs: [
{
name: "pendingOwner",
type: "address",
internalType: "address"
}
],
outputs: [],
stateMutability: "payable"
},
{
type: "function",
name: "eip712Domain",
Expand Down Expand Up @@ -346,45 +313,6 @@ export const SETTLER_ESCROW_ABI = [
outputs: [],
stateMutability: "nonpayable"
},
{
type: "function",
name: "governanceFee",
inputs: [],
outputs: [
{
name: "",
type: "uint64",
internalType: "uint64"
}
],
stateMutability: "view"
},
{
type: "function",
name: "nextGovernanceFee",
inputs: [],
outputs: [
{
name: "",
type: "uint64",
internalType: "uint64"
}
],
stateMutability: "view"
},
{
type: "function",
name: "nextGovernanceFeeTime",
inputs: [],
outputs: [
{
name: "",
type: "uint64",
internalType: "uint64"
}
],
stateMutability: "view"
},
{
type: "function",
name: "open",
Expand Down Expand Up @@ -828,38 +756,6 @@ export const SETTLER_ESCROW_ABI = [
],
stateMutability: "view"
},
{
type: "function",
name: "owner",
inputs: [],
outputs: [
{
name: "result",
type: "address",
internalType: "address"
}
],
stateMutability: "view"
},
{
type: "function",
name: "ownershipHandoverExpiresAt",
inputs: [
{
name: "pendingOwner",
type: "address",
internalType: "address"
}
],
outputs: [
{
name: "result",
type: "uint256",
internalType: "uint256"
}
],
stateMutability: "view"
},
{
type: "function",
name: "purchaseOrder",
Expand Down Expand Up @@ -1135,46 +1031,6 @@ export const SETTLER_ESCROW_ABI = [
outputs: [],
stateMutability: "nonpayable"
},
{
type: "function",
name: "renounceOwnership",
inputs: [],
outputs: [],
stateMutability: "payable"
},
{
type: "function",
name: "requestOwnershipHandover",
inputs: [],
outputs: [],
stateMutability: "payable"
},
{
type: "function",
name: "setGovernanceFee",
inputs: [
{
name: "_nextGovernanceFee",
type: "uint64",
internalType: "uint64"
}
],
outputs: [],
stateMutability: "nonpayable"
},
{
type: "function",
name: "transferOwnership",
inputs: [
{
name: "newOwner",
type: "address",
internalType: "address"
}
],
outputs: [],
stateMutability: "payable"
},
{
type: "event",
name: "EIP712DomainChanged",
Expand Down Expand Up @@ -1206,44 +1062,6 @@ export const SETTLER_ESCROW_ABI = [
],
anonymous: false
},
{
type: "event",
name: "GovernanceFeeChanged",
inputs: [
{
name: "oldGovernanceFee",
type: "uint64",
indexed: false,
internalType: "uint64"
},
{
name: "newGovernanceFee",
type: "uint64",
indexed: false,
internalType: "uint64"
}
],
anonymous: false
},
{
type: "event",
name: "NextGovernanceFee",
inputs: [
{
name: "nextGovernanceFee",
type: "uint64",
indexed: false,
internalType: "uint64"
},
{
name: "nextGovernanceFeeTime",
type: "uint64",
indexed: false,
internalType: "uint64"
}
],
anonymous: false
},
{
type: "event",
name: "Open",
Expand Down Expand Up @@ -1347,19 +1165,6 @@ export const SETTLER_ESCROW_ABI = [
],
anonymous: false
},
{
type: "event",
name: "Open",
inputs: [
{
name: "orderId",
type: "bytes32",
indexed: true,
internalType: "bytes32"
}
],
anonymous: false
},
{
type: "event",
name: "OrderPurchased",
Expand All @@ -1385,51 +1190,6 @@ export const SETTLER_ESCROW_ABI = [
],
anonymous: false
},
{
type: "event",
name: "OwnershipHandoverCanceled",
inputs: [
{
name: "pendingOwner",
type: "address",
indexed: true,
internalType: "address"
}
],
anonymous: false
},
{
type: "event",
name: "OwnershipHandoverRequested",
inputs: [
{
name: "pendingOwner",
type: "address",
indexed: true,
internalType: "address"
}
],
anonymous: false
},
{
type: "event",
name: "OwnershipTransferred",
inputs: [
{
name: "oldOwner",
type: "address",
indexed: true,
internalType: "address"
},
{
name: "newOwner",
type: "address",
indexed: true,
internalType: "address"
}
],
anonymous: false
},
{
type: "event",
name: "Refunded",
Expand All @@ -1443,11 +1203,6 @@ export const SETTLER_ESCROW_ABI = [
],
anonymous: false
},
{
type: "error",
name: "AlreadyInitialized",
inputs: []
},
{
type: "error",
name: "AlreadyPurchased",
Expand Down Expand Up @@ -1491,15 +1246,15 @@ export const SETTLER_ESCROW_ABI = [
},
{
type: "error",
name: "FilledTooLate",
name: "FillDeadlineAfterExpiry",
inputs: [
{
name: "expected",
name: "fillDeadline",
type: "uint32",
internalType: "uint32"
},
{
name: "actual",
name: "expires",
type: "uint32",
internalType: "uint32"
}
Expand Down Expand Up @@ -1545,21 +1300,11 @@ export const SETTLER_ESCROW_ABI = [
name: "InvalidTimestampLength",
inputs: []
},
{
type: "error",
name: "NewOwnerIsZeroAddress",
inputs: []
},
{
type: "error",
name: "NoDestination",
inputs: []
},
{
type: "error",
name: "NoHandoverRequest",
inputs: []
},
{
type: "error",
name: "NotOrderOwner",
Expand Down Expand Up @@ -1636,8 +1381,14 @@ export const SETTLER_ESCROW_ABI = [
},
{
type: "error",
name: "Unauthorized",
inputs: []
name: "UnexpectedCaller",
inputs: [
{
name: "expectedCaller",
type: "bytes32",
internalType: "bytes32"
}
]
},
{
type: "error",
Expand Down
Loading