This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Source: https://github.com/withfabricxyz/protocol-sdks/blob/main/src/stpv1/subscription.ts | |
*/ | |
// From https://docs.withfabric.xyz/stp/contracts/STPV1ABI | |
import stpV1ABI from './stpv1.json' | |
// Typedef for reference | |
type SubscriberState = { | |
/** The address of the account */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is destructive. Please think before executing. | |
SOME_ARN="your-arn-here" | |
aws sns list-endpoints-by-platform-application --platform-application-arn $SOME_ARN | \ | |
jq -r '.Endpoints[].EndpointArn' | \ | |
xargs -I {} aws sns delete-endpoint --endpoint-arn {} |