This file contains hidden or 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
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: test | |
| annotations: | |
| external-dns.alpha.kubernetes.io/hostname: myservice.example.com | |
| spec: | |
| type: LoadBalancer | |
| ports: | |
| - port: 80 |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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: |
This file contains hidden or 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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "route53:ChangeResourceRecordSets" | |
| ], | |
| "Resource": [ | |
| "arn:aws:route53:::hostedzone/*" |
This file contains hidden or 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
| 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> |
This file contains hidden or 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
| # 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 |
This file contains hidden or 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
| # 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 |
This file contains hidden or 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
| # 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 |
This file contains hidden or 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
| enum QuoteType { | |
| MintExactInput, | |
| MintExactOutput, | |
| BurnExactInput, | |
| BurnExactOutput | |
| } | |
| type Fees = { | |
| xFeeMint: number[], | |
| yFeeMint: number[], |
This file contains hidden or 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
| // Example test : | |
| enum QuoteType { | |
| MintExactInput, | |
| MintExactOutput, | |
| BurnExactInput, | |
| BurnExactOutput | |
| } | |
| const testFees = { | |
| xFeeMint: [0.0000,0.4000,0.4500,0.7000], |
OlderNewer