Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
b29b30b0
Unverified
Commit
b29b30b0
authored
Mar 03, 2023
by
mergify[bot]
Committed by
GitHub
Mar 03, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into jg/typo
parents
9650e900
7866168c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
16 deletions
+11
-16
fluffy-geese-yell.md
.changeset/fluffy-geese-yell.md
+5
-0
sdk.md
packages/atst/docs/sdk.md
+0
-5
cli.ts
packages/atst/src/cli.ts
+6
-6
readAttestations.ts
packages/atst/src/lib/readAttestations.ts
+0
-4
AttestationReadParams.ts
packages/atst/src/types/AttestationReadParams.ts
+0
-1
No files found.
.changeset/fluffy-geese-yell.md
0 → 100644
View file @
b29b30b0
---
'
@eth-optimism/atst'
:
minor
---
Remove broken allowFailures as option
packages/atst/docs/sdk.md
View file @
b29b30b0
...
@@ -171,11 +171,6 @@ const attestation = await readAttestations({
...
@@ -171,11 +171,6 @@ const attestation = await readAttestations({
* @defaults defaults to the create2 address
* @defaults defaults to the create2 address
*/
*/
contractAddress
,
contractAddress
,
/**
* Boolean: Whether to allow some of the calls to fail
* Defaults to false
*/
allowFailures
,
})
})
```
```
...
...
packages/atst/src/cli.ts
View file @
b29b30b0
...
@@ -15,13 +15,13 @@ cli
...
@@ -15,13 +15,13 @@ cli
.
option
(
'
--creator <string>
'
,
readOptionsValidators
.
creator
.
description
!
)
.
option
(
'
--creator <string>
'
,
readOptionsValidators
.
creator
.
description
!
)
.
option
(
'
--about <string>
'
,
readOptionsValidators
.
about
.
description
!
)
.
option
(
'
--about <string>
'
,
readOptionsValidators
.
about
.
description
!
)
.
option
(
'
--key <string>
'
,
readOptionsValidators
.
key
.
description
!
)
.
option
(
'
--key <string>
'
,
readOptionsValidators
.
key
.
description
!
)
.
option
(
'
--data-type
[string]
'
,
readOptionsValidators
.
dataType
.
description
!
,
{
.
option
(
'
--data-type
<string>
'
,
readOptionsValidators
.
dataType
.
description
!
,
{
default
:
readOptionsValidators
.
dataType
.
parse
(
undefined
),
default
:
readOptionsValidators
.
dataType
.
parse
(
undefined
),
})
})
.
option
(
'
--rpc-url
[url]
'
,
readOptionsValidators
.
rpcUrl
.
description
!
,
{
.
option
(
'
--rpc-url
<url>
'
,
readOptionsValidators
.
rpcUrl
.
description
!
,
{
default
:
readOptionsValidators
.
rpcUrl
.
parse
(
undefined
),
default
:
readOptionsValidators
.
rpcUrl
.
parse
(
undefined
),
})
})
.
option
(
'
--contract
[address]
'
,
readOptionsValidators
.
contract
.
description
!
,
{
.
option
(
'
--contract
<address>
'
,
readOptionsValidators
.
contract
.
description
!
,
{
default
:
readOptionsValidators
.
contract
.
parse
(
undefined
),
default
:
readOptionsValidators
.
contract
.
parse
(
undefined
),
})
})
.
example
(
.
example
(
...
@@ -52,17 +52,17 @@ cli
...
@@ -52,17 +52,17 @@ cli
'
--private-key <string>
'
,
'
--private-key <string>
'
,
writeOptionsValidators
.
privateKey
.
description
!
writeOptionsValidators
.
privateKey
.
description
!
)
)
.
option
(
'
--data-type
[string]
'
,
readOptionsValidators
.
dataType
.
description
!
,
{
.
option
(
'
--data-type
<string>
'
,
readOptionsValidators
.
dataType
.
description
!
,
{
default
:
writeOptionsValidators
.
dataType
.
parse
(
undefined
),
default
:
writeOptionsValidators
.
dataType
.
parse
(
undefined
),
})
})
.
option
(
'
--about <string>
'
,
writeOptionsValidators
.
about
.
description
!
)
.
option
(
'
--about <string>
'
,
writeOptionsValidators
.
about
.
description
!
)
.
option
(
'
--key <string>
'
,
writeOptionsValidators
.
key
.
description
!
)
.
option
(
'
--key <string>
'
,
writeOptionsValidators
.
key
.
description
!
)
.
option
(
'
--value <string>
'
,
writeOptionsValidators
.
value
.
description
!
)
.
option
(
'
--value <string>
'
,
writeOptionsValidators
.
value
.
description
!
)
.
option
(
'
--rpc-url
[url]
'
,
writeOptionsValidators
.
rpcUrl
.
description
!
,
{
.
option
(
'
--rpc-url
<url>
'
,
writeOptionsValidators
.
rpcUrl
.
description
!
,
{
default
:
writeOptionsValidators
.
rpcUrl
.
parse
(
undefined
),
default
:
writeOptionsValidators
.
rpcUrl
.
parse
(
undefined
),
})
})
.
option
(
.
option
(
'
--contract
[address]
'
,
'
--contract
<address>
'
,
writeOptionsValidators
.
contract
.
description
!
,
writeOptionsValidators
.
contract
.
description
!
,
{
{
default
:
writeOptionsValidators
.
contract
.
parse
(
undefined
),
default
:
writeOptionsValidators
.
contract
.
parse
(
undefined
),
...
...
packages/atst/src/lib/readAttestations.ts
View file @
b29b30b0
...
@@ -19,7 +19,6 @@ import { parseAttestationBytes } from './parseAttestationBytes'
...
@@ -19,7 +19,6 @@ import { parseAttestationBytes } from './parseAttestationBytes'
* creator: creatorAddress,
* creator: creatorAddress,
* about: aboutAddress,
* about: aboutAddress,
* key: 'my_key',
* key: 'my_key',
* allowFailure: false,
* },
* },
* {
* {
* creator: creatorAddress2,
* creator: creatorAddress2,
...
@@ -27,7 +26,6 @@ import { parseAttestationBytes } from './parseAttestationBytes'
...
@@ -27,7 +26,6 @@ import { parseAttestationBytes } from './parseAttestationBytes'
* key: 'my_key',
* key: 'my_key',
* dataType: 'number',
* dataType: 'number',
* contractAddress: '0x1234',
* contractAddress: '0x1234',
* allowFailure: false,
* },
* },
* )
* )
*/
*/
...
@@ -40,7 +38,6 @@ export const readAttestations = async (
...
@@ -40,7 +38,6 @@ export const readAttestations = async (
about
,
about
,
key
,
key
,
contractAddress
=
ATTESTATION_STATION_ADDRESS
,
contractAddress
=
ATTESTATION_STATION_ADDRESS
,
allowFailure
=
false
,
}
=
attestation
}
=
attestation
if
(
key
.
length
>
32
)
{
if
(
key
.
length
>
32
)
{
throw
new
Error
(
throw
new
Error
(
...
@@ -52,7 +49,6 @@ export const readAttestations = async (
...
@@ -52,7 +49,6 @@ export const readAttestations = async (
abi
,
abi
,
functionName
:
'
attestations
'
,
functionName
:
'
attestations
'
,
args
:
[
creator
,
about
,
formatBytes32String
(
key
)
as
WagmiBytes
],
args
:
[
creator
,
about
,
formatBytes32String
(
key
)
as
WagmiBytes
],
allowFailure
,
}
as
const
}
as
const
})
})
...
...
packages/atst/src/types/AttestationReadParams.ts
View file @
b29b30b0
...
@@ -11,5 +11,4 @@ export interface AttestationReadParams {
...
@@ -11,5 +11,4 @@ export interface AttestationReadParams {
key
:
string
key
:
string
dataType
?:
DataTypeOption
dataType
?:
DataTypeOption
contractAddress
?:
Address
contractAddress
?:
Address
allowFailure
?:
boolean
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment