Skip to content

Instantly share code, notes, and snippets.

apiVersion: v1
kind: Service
metadata:
name: test
annotations:
external-dns.alpha.kubernetes.io/hostname: myservice.example.com
spec:
type: LoadBalancer
ports:
- port: 80
apiVersion: v1
kind: Service
metadata:
annotations:
external-dns.alpha.kubernetes.io/hostname: myservice.example.com
name: test
spec:
externalIPs:
- 1.2.3.4
- 4.5.6.7
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
external-dns.alpha.kubernetes.io/hostname: myservice.example.com
kubernetes.io/ingress.class: alb
name: test
spec:
rules:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"route53:ChangeResourceRecordSets"
],
"Resource": [
"arn:aws:route53:::hostedzone/*"
helm install <RELEASE_NAME> stable/external-dns \
--set provider=aws \
--set domainFilters[0]=<DOMAIN_FILTER>\
--set policy=sync \
--set registry=txt \
--set txtOwnerId=<HOSTED_ZONE_ID> \
--set interval=3m \
--set rbac.create=true \
--set rbac.serviceAccountName=external-dns \
--set rbac.serviceAccountAnnotations.eks\.amazonaws\.com/role-arn=<ROLE_ARN>
@BaptistG
BaptistG / config.yaml
Last active August 1, 2023 08:25
Pyth W3F Ethereum Mainnet Config
# Address of Pyth contract
# See [https://docs.pyth.network/documentation/pythnet-price-feeds/evm#mainnet]
pythNetworkAddress: "0x4305FB66699C3B2702D4d05CF36551390A4c69C6" # Ethereum Mainnet address
# debug mode
debug: true
# Refresh rate of config in seconds to prevent rate limiting from github
configRefreshRateInSeconds: 3600
# See [https://docs.pyth.network/documentation/pythnet-price-feeds/price-service#public-endpoints]
priceServiceEndpoint: "https://xc-mainnet.pyth.network"
# maximum number of seconds between updates
@BaptistG
BaptistG / config.yaml
Created July 31, 2023 14:15
Pyth W3F Ethereum Mainnet Config
# Address of Pyth contract
# See [https://docs.pyth.network/documentation/pythnet-price-feeds/evm#mainnet]
pythNetworkAddress: "0x4305FB66699C3B2702D4d05CF36551390A4c69C6" # Ethereum Mainnet address
# debug mode
debug: true
# Refresh rate of config in seconds to prevent rate limiting from github
configRefreshRateInSeconds: 3600
# See [https://docs.pyth.network/documentation/pythnet-price-feeds/price-service#public-endpoints]
priceServiceEndpoint: "https://hermes.pyth.network/"
# maximum number of seconds between updates
@BaptistG
BaptistG / config.yaml
Last active August 21, 2023 10:10
Pyth W3F Ethereum Mainnet Config
# Address of Pyth contract
# See [https://docs.pyth.network/documentation/pythnet-price-feeds/evm#mainnet]
pythNetworkAddress: "0x4305FB66699C3B2702D4d05CF36551390A4c69C6" # Ethereum Mainnet address
# debug mode
debug: true
# Refresh rate of config in seconds to prevent rate limiting from github
configRefreshRateInSeconds: 3600
# See [https://docs.pyth.network/documentation/pythnet-price-feeds/price-service#public-endpoints]
priceServiceEndpoint: "https://hermes.pyth.network"
# maximum number of seconds between updates
@BaptistG
BaptistG / Transmuter_quoteFees.ts
Last active August 11, 2023 09:27
_quoteFees function from the Angle Transmuter
enum QuoteType {
MintExactInput,
MintExactOutput,
BurnExactInput,
BurnExactOutput
}
type Fees = {
xFeeMint: number[],
yFeeMint: number[],
// Example test :
enum QuoteType {
MintExactInput,
MintExactOutput,
BurnExactInput,
BurnExactOutput
}
const testFees = {
xFeeMint: [0.0000,0.4000,0.4500,0.7000],